Makefile 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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.9.3
  11. PKG_RELEASE:=2
  12. PKG_SOURCE_PROTO:=git
  13. PKG_SOURCE_URL:=https://github.com/linux4sam/at91bootstrap.git
  14. PKG_MIRROR_HASH:=06753d673756edc9753932db00f4e5b8c1f9fa7708337c4d6ce280573efb86b4
  15. PKG_SOURCE_VERSION:=d96833a4b6680b237708eb4dc9f10708b9e709d8
  16. PKG_BUILD_DIR = \
  17. $(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
  18. include at91bootstrap.mk
  19. include $(INCLUDE_DIR)/package.mk
  20. define AT91Bootstrap/Default
  21. BUILD_TARGET:=at91
  22. HIDDEN:=1
  23. AT91BOOTSTRAP_IMAGE:=at91bootstrap.bin
  24. endef
  25. define AT91Bootstrap/at91sam9x5eknf_uboot
  26. NAME:=AT91Bootstrap for AT91SAM9X5-EK board (NandFlash)
  27. BUILD_SUBTARGET:=sam9x
  28. BUILD_DEVICES:=atmel_at91sam9x25ek atmel_at91sam9x35ek
  29. endef
  30. define AT91Bootstrap/at91sam9x5eksd_uboot
  31. NAME:=AT91Bootstrap for AT91SAM9X5-EK board (SDcard)
  32. BUILD_SUBTARGET:=sam9x
  33. BUILD_DEVICES:=atmel_at91sam9x25ek atmel_at91sam9x35ek
  34. endef
  35. define AT91Bootstrap/sam9x60eknf_uboot
  36. NAME:=AT91Bootstrap for SAM9X60-EK board (NandFlash)
  37. BUILD_SUBTARGET:=sam9x
  38. BUILD_DEVICES:=microchip_sam9x60ek
  39. endef
  40. define AT91Bootstrap/sam9x60eksd_uboot
  41. NAME:=AT91Bootstrap for SAM9X60-EK board (SDcard)
  42. BUILD_SUBTARGET:=sam9x
  43. BUILD_DEVICES:=microchip_sam9x60ek
  44. endef
  45. define AT91Bootstrap/sama5d2_icpdf_qspi_uboot
  46. TITLE:=AT91Bootstrap for SAMA5D2 ICP board (QSPI Flash)
  47. BUILD_SUBTARGET:=sama5
  48. BUILD_DEVICES:=microchip_sama5d2-icp
  49. endef
  50. define AT91Bootstrap/sama5d2_icpsd_uboot
  51. TITLE:=AT91Bootstrap for SAMA5D2 ICP board (SDcard)
  52. BUILD_SUBTARGET:=sama5
  53. BUILD_DEVICES:=microchip_sama5d2-icp
  54. endef
  55. define AT91Bootstrap/sama5d2_xplaineddf_uboot
  56. TITLE:=AT91Bootstrap for SAMA5D2 Xplained board (SPI Flash)
  57. BUILD_SUBTARGET:=sama5
  58. BUILD_DEVICES:=microchip_sama5d2-xplained
  59. endef
  60. define AT91Bootstrap/sama5d2_xplaineddf_qspi_uboot
  61. TITLE:=AT91Bootstrap for SAMA5D2 Xplained board (QSPI Flash)
  62. BUILD_SUBTARGET:=sama5
  63. BUILD_DEVICES:=microchip_sama5d2-xplained
  64. endef
  65. define AT91Bootstrap/sama5d2_xplainedsd_uboot
  66. TITLE:=AT91Bootstrap for SAMA5D2 Xplained board (SDcard/EMMC)
  67. BUILD_SUBTARGET:=sama5
  68. BUILD_DEVICES:=microchip_sama5d2-xplained
  69. endef
  70. define AT91Bootstrap/sama5d3_xplainednf_uboot
  71. TITLE:=AT91Bootstrap for SAMA5D3 Xplained board (Nand Flash)
  72. BUILD_SUBTARGET:=sama5
  73. BUILD_DEVICES:=microchip_sama5d3-xplained
  74. endef
  75. define AT91Bootstrap/sama5d3_xplainedsd_uboot
  76. TITLE:=AT91Bootstrap for SAMA5D3 Xplained board (SDcard)
  77. BUILD_SUBTARGET:=sama5
  78. BUILD_DEVICES:=microchip_sama5d3-xplained
  79. endef
  80. define AT91Bootstrap/sama5d4_xplainednf_uboot_secure
  81. TITLE:=AT91Bootstrap for SAMA5D4 Xplained board (Nand Flash)
  82. BUILD_SUBTARGET:=sama5
  83. BUILD_DEVICES:=microchip_sama5d4-xplained
  84. endef
  85. define AT91Bootstrap/sama5d4_xplaineddf_uboot_secure
  86. TITLE:=AT91Bootstrap for SAMA5D4 Xplained board (SPI Flash)
  87. BUILD_SUBTARGET:=sama5
  88. BUILD_DEVICES:=microchip_sama5d4-xplained
  89. endef
  90. define AT91Bootstrap/sama5d4_xplainedsd_uboot_secure
  91. TITLE:=AT91Bootstrap for SAMA5D4 Xplained board (SDcard)
  92. BUILD_SUBTARGET:=sama5
  93. BUILD_DEVICES:=microchip_sama5d4-xplained
  94. endef
  95. define AT91Bootstrap/sama5d27_som1_eksd_uboot
  96. TITLE:=AT91Bootstrap for SAMA5D27 SOM1 Ek (SDcard0)
  97. BUILD_SUBTARGET:=sama5
  98. BUILD_DEVICES:=microchip_sama5d27-som1-ek
  99. endef
  100. define AT91Bootstrap/sama5d27_som1_eksd1_uboot
  101. TITLE:=AT91Bootstrap for SAMA5D27 SOM1 Ek (SDcard1)
  102. BUILD_SUBTARGET:=sama5
  103. BUILD_DEVICES:=microchip_sama5d27-som1-ek
  104. endef
  105. define AT91Bootstrap/sama5d27_som1_ekqspi_uboot
  106. TITLE:=AT91Bootstrap for SAMA5D27 SOM1 Ek (QSPI Flash)
  107. BUILD_SUBTARGET:=sama5
  108. BUILD_DEVICES:=microchip_sama5d27-som1-ek
  109. endef
  110. define AT91Bootstrap/sama5d27_wlsom1_eksd_uboot
  111. TITLE:=AT91Bootstrap for SAMA5D27 WLSOM1 Ek (SDcard0)
  112. BUILD_SUBTARGET:=sama5
  113. BUILD_DEVICES:=microchip_sama5d27-wlsom1-ek
  114. endef
  115. define AT91Bootstrap/sama5d27_wlsom1_ekdf_qspi_uboot
  116. TITLE:=AT91Bootstrap for SAMA5D27 WLSOM1 Ek (QSPI Flash)
  117. BUILD_SUBTARGET:=sama5
  118. BUILD_DEVICES:=microchip_sama5d27-wlsom1-ek
  119. endef
  120. define AT91Bootstrap/sama5d2_ptc_eknf_uboot
  121. TITLE:=AT91Bootstrap for SAMA5D2 PTC EK (Nand Flash)
  122. BUILD_SUBTARGET:=sama5
  123. BUILD_DEVICES:=microchip_sama5d2-ptc-ek
  124. endef
  125. define AT91Bootstrap/sama5d2_ptc_eksd_uboot
  126. TITLE:=AT91Bootstrap for SAMA5D2 PTC EK (SDCard)
  127. BUILD_SUBTARGET:=sama5
  128. BUILD_DEVICES:=microchip_sama5d2-ptc-ek
  129. endef
  130. AT91BOOTSTRAP_TARGETS := \
  131. at91sam9x5eknf_uboot \
  132. at91sam9x5eksd_uboot \
  133. sam9x60eknf_uboot \
  134. sam9x60eksd_uboot \
  135. sama5d2_icpdf_qspi_uboot \
  136. sama5d2_icpsd_uboot \
  137. sama5d2_xplaineddf_uboot \
  138. sama5d2_xplaineddf_qspi_uboot \
  139. sama5d2_xplainedsd_uboot \
  140. sama5d3_xplainednf_uboot \
  141. sama5d3_xplainedsd_uboot \
  142. sama5d4_xplainednf_uboot_secure \
  143. sama5d4_xplaineddf_uboot_secure \
  144. sama5d4_xplainedsd_uboot_secure \
  145. sama5d27_som1_eksd1_uboot \
  146. sama5d27_som1_ekqspi_uboot \
  147. sama5d27_wlsom1_eksd_uboot \
  148. sama5d27_wlsom1_ekdf_qspi_uboot \
  149. sama5d2_ptc_eknf_uboot \
  150. sama5d2_ptc_eksd_uboot
  151. define Build/Compile
  152. +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
  153. CROSS_COMPILE=$(TARGET_CROSS)
  154. endef
  155. $(eval $(call BuildPackage/AT91Bootstrap))