Makefile 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. #
  2. # Copyright (C) 2016 Microchip Technology Inc.
  3. # <[email protected]>
  4. #
  5. # This is free software, licensed under the GNU General Public License v2.
  6. # See /LICENSE for more information.
  7. #
  8. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=at91bootstrap
  10. PKG_VERSION:=v3.8.8
  11. PKG_RELEASE:=
  12. PKG_SOURCE_PROTO:=git
  13. PKG_SOURCE_URL:=https://github.com/linux4sam/at91bootstrap.git
  14. PKG_SOURCE_VERSION:=3d33a4e0707c61007a5278f6620453502f7500db
  15. PKG_BUILD_DIR = \
  16. $(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
  17. include at91bootstrap.mk
  18. include $(INCLUDE_DIR)/package.mk
  19. define AT91Bootstrap/Default
  20. BUILD_TARGET:=at91
  21. BUILD_SUBTARGET:=sama5
  22. HIDDEN:=1
  23. AT91BOOTSTRAP_IMAGE:=at91bootstrap.bin
  24. endef
  25. define AT91Bootstrap/sama5d2_xplaineddf_uboot
  26. TITLE:=AT91Bootstrap for SAMA5D2 Xplained board (SPI Flash)
  27. BUILD_DEVICES:=at91-sama5d2_xplained
  28. endef
  29. define AT91Bootstrap/sama5d2_xplaineddf_qspi_uboot
  30. TITLE:=AT91Bootstrap for SAMA5D2 Xplained board (QSPI Flash)
  31. BUILD_DEVICES:=at91-sama5d2_xplained
  32. endef
  33. define AT91Bootstrap/sama5d2_xplainedsd_uboot
  34. TITLE:=AT91Bootstrap for SAMA5D2 Xplained board (SDcard/EMMC)
  35. BUILD_DEVICES:=at91-sama5d2_xplained
  36. endef
  37. define AT91Bootstrap/sama5d3_xplainednf_uboot
  38. TITLE:=AT91Bootstrap for SAMA5D3 Xplained board (Nand Flash)
  39. BUILD_DEVICES:=at91-sama5d3_xplained
  40. endef
  41. define AT91Bootstrap/sama5d3_xplainedsd_uboot
  42. TITLE:=AT91Bootstrap for SAMA5D3 Xplained board (SDcard)
  43. BUILD_DEVICES:=at91-sama5d3_xplained
  44. endef
  45. define AT91Bootstrap/sama5d4_xplainednf_uboot_secure
  46. TITLE:=AT91Bootstrap for SAMA5D4 Xplained board (Nand Flash)
  47. BUILD_DEVICES:=at91-sama5d4_xplained
  48. endef
  49. define AT91Bootstrap/sama5d4_xplaineddf_uboot_secure
  50. TITLE:=AT91Bootstrap for SAMA5D4 Xplained board (SPI Flash)
  51. BUILD_DEVICES:=at91-sama5d4_xplained
  52. endef
  53. define AT91Bootstrap/sama5d4_xplainedsd_uboot_secure
  54. TITLE:=AT91Bootstrap for SAMA5D4 Xplained board (SDcard)
  55. BUILD_DEVICES:=at91-sama5d4_xplained
  56. endef
  57. AT91BOOTSTRAP_TARGETS := \
  58. sama5d2_xplaineddf_uboot \
  59. sama5d2_xplaineddf_qspi_uboot \
  60. sama5d2_xplainedsd_uboot \
  61. sama5d3_xplainednf_uboot \
  62. sama5d3_xplainedsd_uboot \
  63. sama5d4_xplainednf_uboot_secure \
  64. sama5d4_xplaineddf_uboot_secure \
  65. sama5d4_xplainedsd_uboot_secure
  66. define Build/Compile
  67. +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
  68. CROSS_COMPILE=$(TARGET_CROSS)
  69. endef
  70. $(eval $(call BuildPackage/AT91Bootstrap))