treewide: Add extra CPE identifier
[openwrt/staging/hauke.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:=v4.0.3
13 PKG_MIRROR_HASH:=1ecdc31a13350fcdcaa3f77ed8ad73906f79fc668dbb2f337e1d5dd877bf9882
14 PKG_SOURCE_VERSION:=1d9e673698d9db4a4f2301559f481274de2e75ae
15 BINARIES_DIR:=build/binaries
16 PKG_CPE_ID:=cpe:/a:linux4sam:at91bootstrap
17
18 AT91BOOTSTRAP_V4=y
19 ifdef CONFIG_PACKAGE_at91bootstrap-sama5d4_xplaineddf_uboot_secure
20 AT91BOOTSTRAP_V4=n
21 else ifdef CONFIG_TARGET_at91_sam9x
22 ifndef CONFIG_TARGET_at91_sam9x_DEVICE_microchip_sam9x60ek
23 AT91BOOTSTRAP_V4=n
24 endif
25 endif
26
27 ifeq ($(AT91BOOTSTRAP_V4),n)
28 PKG_VERSION=v3.10.4
29 PKG_MIRROR_HASH=6fe61fe90838e785917383bb9e887fa05e1bd061a6725954242f504e38b5c426
30 PKG_SOURCE_VERSION=404846dd283894367a015ca59189bcf927d92e11
31 BINARIES_DIR=binaries
32 endif
33
34 PKG_RELEASE:=2
35
36 PKG_SOURCE_PROTO:=git
37 PKG_SOURCE_URL:=https://github.com/linux4sam/at91bootstrap.git
38 PKG_BUILD_DIR = \
39 $(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
40
41 include at91bootstrap.mk
42 include $(INCLUDE_DIR)/package.mk
43
44 define AT91Bootstrap/Default
45 BUILD_TARGET:=at91
46 HIDDEN:=1
47 AT91BOOTSTRAP_IMAGE:=at91bootstrap.bin
48 endef
49
50 define AT91Bootstrap/at91sam9x5eknf_uboot
51 NAME:=AT91Bootstrap for AT91SAM9X5-EK board (NandFlash)
52 BUILD_SUBTARGET:=sam9x
53 BUILD_DEVICES:=atmel_at91sam9x25ek atmel_at91sam9x35ek
54 endef
55
56 define AT91Bootstrap/at91sam9x5eksd_uboot
57 NAME:=AT91Bootstrap for AT91SAM9X5-EK board (SDcard)
58 BUILD_SUBTARGET:=sam9x
59 BUILD_DEVICES:=atmel_at91sam9x25ek atmel_at91sam9x35ek
60 endef
61
62 define AT91Bootstrap/sam9x60eknf_uboot
63 NAME:=AT91Bootstrap for SAM9X60-EK board (NandFlash)
64 BUILD_SUBTARGET:=sam9x
65 BUILD_DEVICES:=microchip_sam9x60ek
66 endef
67
68 define AT91Bootstrap/sam9x60eksd_uboot
69 NAME:=AT91Bootstrap for SAM9X60-EK board (SDcard)
70 BUILD_SUBTARGET:=sam9x
71 BUILD_DEVICES:=microchip_sam9x60ek
72 endef
73
74 define AT91Bootstrap/sama5d2_icpdf_qspi_uboot
75 TITLE:=AT91Bootstrap for SAMA5D2 ICP board (QSPI Flash)
76 BUILD_SUBTARGET:=sama5
77 BUILD_DEVICES:=microchip_sama5d2-icp
78 endef
79
80 define AT91Bootstrap/sama5d2_icpsd_uboot
81 TITLE:=AT91Bootstrap for SAMA5D2 ICP board (SDcard)
82 BUILD_SUBTARGET:=sama5
83 BUILD_DEVICES:=microchip_sama5d2-icp
84 endef
85
86 define AT91Bootstrap/sama5d2_xplaineddf_uboot
87 TITLE:=AT91Bootstrap for SAMA5D2 Xplained board (SPI Flash)
88 BUILD_SUBTARGET:=sama5
89 BUILD_DEVICES:=microchip_sama5d2-xplained
90 endef
91
92 define AT91Bootstrap/sama5d2_xplaineddf_qspi_uboot
93 TITLE:=AT91Bootstrap for SAMA5D2 Xplained board (QSPI Flash)
94 BUILD_SUBTARGET:=sama5
95 BUILD_DEVICES:=microchip_sama5d2-xplained
96 endef
97
98 define AT91Bootstrap/sama5d2_xplainedsd_uboot
99 TITLE:=AT91Bootstrap for SAMA5D2 Xplained board (SDcard/EMMC)
100 BUILD_SUBTARGET:=sama5
101 BUILD_DEVICES:=microchip_sama5d2-xplained
102 endef
103
104 define AT91Bootstrap/sama5d3_xplainednf_uboot
105 TITLE:=AT91Bootstrap for SAMA5D3 Xplained board (Nand Flash)
106 BUILD_SUBTARGET:=sama5
107 BUILD_DEVICES:=microchip_sama5d3-xplained
108 endef
109
110 define AT91Bootstrap/sama5d3_xplainedsd_uboot
111 TITLE:=AT91Bootstrap for SAMA5D3 Xplained board (SDcard)
112 BUILD_SUBTARGET:=sama5
113 BUILD_DEVICES:=microchip_sama5d3-xplained
114 endef
115
116 define AT91Bootstrap/sama5d4_xplainednf_uboot_secure
117 TITLE:=AT91Bootstrap for SAMA5D4 Xplained board (Nand Flash)
118 BUILD_SUBTARGET:=sama5
119 BUILD_DEVICES:=microchip_sama5d4-xplained
120 endef
121
122 define AT91Bootstrap/sama5d4_xplaineddf_uboot_secure
123 TITLE:=AT91Bootstrap for SAMA5D4 Xplained board (SPI Flash)
124 BUILD_SUBTARGET:=sama5
125 BUILD_DEVICES:=microchip_sama5d4-xplained
126 endef
127
128 define AT91Bootstrap/sama5d4_xplainedsd_uboot_secure
129 TITLE:=AT91Bootstrap for SAMA5D4 Xplained board (SDcard)
130 BUILD_SUBTARGET:=sama5
131 BUILD_DEVICES:=microchip_sama5d4-xplained
132 endef
133
134 define AT91Bootstrap/sama5d27_som1_eksd_uboot
135 TITLE:=AT91Bootstrap for SAMA5D27 SOM1 Ek (SDcard0)
136 BUILD_SUBTARGET:=sama5
137 BUILD_DEVICES:=microchip_sama5d27-som1-ek
138 endef
139
140 define AT91Bootstrap/sama5d27_som1_ekqspi_uboot
141 TITLE:=AT91Bootstrap for SAMA5D27 SOM1 Ek (QSPI Flash)
142 BUILD_SUBTARGET:=sama5
143 BUILD_DEVICES:=microchip_sama5d27-som1-ek
144 endef
145
146 define AT91Bootstrap/sama5d27_wlsom1_eksd_uboot
147 TITLE:=AT91Bootstrap for SAMA5D27 WLSOM1 Ek (SDcard0)
148 BUILD_SUBTARGET:=sama5
149 BUILD_DEVICES:=microchip_sama5d27-wlsom1-ek
150 endef
151
152 define AT91Bootstrap/sama5d27_wlsom1_ekdf_qspi_uboot
153 TITLE:=AT91Bootstrap for SAMA5D27 WLSOM1 Ek (QSPI Flash)
154 BUILD_SUBTARGET:=sama5
155 BUILD_DEVICES:=microchip_sama5d27-wlsom1-ek
156 endef
157
158 define AT91Bootstrap/sama5d2_ptc_eknf_uboot
159 TITLE:=AT91Bootstrap for SAMA5D2 PTC EK (Nand Flash)
160 BUILD_SUBTARGET:=sama5
161 BUILD_DEVICES:=microchip_sama5d2-ptc-ek
162 endef
163
164 define AT91Bootstrap/sama5d2_ptc_eksd_uboot
165 TITLE:=AT91Bootstrap for SAMA5D2 PTC EK (SDCard)
166 BUILD_SUBTARGET:=sama5
167 BUILD_DEVICES:=microchip_sama5d2-ptc-ek
168 endef
169
170 define AT91Bootstrap/sama7g5eksd_uboot
171 TITLE:=AT91Bootstrap for SAMA7G5-EK (SDCard)
172 BUILD_SUBTARGET:=sama7
173 BUILD_DEVICES:=microchip_sama7g5-ek
174 endef
175
176 AT91BOOTSTRAP_TARGETS := \
177 at91sam9x5eknf_uboot \
178 at91sam9x5eksd_uboot \
179 sam9x60eknf_uboot \
180 sam9x60eksd_uboot \
181 sama5d2_icpdf_qspi_uboot \
182 sama5d2_icpsd_uboot \
183 sama5d2_xplaineddf_uboot \
184 sama5d2_xplaineddf_qspi_uboot \
185 sama5d2_xplainedsd_uboot \
186 sama5d3_xplainednf_uboot \
187 sama5d3_xplainedsd_uboot \
188 sama5d4_xplainednf_uboot_secure \
189 sama5d4_xplaineddf_uboot_secure \
190 sama5d4_xplainedsd_uboot_secure \
191 sama5d27_som1_eksd_uboot \
192 sama5d27_som1_ekqspi_uboot \
193 sama5d27_wlsom1_eksd_uboot \
194 sama5d27_wlsom1_ekdf_qspi_uboot \
195 sama5d2_ptc_eknf_uboot \
196 sama5d2_ptc_eksd_uboot \
197 sama7g5eksd_uboot
198
199 define Build/Compile
200 +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
201 CROSS_COMPILE=$(TARGET_CROSS)
202 endef
203
204 $(eval $(call BuildPackage/AT91Bootstrap))