Makefile 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. AT91BOOTSTRAP_IMAGE:=at91bootstrap.bin
  23. endef
  24. define at91bootstrap/sama5d2_xplaineddf_uboot
  25. TITLE:=AT91Bootstrap for the SAMA5D2 Xplained board (SPI Flash)
  26. BUILD_SUBTARGET:=sama5
  27. BUILD_DEVICES:=at91-sama5d2_xplained
  28. endef
  29. define at91bootstrap/sama5d2_xplaineddf_qspi_uboot
  30. TITLE:=AT91Bootstrap for the SAMA5D2 Xplained board (QSPI Flash)
  31. BUILD_SUBTARGET:=sama5
  32. BUILD_DEVICES:=at91-sama5d2_xplained
  33. endef
  34. define at91bootstrap/sama5d2_xplainedsd_uboot
  35. TITLE:=AT91Bootstrap for the SAMA5D2 Xplained board (SDcard/EMMC)
  36. BUILD_SUBTARGET:=sama5
  37. BUILD_DEVICES:=at91-sama5d2_xplained
  38. endef
  39. define at91bootstrap/sama5d3_xplainednf_uboot
  40. TITLE:=AT91Bootstrap for the SAMA5D3 Xplained board (Nand Flash)
  41. BUILD_SUBTARGET:=sama5
  42. BUILD_DEVICES:=at91-sama5d3_xplained
  43. endef
  44. define at91bootstrap/sama5d3_xplainedsd_uboot
  45. TITLE:=AT91Bootstrap for the SAMA5D3 Xplained board (SDcard)
  46. BUILD_SUBTARGET:=sama5
  47. BUILD_DEVICES:=at91-sama5d3_xplained
  48. endef
  49. define at91bootstrap/sama5d4_xplainednf_uboot
  50. TITLE:=AT91Bootstrap for the SAMA5D4 Xplained board (Nand Flash)
  51. BUILD_SUBTARGET:=sama5
  52. BUILD_DEVICES:=at91-sama5d4_xplained
  53. endef
  54. define at91bootstrap/sama5d4_xplaineddf_uboot_secure
  55. TITLE:=AT91Bootstrap for the SAMA5D4 Xplained board (SPI Flash)
  56. BUILD_SUBTARGET:=sama5
  57. BUILD_DEVICES:=at91-sama5d4_xplained
  58. endef
  59. define at91bootstrap/sama5d4_xplainedsd_uboot_secure
  60. TITLE:=AT91Bootstrap for the SAMA5D4 Xplained board (SDcard)
  61. BUILD_SUBTARGET:=sama5
  62. BUILD_DEVICES:=at91-sama5d4_xplained
  63. endef
  64. AT91BOOTSTRAP_TARGETS := \
  65. sama5d2_xplaineddf_uboot \
  66. sama5d2_xplaineddf_qspi_uboot \
  67. sama5d2_xplainedsd_uboot \
  68. sama5d3_xplainednf_uboot \
  69. sama5d3_xplainedsd_uboot \
  70. sama5d4_xplainednf_uboot_secure \
  71. sama5d4_xplaineddf_uboot_secure \
  72. sama5d4_xplainedsd_uboot_secure
  73. define Build/Compile
  74. +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
  75. CROSS_COMPILE=$(TARGET_CROSS)
  76. endef
  77. $(eval $(call BuildPackage/AT91Bootstrap))