Makefile 3.9 KB

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