at91: Merge SAMA5 subtargets
[openwrt/openwrt.git] / package / boot / at91bootstrap / Makefile
1 #
2 # Copyright (C) 2016 Microchip Technology Inc.
3 # <Sandeepsheriker.mallikarjun@microchip.com>
4 #
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
7 #
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=at91bootstrap
12 PKG_VERSION:=v3.8.10
13 PKG_RELEASE:=
14
15 PKG_SOURCE_PROTO:=git
16 PKG_SOURCE_URL:=https://github.com/linux4sam/at91bootstrap.git
17 PKG_SOURCE_VERSION:=04efa5500d60a0211d14b6ee60df7ce0a828704d
18
19 PKG_BUILD_DIR = \
20 $(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
21
22 include at91bootstrap.mk
23 include $(INCLUDE_DIR)/package.mk
24
25 define AT91Bootstrap/Default
26 BUILD_TARGET:=at91
27 HIDDEN:=1
28 AT91BOOTSTRAP_IMAGE:=at91bootstrap.bin
29 endef
30
31 define AT91Bootstrap/sama5d2_xplaineddf_uboot
32 TITLE:=AT91Bootstrap for SAMA5D2 Xplained board (SPI Flash)
33 BUILD_SUBTARGET:=sama5
34 BUILD_DEVICES:=at91-sama5d2_xplained
35 endef
36
37 define AT91Bootstrap/sama5d2_xplaineddf_qspi_uboot
38 TITLE:=AT91Bootstrap for SAMA5D2 Xplained board (QSPI Flash)
39 BUILD_SUBTARGET:=sama5
40 BUILD_DEVICES:=at91-sama5d2_xplained
41 endef
42
43 define AT91Bootstrap/sama5d2_xplainedsd_uboot
44 TITLE:=AT91Bootstrap for SAMA5D2 Xplained board (SDcard/EMMC)
45 BUILD_SUBTARGET:=sama5
46 BUILD_DEVICES:=at91-sama5d2_xplained
47 endef
48
49 define AT91Bootstrap/sama5d3_xplainednf_uboot
50 TITLE:=AT91Bootstrap for SAMA5D3 Xplained board (Nand Flash)
51 BUILD_SUBTARGET:=sama5
52 BUILD_DEVICES:=at91-sama5d3_xplained
53 endef
54
55 define AT91Bootstrap/sama5d3_xplainedsd_uboot
56 TITLE:=AT91Bootstrap for SAMA5D3 Xplained board (SDcard)
57 BUILD_SUBTARGET:=sama5
58 BUILD_DEVICES:=at91-sama5d3_xplained
59 endef
60
61 define AT91Bootstrap/sama5d4_xplainednf_uboot_secure
62 TITLE:=AT91Bootstrap for SAMA5D4 Xplained board (Nand Flash)
63 BUILD_SUBTARGET:=sama5
64 BUILD_DEVICES:=at91-sama5d4_xplained
65 endef
66
67 define AT91Bootstrap/sama5d4_xplaineddf_uboot_secure
68 TITLE:=AT91Bootstrap for SAMA5D4 Xplained board (SPI Flash)
69 BUILD_SUBTARGET:=sama5
70 BUILD_DEVICES:=at91-sama5d4_xplained
71 endef
72
73 define AT91Bootstrap/sama5d4_xplainedsd_uboot_secure
74 TITLE:=AT91Bootstrap for SAMA5D4 Xplained board (SDcard)
75 BUILD_SUBTARGET:=sama5
76 BUILD_DEVICES:=at91-sama5d4_xplained
77 endef
78
79 define AT91Bootstrap/sama5d27_som1_eksd_uboot
80 TITLE:=AT91Bootstrap for SAMA5D27 SOM1 Ek (SDcard0)
81 BUILD_SUBTARGET:=sama5
82 BUILD_DEVICES:=at91-sama5d27_som1_ek
83 endef
84
85 define AT91Bootstrap/sama5d27_som1_eksd1_uboot
86 TITLE:=AT91Bootstrap for SAMA5D27 SOM1 Ek (SDcard1)
87 BUILD_SUBTARGET:=sama5
88 BUILD_DEVICES:=at91-sama5d27_som1_ek
89 endef
90
91 define AT91Bootstrap/sama5d27_som1_ekqspi_uboot
92 TITLE:=AT91Bootstrap for SAMA5D27 SOM1 Ek (QSPI Flash)
93 BUILD_SUBTARGET:=sama5
94 BUILD_DEVICES:=at91-sama5d27_som1_ek
95 endef
96
97 define AT91Bootstrap/sama5d2_ptc_eknf_uboot
98 TITLE:=AT91Bootstrap for SAMA5D2 PTC EK (Nand Flash)
99 BUILD_SUBTARGET:=sama5
100 BUILD_DEVICES:=at91-sama5d2_ptc_ek
101 endef
102
103 define AT91Bootstrap/sama5d2_ptc_eksd_uboot
104 TITLE:=AT91Bootstrap for SAMA5D2 PTC EK (SDCard)
105 BUILD_SUBTARGET:=sama5
106 BUILD_DEVICES:=at91-sama5d2_ptc_ek
107 endef
108
109 AT91BOOTSTRAP_TARGETS := \
110 sama5d2_xplaineddf_uboot \
111 sama5d2_xplaineddf_qspi_uboot \
112 sama5d2_xplainedsd_uboot \
113 sama5d3_xplainednf_uboot \
114 sama5d3_xplainedsd_uboot \
115 sama5d4_xplainednf_uboot_secure \
116 sama5d4_xplaineddf_uboot_secure \
117 sama5d4_xplainedsd_uboot_secure \
118 sama5d27_som1_eksd_uboot \
119 sama5d27_som1_ekqspi_uboot \
120 sama5d2_ptc_eknf_uboot \
121 sama5d2_ptc_eksd_uboot
122
123 define Build/Compile
124 +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
125 CROSS_COMPILE=$(TARGET_CROSS)
126 endef
127
128 $(eval $(call BuildPackage/AT91Bootstrap))