Makefile 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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.10
  11. PKG_RELEASE:=
  12. PKG_SOURCE_PROTO:=git
  13. PKG_SOURCE_URL:=https://github.com/linux4sam/at91bootstrap.git
  14. PKG_SOURCE_VERSION:=04efa5500d60a0211d14b6ee60df7ce0a828704d
  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. HIDDEN:=1
  22. AT91BOOTSTRAP_IMAGE:=at91bootstrap.bin
  23. endef
  24. define AT91Bootstrap/sama5d2_xplaineddf_uboot
  25. TITLE:=AT91Bootstrap for SAMA5D2 Xplained board (SPI Flash)
  26. BUILD_SUBTARGET:=sama5d2
  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_SUBTARGET:=sama5d2
  32. BUILD_DEVICES:=at91-sama5d2_xplained
  33. endef
  34. define AT91Bootstrap/sama5d2_xplainedsd_uboot
  35. TITLE:=AT91Bootstrap for SAMA5D2 Xplained board (SDcard/EMMC)
  36. BUILD_SUBTARGET:=sama5d2
  37. BUILD_DEVICES:=at91-sama5d2_xplained
  38. endef
  39. define AT91Bootstrap/sama5d3_xplainednf_uboot
  40. TITLE:=AT91Bootstrap for SAMA5D3 Xplained board (Nand Flash)
  41. BUILD_SUBTARGET:=sama5d3
  42. BUILD_DEVICES:=at91-sama5d3_xplained
  43. endef
  44. define AT91Bootstrap/sama5d3_xplainedsd_uboot
  45. TITLE:=AT91Bootstrap for SAMA5D3 Xplained board (SDcard)
  46. BUILD_SUBTARGET:=sama5d3
  47. BUILD_DEVICES:=at91-sama5d3_xplained
  48. endef
  49. define AT91Bootstrap/sama5d4_xplainednf_uboot_secure
  50. TITLE:=AT91Bootstrap for SAMA5D4 Xplained board (Nand Flash)
  51. BUILD_SUBTARGET:=sama5d4
  52. BUILD_DEVICES:=at91-sama5d4_xplained
  53. endef
  54. define AT91Bootstrap/sama5d4_xplaineddf_uboot_secure
  55. TITLE:=AT91Bootstrap for SAMA5D4 Xplained board (SPI Flash)
  56. BUILD_SUBTARGET:=sama5d4
  57. BUILD_DEVICES:=at91-sama5d4_xplained
  58. endef
  59. define AT91Bootstrap/sama5d4_xplainedsd_uboot_secure
  60. TITLE:=AT91Bootstrap for SAMA5D4 Xplained board (SDcard)
  61. BUILD_SUBTARGET:=sama5d4
  62. BUILD_DEVICES:=at91-sama5d4_xplained
  63. endef
  64. define AT91Bootstrap/sama5d27_som1_eksd_uboot
  65. TITLE:=AT91Bootstrap for SAMA5D27 SOM1 Ek (SDcard0)
  66. BUILD_SUBTARGET:=sama5d2
  67. BUILD_DEVICES:=at91-sama5d27_som1_ek
  68. endef
  69. define AT91Bootstrap/sama5d27_som1_eksd1_uboot
  70. TITLE:=AT91Bootstrap for SAMA5D27 SOM1 Ek (SDcard1)
  71. BUILD_SUBTARGET:=sama5d2
  72. BUILD_DEVICES:=at91-sama5d27_som1_ek
  73. endef
  74. define AT91Bootstrap/sama5d27_som1_ekqspi_uboot
  75. TITLE:=AT91Bootstrap for SAMA5D27 SOM1 Ek (QSPI Flash)
  76. BUILD_SUBTARGET:=sama5d2
  77. BUILD_DEVICES:=at91-sama5d27_som1_ek
  78. endef
  79. define AT91Bootstrap/sama5d2_ptc_eknf_uboot
  80. TITLE:=AT91Bootstrap for SAMA5D2 PTC EK (Nand Flash)
  81. BUILD_SUBTARGET:=sama5d2
  82. BUILD_DEVICES:=at91-sama5d2_ptc_ek
  83. endef
  84. define AT91Bootstrap/sama5d2_ptc_eksd_uboot
  85. TITLE:=AT91Bootstrap for SAMA5D2 PTC EK (SDCard)
  86. BUILD_SUBTARGET:=sama5d2
  87. BUILD_DEVICES:=at91-sama5d2_ptc_ek
  88. endef
  89. AT91BOOTSTRAP_TARGETS := \
  90. sama5d2_xplaineddf_uboot \
  91. sama5d2_xplaineddf_qspi_uboot \
  92. sama5d2_xplainedsd_uboot \
  93. sama5d3_xplainednf_uboot \
  94. sama5d3_xplainedsd_uboot \
  95. sama5d4_xplainednf_uboot_secure \
  96. sama5d4_xplaineddf_uboot_secure \
  97. sama5d4_xplainedsd_uboot_secure \
  98. sama5d27_som1_eksd_uboot \
  99. sama5d27_som1_ekqspi_uboot \
  100. sama5d2_ptc_eknf_uboot \
  101. sama5d2_ptc_eksd_uboot
  102. define Build/Compile
  103. +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
  104. CROSS_COMPILE=$(TARGET_CROSS)
  105. endef
  106. $(eval $(call BuildPackage/AT91Bootstrap))