Makefile 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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/sama5d2_xplaineddf_uboot
  36. TITLE:=AT91Bootstrap for SAMA5D2 Xplained board (SPI Flash)
  37. BUILD_SUBTARGET:=sama5
  38. BUILD_DEVICES:=microchip_sama5d2-xplained
  39. endef
  40. define AT91Bootstrap/sama5d2_xplaineddf_qspi_uboot
  41. TITLE:=AT91Bootstrap for SAMA5D2 Xplained board (QSPI Flash)
  42. BUILD_SUBTARGET:=sama5
  43. BUILD_DEVICES:=microchip_sama5d2-xplained
  44. endef
  45. define AT91Bootstrap/sama5d2_xplainedsd_uboot
  46. TITLE:=AT91Bootstrap for SAMA5D2 Xplained board (SDcard/EMMC)
  47. BUILD_SUBTARGET:=sama5
  48. BUILD_DEVICES:=microchip_sama5d2-xplained
  49. endef
  50. define AT91Bootstrap/sama5d3_xplainednf_uboot
  51. TITLE:=AT91Bootstrap for SAMA5D3 Xplained board (Nand Flash)
  52. BUILD_SUBTARGET:=sama5
  53. BUILD_DEVICES:=microchip_sama5d3-xplained
  54. endef
  55. define AT91Bootstrap/sama5d3_xplainedsd_uboot
  56. TITLE:=AT91Bootstrap for SAMA5D3 Xplained board (SDcard)
  57. BUILD_SUBTARGET:=sama5
  58. BUILD_DEVICES:=microchip_sama5d3-xplained
  59. endef
  60. define AT91Bootstrap/sama5d4_xplainednf_uboot_secure
  61. TITLE:=AT91Bootstrap for SAMA5D4 Xplained board (Nand Flash)
  62. BUILD_SUBTARGET:=sama5
  63. BUILD_DEVICES:=microchip_sama5d4-xplained
  64. endef
  65. define AT91Bootstrap/sama5d4_xplaineddf_uboot_secure
  66. TITLE:=AT91Bootstrap for SAMA5D4 Xplained board (SPI Flash)
  67. BUILD_SUBTARGET:=sama5
  68. BUILD_DEVICES:=microchip_sama5d4-xplained
  69. endef
  70. define AT91Bootstrap/sama5d4_xplainedsd_uboot_secure
  71. TITLE:=AT91Bootstrap for SAMA5D4 Xplained board (SDcard)
  72. BUILD_SUBTARGET:=sama5
  73. BUILD_DEVICES:=microchip_sama5d4-xplained
  74. endef
  75. define AT91Bootstrap/sama5d27_som1_eksd_uboot
  76. TITLE:=AT91Bootstrap for SAMA5D27 SOM1 Ek (SDcard0)
  77. BUILD_SUBTARGET:=sama5
  78. BUILD_DEVICES:=microchip_sama5d27-som1-ek
  79. endef
  80. define AT91Bootstrap/sama5d27_som1_eksd1_uboot
  81. TITLE:=AT91Bootstrap for SAMA5D27 SOM1 Ek (SDcard1)
  82. BUILD_SUBTARGET:=sama5
  83. BUILD_DEVICES:=microchip_sama5d27-som1-ek
  84. endef
  85. define AT91Bootstrap/sama5d27_som1_ekqspi_uboot
  86. TITLE:=AT91Bootstrap for SAMA5D27 SOM1 Ek (QSPI Flash)
  87. BUILD_SUBTARGET:=sama5
  88. BUILD_DEVICES:=microchip_sama5d27-som1-ek
  89. endef
  90. define AT91Bootstrap/sama5d2_ptc_eknf_uboot
  91. TITLE:=AT91Bootstrap for SAMA5D2 PTC EK (Nand Flash)
  92. BUILD_SUBTARGET:=sama5
  93. BUILD_DEVICES:=microchip_sama5d2-ptc-ek
  94. endef
  95. define AT91Bootstrap/sama5d2_ptc_eksd_uboot
  96. TITLE:=AT91Bootstrap for SAMA5D2 PTC EK (SDCard)
  97. BUILD_SUBTARGET:=sama5
  98. BUILD_DEVICES:=microchip_sama5d2-ptc-ek
  99. endef
  100. AT91BOOTSTRAP_TARGETS := \
  101. at91sam9x5eknf_uboot \
  102. at91sam9x5eksd_uboot \
  103. sama5d2_xplaineddf_uboot \
  104. sama5d2_xplaineddf_qspi_uboot \
  105. sama5d2_xplainedsd_uboot \
  106. sama5d3_xplainednf_uboot \
  107. sama5d3_xplainedsd_uboot \
  108. sama5d4_xplainednf_uboot_secure \
  109. sama5d4_xplaineddf_uboot_secure \
  110. sama5d4_xplainedsd_uboot_secure \
  111. sama5d27_som1_eksd1_uboot \
  112. sama5d27_som1_ekqspi_uboot \
  113. sama5d2_ptc_eknf_uboot \
  114. sama5d2_ptc_eksd_uboot
  115. define Build/Compile
  116. +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
  117. CROSS_COMPILE=$(TARGET_CROSS)
  118. endef
  119. $(eval $(call BuildPackage/AT91Bootstrap))