wolfssl.mak 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. #
  2. # ======== wolfssl.mak ========
  3. #
  4. # USER OPTIONAL STEP: These variables are set when building wolfssl
  5. # through the tirtos.mak
  6. # Set up dependencies
  7. XDC_INSTALL_DIR ?= C:/ti/xdctools_3_24_02_30
  8. SYSBIOS_INSTALL_DIR ?= C:/ti/bios_6_34_01_14
  9. NDK_INSTALL_DIR ?= C:/ti/ndk_2_24_00_02
  10. TIRTOS_INSTALLATION_DIR ?= C:/ti/tirtos_tivac_2_00_00_22
  11. TivaWareDir ?= C:/ti/tivaware
  12. WOLFSSL_INSTALL_DIR ?= C:/wolfssl/wolfssl-2.9.4
  13. #
  14. # Set location of various cgtools
  15. # These variables can be set here or on the command line. These
  16. # variables are set when building wolfssl through tirtos.mak
  17. # USER OPTIONAL STEP: user can define below paths to compilers
  18. ti.targets.arm.elf.M4F ?=
  19. gnu.targets.arm.M4F ?=
  20. iar.targets.arm.M4F ?=
  21. #
  22. # Set XDCARGS to some of the variables above. XDCARGS are passed
  23. # to the XDC build engine... which will load wolfssl.bld... which will
  24. # extract these variables and use them to determine what to build and which
  25. # toolchains to use.
  26. #
  27. # Note that not all of these variables need to be set to something valid.
  28. # Unfortunately, since these vars are unconditionally assigned, your build line
  29. # will be longer and more noisy than necessary.
  30. #
  31. # Some background is here:
  32. # http://rtsc.eclipse.org/docs-tip/Command_-_xdc#Environment_Variables
  33. #
  34. XDCARGS= \
  35. ti.targets.arm.elf.M4F=\"$(ti.targets.arm.elf.M4F)\" \
  36. gnu.targets.arm.M4F=\"$(gnu.targets.arm.M4F)\" \
  37. iar.targets.arm.M4F=\"$(iar.targets.arm.M4F)\" \
  38. TivaWareDir=\"$(TivaWareDir)\"
  39. #
  40. # Set XDCPATH to contain necessary repositories.
  41. #
  42. XDCPATH = $(SYSBIOS_INSTALL_DIR)/packages;$(NDK_INSTALL_DIR)/packages;$(WOLFSSL_INSTALL_DIR);$(TIRTOS_INSTALLATION_DIR)/packages;$(TivaWareDir);
  43. export XDCPATH
  44. #
  45. # Set XDCOPTIONS. Use -v for a verbose build.
  46. #
  47. #XDCOPTIONS=v
  48. export XDCOPTIONS
  49. #
  50. # Set XDC executable command
  51. # Note that XDCBUILDCFG points to the wolfssl.bld file which uses
  52. # the arguments specified by XDCARGS
  53. #
  54. XDC = $(XDC_INSTALL_DIR)/xdc XDCARGS="$(XDCARGS)" XDCBUILDCFG=./wolfssl.bld
  55. ######################################################
  56. ## Shouldnt have to modify anything below this line ##
  57. ######################################################
  58. all:
  59. @ echo building wolfssl packages ...
  60. @ $(XDC) -Pr ./packages
  61. clean:
  62. @ echo cleaning wolfssl packages ...
  63. @ $(XDC) clean -Pr ./packages