wolfssl.mak 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #
  2. # ======== wolfssl.mak ========
  3. #
  4. include ./products.mak
  5. # Enable older TI-RTOS 2.14-based variables
  6. ifeq ($(BIOS_INSTALL_DIR),)
  7. BIOS_INSTALL_DIR=$(SYSBIOS_INSTALL_DIR)
  8. endif
  9. ifeq ($(TIVAWARE_INSTALL_DIR),)
  10. TIVAWARE_INSTALL_DIR=$(TIVAWARE)
  11. endif
  12. WOLFSSL_INSTALL_DIR=$(CURDIR)/../
  13. #
  14. # Set XDCARGS to some of the variables above. XDCARGS are passed
  15. # to the XDC build engine... which will load wolfssl.bld... which will
  16. # extract these variables and use them to determine what to build and which
  17. # toolchains to use.
  18. #
  19. # Note that not all of these variables need to be set to something valid.
  20. # Unfortunately, since these vars are unconditionally assigned, your build line
  21. # will be longer and more noisy than necessary.
  22. #
  23. # Some background is here:
  24. # http://rtsc.eclipse.org/docs-tip/Command_-_xdc#Environment_Variables
  25. #
  26. XDCARGS= \
  27. ti.targets.arm.elf.M4F=\"$(ti.targets.arm.elf.M4F)\" \
  28. gnu.targets.arm.M4F=\"$(gnu.targets.arm.M4F)\" \
  29. iar.targets.arm.M4F=\"$(iar.targets.arm.M4F)\" \
  30. NDK=\"$(NDK_INSTALL_DIR)\"
  31. #
  32. # Set XDCPATH to contain necessary repositories.
  33. #
  34. XDCPATH = $(BIOS_INSTALL_DIR)/packages;$(NDK_INSTALL_DIR)/packages;$(WOLFSSL_INSTALL_DIR);$(TIVAWARE_INSTALL_DIR)
  35. export XDCPATH
  36. #
  37. # Set XDCOPTIONS. Use -v for a verbose build.
  38. #
  39. #XDCOPTIONS=v
  40. export XDCOPTIONS
  41. #
  42. # Set XDC executable command
  43. # Note that XDCBUILDCFG points to the wolfssl.bld file which uses
  44. # the arguments specified by XDCARGS
  45. #
  46. XDC = $(XDC_INSTALL_DIR)/xdc XDCARGS="$(XDCARGS)" XDCBUILDCFG=./wolfssl.bld
  47. ######################################################
  48. ## Shouldnt have to modify anything below this line ##
  49. ######################################################
  50. all:
  51. @ echo building wolfssl packages ...
  52. @ $(XDC) -Pr ./packages
  53. clean:
  54. @ echo cleaning wolfssl packages ...
  55. @ $(XDC) clean -Pr ./packages