2 # Copyright (C) 2016 Microchip Technology Inc.
3 # <Sandeepsheriker.mallikarjun@microchip.com>
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
11 PKG_NAME
:=at91bootstrap
13 PKG_MIRROR_HASH
:=1ecdc31a13350fcdcaa3f77ed8ad73906f79fc668dbb2f337e1d5dd877bf9882
14 PKG_SOURCE_VERSION
:=1d9e673698d9db4a4f2301559f481274de2e75ae
15 BINARIES_DIR
:=build
/binaries
16 PKG_CPE_ID
:=cpe
:/a
:linux4sam
:at91bootstrap
19 ifdef CONFIG_PACKAGE_at91bootstrap-sama5d4_xplaineddf_uboot_secure
21 else ifdef CONFIG_TARGET_at91_sam9x
22 ifndef CONFIG_TARGET_at91_sam9x_DEVICE_microchip_sam9x60ek
27 ifeq ($(AT91BOOTSTRAP_V4
),n
)
29 PKG_MIRROR_HASH
=6fe61fe90838e785917383bb9e887fa05e1bd061a6725954242f504e38b5c426
30 PKG_SOURCE_VERSION
=404846dd283894367a015ca59189bcf927d92e11
37 PKG_SOURCE_URL
:=https
://github.com
/linux4sam
/at91bootstrap.git
39 $(BUILD_DIR
)/$(PKG_NAME
)-$(BUILD_VARIANT
)/$(PKG_NAME
)-$(PKG_VERSION
)
41 include at91bootstrap.mk
42 include $(INCLUDE_DIR
)/package.mk
44 define AT91Bootstrap
/Default
47 AT91BOOTSTRAP_IMAGE
:=at91bootstrap.bin
50 define AT91Bootstrap
/at91sam9x5eknf_uboot
51 NAME
:=AT91Bootstrap for AT91SAM9X5-EK board
(NandFlash
)
52 BUILD_SUBTARGET
:=sam9x
53 BUILD_DEVICES
:=atmel_at91sam9x25ek atmel_at91sam9x35ek
56 define AT91Bootstrap
/at91sam9x5eksd_uboot
57 NAME
:=AT91Bootstrap for AT91SAM9X5-EK board
(SDcard
)
58 BUILD_SUBTARGET
:=sam9x
59 BUILD_DEVICES
:=atmel_at91sam9x25ek atmel_at91sam9x35ek
62 define AT91Bootstrap
/sam9x60eknf_uboot
63 NAME
:=AT91Bootstrap for SAM9X60-EK board
(NandFlash
)
64 BUILD_SUBTARGET
:=sam9x
65 BUILD_DEVICES
:=microchip_sam9x60ek
68 define AT91Bootstrap
/sam9x60eksd_uboot
69 NAME
:=AT91Bootstrap for SAM9X60-EK board
(SDcard
)
70 BUILD_SUBTARGET
:=sam9x
71 BUILD_DEVICES
:=microchip_sam9x60ek
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
80 define AT91Bootstrap
/sama5d2_icpsd_uboot
81 TITLE
:=AT91Bootstrap for SAMA5D2 ICP board
(SDcard
)
82 BUILD_SUBTARGET
:=sama5
83 BUILD_DEVICES
:=microchip_sama5d2-icp
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
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
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
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
110 define AT91Bootstrap
/sama5d3_xplainedsd_uboot
111 TITLE
:=AT91Bootstrap for SAMA5D3 Xplained board
(SDcard
)
112 BUILD_SUBTARGET
:=sama5
113 BUILD_DEVICES
:=microchip_sama5d3-xplained
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
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
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
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
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
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
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
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
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
170 define AT91Bootstrap
/sama7g5eksd_uboot
171 TITLE
:=AT91Bootstrap for SAMA7G5-EK
(SDCard
)
172 BUILD_SUBTARGET
:=sama7
173 BUILD_DEVICES
:=microchip_sama7g5-ek
176 AT91BOOTSTRAP_TARGETS
:= \
177 at91sam9x5eknf_uboot \
178 at91sam9x5eksd_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 \
200 +$(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
) \
201 CROSS_COMPILE
=$(TARGET_CROSS
)
204 $(eval
$(call BuildPackage
/AT91Bootstrap
))