diff options
Diffstat (limited to 'recipes-bsp')
47 files changed, 907 insertions, 315 deletions
diff --git a/recipes-bsp/alsa-state/alsa-state.bbappend b/recipes-bsp/alsa-state/alsa-state.bbappend index 3a398b22..94331307 100644 --- a/recipes-bsp/alsa-state/alsa-state.bbappend +++ b/recipes-bsp/alsa-state/alsa-state.bbappend | |||
@@ -1,10 +1,10 @@ | |||
1 | # Append path for freescale layer to include alsa-state asound.conf | 1 | # Append path for freescale layer to include alsa-state asound.conf |
2 | FILESEXTRAPATHS_prepend_mx6 := "${THISDIR}/${PN}/imx:" | 2 | FILESEXTRAPATHS:prepend:mx6 := "${THISDIR}/${PN}/imx:" |
3 | FILESEXTRAPATHS_prepend_mx7 := "${THISDIR}/${PN}/imx:" | 3 | FILESEXTRAPATHS:prepend:mx7 := "${THISDIR}/${PN}/imx:" |
4 | FILESEXTRAPATHS_prepend_mx8 := "${THISDIR}/${PN}/imx:" | 4 | FILESEXTRAPATHS:prepend:mx8 := "${THISDIR}/${PN}/imx:" |
5 | FILESEXTRAPATHS_prepend_use-mainline-bsp := "${THISDIR}/${PN}/imx:" | 5 | FILESEXTRAPATHS:prepend:use-mainline-bsp := "${THISDIR}/${PN}/imx:" |
6 | 6 | ||
7 | PACKAGE_ARCH_mx6 = "${MACHINE_ARCH}" | 7 | PACKAGE_ARCH:mx6 = "${MACHINE_ARCH}" |
8 | PACKAGE_ARCH_mx7 = "${MACHINE_ARCH}" | 8 | PACKAGE_ARCH:mx7 = "${MACHINE_ARCH}" |
9 | PACKAGE_ARCH_mx8 = "${MACHINE_ARCH}" | 9 | PACKAGE_ARCH:mx8 = "${MACHINE_ARCH}" |
10 | PACKAGE_ARCH_use-mainline-bsp = "${MACHINE_ARCH}" | 10 | PACKAGE_ARCH:use-mainline-bsp = "${MACHINE_ARCH}" |
diff --git a/recipes-bsp/atf/files/0001-Clean-usage-of-void-pointers-to-access-symbols.patch b/recipes-bsp/atf/files/0001-Clean-usage-of-void-pointers-to-access-symbols.patch new file mode 100644 index 00000000..e3b6f860 --- /dev/null +++ b/recipes-bsp/atf/files/0001-Clean-usage-of-void-pointers-to-access-symbols.patch | |||
@@ -0,0 +1,709 @@ | |||
1 | From 9f85f9e3796f1c351bbc4c8436dc66d83c140b71 Mon Sep 17 00:00:00 2001 | ||
2 | From: Joel Hutton <Joel.Hutton@Arm.com> | ||
3 | Date: Wed, 21 Mar 2018 11:40:57 +0000 | ||
4 | Subject: [PATCH] Clean usage of void pointers to access symbols | ||
5 | |||
6 | Void pointers have been used to access linker symbols, by declaring an | ||
7 | extern pointer, then taking the address of it. This limits symbols | ||
8 | values to aligned pointer values. To remove this restriction an | ||
9 | IMPORT_SYM macro has been introduced, which declares it as a char | ||
10 | pointer and casts it to the required type. | ||
11 | |||
12 | Upstream-Status: Backport | ||
13 | |||
14 | Change-Id: I89877fc3b13ed311817bb8ba79d4872b89bfd3b0 | ||
15 | Signed-off-by: Joel Hutton <Joel.Hutton@Arm.com> | ||
16 | --- | ||
17 | bl1/bl1_private.h | 12 +++---- | ||
18 | common/runtime_svc.c | 4 +-- | ||
19 | drivers/auth/img_parser_mod.c | 9 +++--- | ||
20 | include/common/bl_common.h | 32 ++++++++++++------- | ||
21 | include/common/runtime_svc.h | 4 +-- | ||
22 | include/lib/utils_def.h | 19 ++++++++++- | ||
23 | include/plat/common/common_def.h | 24 ++------------ | ||
24 | include/services/secure_partition.h | 12 +++---- | ||
25 | lib/locks/bakery/bakery_lock_normal.c | 6 ++-- | ||
26 | lib/pmf/pmf_main.c | 19 +++++------ | ||
27 | plat/hisilicon/hikey/hikey_bl1_setup.c | 21 ++----------- | ||
28 | plat/hisilicon/hikey960/hikey960_bl1_setup.c | 16 ++-------- | ||
29 | plat/hisilicon/poplar/bl1_plat_setup.c | 13 ++------ | ||
30 | plat/mediatek/mt6795/bl31_plat_setup.c | 11 +++---- | ||
31 | plat/mediatek/mt8173/bl31_plat_setup.c | 28 +++-------------- | ||
32 | plat/nvidia/tegra/common/tegra_bl31_setup.c | 33 +++++++------------- | ||
33 | plat/rockchip/common/bl31_plat_setup.c | 13 ++------ | ||
34 | services/std_svc/spm/spm_shim_private.h | 14 +++------ | ||
35 | 18 files changed, 103 insertions(+), 187 deletions(-) | ||
36 | |||
37 | diff --git a/bl1/bl1_private.h b/bl1/bl1_private.h | ||
38 | index 6ac3b8c67..42a74d22f 100644 | ||
39 | --- a/bl1/bl1_private.h | ||
40 | +++ b/bl1/bl1_private.h | ||
41 | @@ -1,5 +1,5 @@ | ||
42 | /* | ||
43 | - * Copyright (c) 2013-2016, ARM Limited and Contributors. All rights reserved. | ||
44 | + * Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved. | ||
45 | * | ||
46 | * SPDX-License-Identifier: BSD-3-Clause | ||
47 | */ | ||
48 | @@ -8,18 +8,16 @@ | ||
49 | #define __BL1_PRIVATE_H__ | ||
50 | |||
51 | #include <types.h> | ||
52 | +#include <utils_def.h> | ||
53 | |||
54 | /******************************************************************************* | ||
55 | * Declarations of linker defined symbols which will tell us where BL1 lives | ||
56 | * in Trusted ROM and RAM | ||
57 | ******************************************************************************/ | ||
58 | -extern uintptr_t __BL1_ROM_END__; | ||
59 | -#define BL1_ROM_END (uintptr_t)(&__BL1_ROM_END__) | ||
60 | +IMPORT_SYM(uintptr_t, __BL1_ROM_END__, BL1_ROM_END); | ||
61 | |||
62 | -extern uintptr_t __BL1_RAM_START__; | ||
63 | -extern uintptr_t __BL1_RAM_END__; | ||
64 | -#define BL1_RAM_BASE (uintptr_t)(&__BL1_RAM_START__) | ||
65 | -#define BL1_RAM_LIMIT (uintptr_t)(&__BL1_RAM_END__) | ||
66 | +IMPORT_SYM(uintptr_t, __BL1_RAM_START__, BL1_RAM_BASE); | ||
67 | +IMPORT_SYM(uintptr_t, __BL1_RAM_END__, BL1_RAM_LIMIT); | ||
68 | |||
69 | /****************************************** | ||
70 | * Function prototypes | ||
71 | diff --git a/common/runtime_svc.c b/common/runtime_svc.c | ||
72 | index 0ea4cd093..de80f30c2 100644 | ||
73 | --- a/common/runtime_svc.c | ||
74 | +++ b/common/runtime_svc.c | ||
75 | @@ -1,5 +1,5 @@ | ||
76 | /* | ||
77 | - * Copyright (c) 2013-2017, ARM Limited and Contributors. All rights reserved. | ||
78 | + * Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved. | ||
79 | * | ||
80 | * SPDX-License-Identifier: BSD-3-Clause | ||
81 | */ | ||
82 | @@ -19,8 +19,6 @@ | ||
83 | * 'rt_svc_descs_indices' array. This gives the index of the descriptor in the | ||
84 | * 'rt_svc_descs' array which contains the SMC handler. | ||
85 | ******************************************************************************/ | ||
86 | -#define RT_SVC_DESCS_START ((uintptr_t) (&__RT_SVC_DESCS_START__)) | ||
87 | -#define RT_SVC_DESCS_END ((uintptr_t) (&__RT_SVC_DESCS_END__)) | ||
88 | uint8_t rt_svc_descs_indices[MAX_RT_SVCS]; | ||
89 | static rt_svc_desc_t *rt_svc_descs; | ||
90 | |||
91 | diff --git a/drivers/auth/img_parser_mod.c b/drivers/auth/img_parser_mod.c | ||
92 | index 6a0107115..63160141d 100644 | ||
93 | --- a/drivers/auth/img_parser_mod.c | ||
94 | +++ b/drivers/auth/img_parser_mod.c | ||
95 | @@ -1,5 +1,5 @@ | ||
96 | /* | ||
97 | - * Copyright (c) 2015, ARM Limited and Contributors. All rights reserved. | ||
98 | + * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved. | ||
99 | * | ||
100 | * SPDX-License-Identifier: BSD-3-Clause | ||
101 | */ | ||
102 | @@ -12,11 +12,10 @@ | ||
103 | #include <limits.h> | ||
104 | #include <stdint.h> | ||
105 | #include <string.h> | ||
106 | +#include <utils_def.h> | ||
107 | |||
108 | -extern uintptr_t __PARSER_LIB_DESCS_START__; | ||
109 | -extern uintptr_t __PARSER_LIB_DESCS_END__; | ||
110 | -#define PARSER_LIB_DESCS_START ((uintptr_t) (&__PARSER_LIB_DESCS_START__)) | ||
111 | -#define PARSER_LIB_DESCS_END ((uintptr_t) (&__PARSER_LIB_DESCS_END__)) | ||
112 | +IMPORT_SYM(uintptr_t, __PARSER_LIB_DESCS_START__, PARSER_LIB_DESCS_START); | ||
113 | +IMPORT_SYM(uintptr_t, __PARSER_LIB_DESCS_END__, PARSER_LIB_DESCS_END); | ||
114 | static unsigned int parser_lib_indices[IMG_MAX_TYPES]; | ||
115 | static img_parser_lib_desc_t *parser_lib_descs; | ||
116 | |||
117 | diff --git a/include/common/bl_common.h b/include/common/bl_common.h | ||
118 | index 4ef916f53..09a394dd1 100644 | ||
119 | --- a/include/common/bl_common.h | ||
120 | +++ b/include/common/bl_common.h | ||
121 | @@ -64,33 +64,41 @@ | ||
122 | #include <types.h> | ||
123 | #include <utils_def.h> /* To retain compatibility */ | ||
124 | |||
125 | + | ||
126 | /* | ||
127 | * Declarations of linker defined symbols to help determine memory layout of | ||
128 | * BL images | ||
129 | */ | ||
130 | #if SEPARATE_CODE_AND_RODATA | ||
131 | -extern uintptr_t __TEXT_START__; | ||
132 | -extern uintptr_t __TEXT_END__; | ||
133 | -extern uintptr_t __RODATA_START__; | ||
134 | -extern uintptr_t __RODATA_END__; | ||
135 | +IMPORT_SYM(unsigned long, __TEXT_START__, BL_CODE_BASE); | ||
136 | +IMPORT_SYM(unsigned long, __TEXT_END__, BL_CODE_END); | ||
137 | +IMPORT_SYM(unsigned long, __RODATA_START__, BL_RO_DATA_BASE); | ||
138 | +IMPORT_SYM(unsigned long, __RODATA_END__, BL_RO_DATA_END); | ||
139 | #else | ||
140 | -extern uintptr_t __RO_START__; | ||
141 | -extern uintptr_t __RO_END__; | ||
142 | +IMPORT_SYM(unsigned long, __RO_START__, BL_CODE_BASE); | ||
143 | +IMPORT_SYM(unsigned long, __RO_END__, BL_CODE_END); | ||
144 | #endif | ||
145 | |||
146 | #if defined(IMAGE_BL2) | ||
147 | -extern uintptr_t __BL2_END__; | ||
148 | +IMPORT_SYM(unsigned long, __BL2_END__, BL2_END); | ||
149 | #elif defined(IMAGE_BL2U) | ||
150 | -extern uintptr_t __BL2U_END__; | ||
151 | +IMPORT_SYM(unsigned long, __BL2U_END__, BL2U_END); | ||
152 | #elif defined(IMAGE_BL31) | ||
153 | -extern uintptr_t __BL31_END__; | ||
154 | +IMPORT_SYM(unsigned long, __BL31_END__, BL31_END); | ||
155 | #elif defined(IMAGE_BL32) | ||
156 | -extern uintptr_t __BL32_END__; | ||
157 | +IMPORT_SYM(unsigned long, __BL32_END__, BL32_END); | ||
158 | #endif /* IMAGE_BLX */ | ||
159 | |||
160 | +/* | ||
161 | + * The next 2 constants identify the extents of the coherent memory region. | ||
162 | + * These addresses are used by the MMU setup code and therefore they must be | ||
163 | + * page-aligned. It is the responsibility of the linker script to ensure that | ||
164 | + * __COHERENT_RAM_START__ and __COHERENT_RAM_END__ linker symbols refer to | ||
165 | + * page-aligned addresses. | ||
166 | + */ | ||
167 | #if USE_COHERENT_MEM | ||
168 | -extern uintptr_t __COHERENT_RAM_START__; | ||
169 | -extern uintptr_t __COHERENT_RAM_END__; | ||
170 | +IMPORT_SYM(unsigned long, __COHERENT_RAM_START__, BL_COHERENT_RAM_BASE); | ||
171 | +IMPORT_SYM(unsigned long, __COHERENT_RAM_END__, BL_COHERENT_RAM_END); | ||
172 | #endif | ||
173 | |||
174 | /******************************************************************************* | ||
175 | diff --git a/include/common/runtime_svc.h b/include/common/runtime_svc.h | ||
176 | index d12af227e..5d9fa3908 100644 | ||
177 | --- a/include/common/runtime_svc.h | ||
178 | +++ b/include/common/runtime_svc.h | ||
179 | @@ -122,8 +122,8 @@ CASSERT(RT_SVC_DESC_HANDLE == __builtin_offsetof(rt_svc_desc_t, handle), \ | ||
180 | void runtime_svc_init(void); | ||
181 | uintptr_t handle_runtime_svc(uint32_t smc_fid, void *cookie, void *handle, | ||
182 | unsigned int flags); | ||
183 | -extern uintptr_t __RT_SVC_DESCS_START__; | ||
184 | -extern uintptr_t __RT_SVC_DESCS_END__; | ||
185 | +IMPORT_SYM(uintptr_t, __RT_SVC_DESCS_START__, RT_SVC_DESCS_START); | ||
186 | +IMPORT_SYM(uintptr_t, __RT_SVC_DESCS_END__, RT_SVC_DESCS_END); | ||
187 | void init_crash_reporting(void); | ||
188 | |||
189 | extern uint8_t rt_svc_descs_indices[MAX_RT_SVCS]; | ||
190 | diff --git a/include/lib/utils_def.h b/include/lib/utils_def.h | ||
191 | index 4a5c3e0bc..8abc73c09 100644 | ||
192 | --- a/include/lib/utils_def.h | ||
193 | +++ b/include/lib/utils_def.h | ||
194 | @@ -1,5 +1,5 @@ | ||
195 | /* | ||
196 | - * Copyright (c) 2016-2017, ARM Limited and Contributors. All rights reserved. | ||
197 | + * Copyright (c) 2016-2018, ARM Limited and Contributors. All rights reserved. | ||
198 | * | ||
199 | * SPDX-License-Identifier: BSD-3-Clause | ||
200 | */ | ||
201 | @@ -99,4 +99,21 @@ | ||
202 | ((ARM_ARCH_MAJOR > _maj) || \ | ||
203 | ((ARM_ARCH_MAJOR == _maj) && (ARM_ARCH_MINOR >= _min))) | ||
204 | |||
205 | +/* | ||
206 | + * Import an assembly or linker symbol as a C expression with the specified | ||
207 | + * type | ||
208 | + */ | ||
209 | +#define IMPORT_SYM(type, sym, name) \ | ||
210 | + extern char sym[];\ | ||
211 | + static const __attribute__((unused)) type name = (type) sym; | ||
212 | + | ||
213 | +/* | ||
214 | + * When the symbol is used to hold a pointer, its alignment can be asserted | ||
215 | + * with this macro. For example, if there is a linker symbol that is going to | ||
216 | + * be used as a 64-bit pointer, the value of the linker symbol must also be | ||
217 | + * aligned to 64 bit. This macro makes sure this is the case. | ||
218 | + */ | ||
219 | +#define ASSERT_SYM_PTR_ALIGN(sym) assert(((size_t)(sym) % __alignof__(*(sym))) == 0) | ||
220 | + | ||
221 | + | ||
222 | #endif /* __UTILS_DEF_H__ */ | ||
223 | diff --git a/include/plat/common/common_def.h b/include/plat/common/common_def.h | ||
224 | index a841c3dbf..84923b9a7 100644 | ||
225 | --- a/include/plat/common/common_def.h | ||
226 | +++ b/include/plat/common/common_def.h | ||
227 | @@ -1,5 +1,5 @@ | ||
228 | /* | ||
229 | - * Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved. | ||
230 | + * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved. | ||
231 | * | ||
232 | * SPDX-License-Identifier: BSD-3-Clause | ||
233 | */ | ||
234 | @@ -74,33 +74,13 @@ | ||
235 | * page of it with the right memory attributes. | ||
236 | */ | ||
237 | #if SEPARATE_CODE_AND_RODATA | ||
238 | -#define BL_CODE_BASE (unsigned long)(&__TEXT_START__) | ||
239 | -#define BL_CODE_END (unsigned long)(&__TEXT_END__) | ||
240 | -#define BL_RO_DATA_BASE (unsigned long)(&__RODATA_START__) | ||
241 | -#define BL_RO_DATA_END (unsigned long)(&__RODATA_END__) | ||
242 | |||
243 | #define BL1_CODE_END BL_CODE_END | ||
244 | -#define BL1_RO_DATA_BASE (unsigned long)(&__RODATA_START__) | ||
245 | +#define BL1_RO_DATA_BASE BL_RO_DATA_BASE | ||
246 | #define BL1_RO_DATA_END round_up(BL1_ROM_END, PAGE_SIZE) | ||
247 | #else | ||
248 | -#define BL_CODE_BASE (unsigned long)(&__RO_START__) | ||
249 | -#define BL_CODE_END (unsigned long)(&__RO_END__) | ||
250 | #define BL_RO_DATA_BASE 0 | ||
251 | #define BL_RO_DATA_END 0 | ||
252 | - | ||
253 | #define BL1_CODE_END round_up(BL1_ROM_END, PAGE_SIZE) | ||
254 | -#define BL1_RO_DATA_BASE 0 | ||
255 | -#define BL1_RO_DATA_END 0 | ||
256 | #endif /* SEPARATE_CODE_AND_RODATA */ | ||
257 | - | ||
258 | -/* | ||
259 | - * The next 2 constants identify the extents of the coherent memory region. | ||
260 | - * These addresses are used by the MMU setup code and therefore they must be | ||
261 | - * page-aligned. It is the responsibility of the linker script to ensure that | ||
262 | - * __COHERENT_RAM_START__ and __COHERENT_RAM_END__ linker symbols refer to | ||
263 | - * page-aligned addresses. | ||
264 | - */ | ||
265 | -#define BL_COHERENT_RAM_BASE (unsigned long)(&__COHERENT_RAM_START__) | ||
266 | -#define BL_COHERENT_RAM_END (unsigned long)(&__COHERENT_RAM_END__) | ||
267 | - | ||
268 | #endif /* __COMMON_DEF_H__ */ | ||
269 | diff --git a/include/services/secure_partition.h b/include/services/secure_partition.h | ||
270 | index 93df2a137..f68f711be 100644 | ||
271 | --- a/include/services/secure_partition.h | ||
272 | +++ b/include/services/secure_partition.h | ||
273 | @@ -1,5 +1,5 @@ | ||
274 | /* | ||
275 | - * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved. | ||
276 | + * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved. | ||
277 | * | ||
278 | * SPDX-License-Identifier: BSD-3-Clause | ||
279 | */ | ||
280 | @@ -11,15 +11,11 @@ | ||
281 | #include <types.h> | ||
282 | #include <utils_def.h> | ||
283 | |||
284 | -/* Linker symbols */ | ||
285 | -extern uintptr_t __SP_IMAGE_XLAT_TABLES_START__; | ||
286 | -extern uintptr_t __SP_IMAGE_XLAT_TABLES_END__; | ||
287 | +/* Import linker symbols */ | ||
288 | +IMPORT_SYM(uintptr_t, __SP_IMAGE_XLAT_TABLES_START__, SP_IMAGE_XLAT_TABLES_START); | ||
289 | +IMPORT_SYM(uintptr_t, __SP_IMAGE_XLAT_TABLES_END__, SP_IMAGE_XLAT_TABLES_END); | ||
290 | |||
291 | /* Definitions */ | ||
292 | -#define SP_IMAGE_XLAT_TABLES_START \ | ||
293 | - (uintptr_t)(&__SP_IMAGE_XLAT_TABLES_START__) | ||
294 | -#define SP_IMAGE_XLAT_TABLES_END \ | ||
295 | - (uintptr_t)(&__SP_IMAGE_XLAT_TABLES_END__) | ||
296 | #define SP_IMAGE_XLAT_TABLES_SIZE \ | ||
297 | (SP_IMAGE_XLAT_TABLES_END - SP_IMAGE_XLAT_TABLES_START) | ||
298 | |||
299 | diff --git a/lib/locks/bakery/bakery_lock_normal.c b/lib/locks/bakery/bakery_lock_normal.c | ||
300 | index 8f59215e3..37697f521 100644 | ||
301 | --- a/lib/locks/bakery/bakery_lock_normal.c | ||
302 | +++ b/lib/locks/bakery/bakery_lock_normal.c | ||
303 | @@ -1,5 +1,5 @@ | ||
304 | /* | ||
305 | - * Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved. | ||
306 | + * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved. | ||
307 | * | ||
308 | * SPDX-License-Identifier: BSD-3-Clause | ||
309 | */ | ||
310 | @@ -10,6 +10,7 @@ | ||
311 | #include <cpu_data.h> | ||
312 | #include <platform.h> | ||
313 | #include <string.h> | ||
314 | +#include <utils_def.h> | ||
315 | |||
316 | /* | ||
317 | * Functions in this file implement Bakery Algorithm for mutual exclusion with the | ||
318 | @@ -49,8 +50,7 @@ CASSERT((PLAT_PERCPU_BAKERY_LOCK_SIZE & (CACHE_WRITEBACK_GRANULE - 1)) == 0, \ | ||
319 | * Use the linker defined symbol which has evaluated the size reqiurement. | ||
320 | * This is not as efficient as using a platform defined constant | ||
321 | */ | ||
322 | -extern void *__PERCPU_BAKERY_LOCK_SIZE__; | ||
323 | -#define PERCPU_BAKERY_LOCK_SIZE ((uintptr_t)&__PERCPU_BAKERY_LOCK_SIZE__) | ||
324 | +IMPORT_SYM(uintptr_t, __PERCPU_BAKERY_LOCK_SIZE__, PERCPU_BAKERY_LOCK_SIZE); | ||
325 | #endif | ||
326 | |||
327 | #define get_bakery_info(cpu_ix, lock) \ | ||
328 | diff --git a/lib/pmf/pmf_main.c b/lib/pmf/pmf_main.c | ||
329 | index 2cf260ec1..0208948fe 100644 | ||
330 | --- a/lib/pmf/pmf_main.c | ||
331 | +++ b/lib/pmf/pmf_main.c | ||
332 | @@ -1,5 +1,5 @@ | ||
333 | /* | ||
334 | - * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved. | ||
335 | + * Copyright (c) 2016-2018, ARM Limited and Contributors. All rights reserved. | ||
336 | * | ||
337 | * SPDX-License-Identifier: BSD-3-Clause | ||
338 | */ | ||
339 | @@ -11,6 +11,7 @@ | ||
340 | #include <platform.h> | ||
341 | #include <pmf.h> | ||
342 | #include <string.h> | ||
343 | +#include <utils_def.h> | ||
344 | |||
345 | /******************************************************************************* | ||
346 | * The 'pmf_svc_descs' array holds the PMF service descriptors exported by | ||
347 | @@ -21,16 +22,12 @@ | ||
348 | * index of the descriptor in the 'pmf_svc_descs' array which contains the | ||
349 | * service function pointers. | ||
350 | ******************************************************************************/ | ||
351 | -extern uintptr_t __PMF_SVC_DESCS_START__; | ||
352 | -extern uintptr_t __PMF_SVC_DESCS_END__; | ||
353 | -#define PMF_SVC_DESCS_START ((uintptr_t)(&__PMF_SVC_DESCS_START__)) | ||
354 | -#define PMF_SVC_DESCS_END ((uintptr_t)(&__PMF_SVC_DESCS_END__)) | ||
355 | -extern void *__PERCPU_TIMESTAMP_SIZE__; | ||
356 | -#define PMF_PERCPU_TIMESTAMP_SIZE ((uintptr_t)&__PERCPU_TIMESTAMP_SIZE__) | ||
357 | -extern uintptr_t __PMF_TIMESTAMP_START__; | ||
358 | -#define PMF_TIMESTAMP_ARRAY_START ((uintptr_t)&__PMF_TIMESTAMP_START__) | ||
359 | -extern uintptr_t __PMF_TIMESTAMP_END__; | ||
360 | -#define PMF_TIMESTAMP_ARRAY_END ((uintptr_t)&__PMF_TIMESTAMP_END__) | ||
361 | + | ||
362 | +IMPORT_SYM(uintptr_t, __PMF_SVC_DESCS_START__, PMF_SVC_DESCS_START); | ||
363 | +IMPORT_SYM(uintptr_t, __PMF_SVC_DESCS_END__, PMF_SVC_DESCS_END); | ||
364 | +IMPORT_SYM(uintptr_t, __PERCPU_TIMESTAMP_SIZE__, PMF_PERCPU_TIMESTAMP_SIZE); | ||
365 | +IMPORT_SYM(intptr_t, __PMF_TIMESTAMP_START__, PMF_TIMESTAMP_ARRAY_START); | ||
366 | +IMPORT_SYM(uintptr_t, __PMF_TIMESTAMP_END__, PMF_TIMESTAMP_ARRAY_END); | ||
367 | |||
368 | #define PMF_SVC_DESCS_MAX 10 | ||
369 | |||
370 | diff --git a/plat/hisilicon/hikey/hikey_bl1_setup.c b/plat/hisilicon/hikey/hikey_bl1_setup.c | ||
371 | index 69b194a53..9ede1dbc7 100644 | ||
372 | --- a/plat/hisilicon/hikey/hikey_bl1_setup.c | ||
373 | +++ b/plat/hisilicon/hikey/hikey_bl1_setup.c | ||
374 | @@ -23,23 +23,6 @@ | ||
375 | #include "hikey_def.h" | ||
376 | #include "hikey_private.h" | ||
377 | |||
378 | -/* | ||
379 | - * Declarations of linker defined symbols which will help us find the layout | ||
380 | - * of trusted RAM | ||
381 | - */ | ||
382 | -extern unsigned long __COHERENT_RAM_START__; | ||
383 | -extern unsigned long __COHERENT_RAM_END__; | ||
384 | - | ||
385 | -/* | ||
386 | - * The next 2 constants identify the extents of the coherent memory region. | ||
387 | - * These addresses are used by the MMU setup code and therefore they must be | ||
388 | - * page-aligned. It is the responsibility of the linker script to ensure that | ||
389 | - * __COHERENT_RAM_START__ and __COHERENT_RAM_END__ linker symbols refer to | ||
390 | - * page-aligned addresses. | ||
391 | - */ | ||
392 | -#define BL1_COHERENT_RAM_BASE (unsigned long)(&__COHERENT_RAM_START__) | ||
393 | -#define BL1_COHERENT_RAM_LIMIT (unsigned long)(&__COHERENT_RAM_END__) | ||
394 | - | ||
395 | /* Data structure which holds the extents of the trusted RAM for BL1 */ | ||
396 | static meminfo_t bl1_tzram_layout; | ||
397 | |||
398 | @@ -103,8 +86,8 @@ void bl1_plat_arch_setup(void) | ||
399 | bl1_tzram_layout.total_size, | ||
400 | BL1_RO_BASE, | ||
401 | BL1_RO_LIMIT, | ||
402 | - BL1_COHERENT_RAM_BASE, | ||
403 | - BL1_COHERENT_RAM_LIMIT); | ||
404 | + BL_COHERENT_RAM_BASE, | ||
405 | + BL_COHERENT_RAM_END); | ||
406 | } | ||
407 | |||
408 | /* | ||
409 | diff --git a/plat/hisilicon/hikey960/hikey960_bl1_setup.c b/plat/hisilicon/hikey960/hikey960_bl1_setup.c | ||
410 | index 9cadba0bb..6a07f0924 100644 | ||
411 | --- a/plat/hisilicon/hikey960/hikey960_bl1_setup.c | ||
412 | +++ b/plat/hisilicon/hikey960/hikey960_bl1_setup.c | ||
413 | @@ -37,18 +37,6 @@ enum { | ||
414 | * Declarations of linker defined symbols which will help us find the layout | ||
415 | * of trusted RAM | ||
416 | */ | ||
417 | -extern unsigned long __COHERENT_RAM_START__; | ||
418 | -extern unsigned long __COHERENT_RAM_END__; | ||
419 | - | ||
420 | -/* | ||
421 | - * The next 2 constants identify the extents of the coherent memory region. | ||
422 | - * These addresses are used by the MMU setup code and therefore they must be | ||
423 | - * page-aligned. It is the responsibility of the linker script to ensure that | ||
424 | - * __COHERENT_RAM_START__ and __COHERENT_RAM_END__ linker symbols refer to | ||
425 | - * page-aligned addresses. | ||
426 | - */ | ||
427 | -#define BL1_COHERENT_RAM_BASE (unsigned long)(&__COHERENT_RAM_START__) | ||
428 | -#define BL1_COHERENT_RAM_LIMIT (unsigned long)(&__COHERENT_RAM_END__) | ||
429 | |||
430 | /* Data structure which holds the extents of the trusted RAM for BL1 */ | ||
431 | static meminfo_t bl1_tzram_layout; | ||
432 | @@ -131,8 +119,8 @@ void bl1_plat_arch_setup(void) | ||
433 | bl1_tzram_layout.total_size, | ||
434 | BL1_RO_BASE, | ||
435 | BL1_RO_LIMIT, | ||
436 | - BL1_COHERENT_RAM_BASE, | ||
437 | - BL1_COHERENT_RAM_LIMIT); | ||
438 | + BL_COHERENT_RAM_BASE, | ||
439 | + BL_COHERENT_RAM_END); | ||
440 | } | ||
441 | |||
442 | static void hikey960_ufs_reset(void) | ||
443 | diff --git a/plat/hisilicon/poplar/bl1_plat_setup.c b/plat/hisilicon/poplar/bl1_plat_setup.c | ||
444 | index 39551135f..25eed5938 100644 | ||
445 | --- a/plat/hisilicon/poplar/bl1_plat_setup.c | ||
446 | +++ b/plat/hisilicon/poplar/bl1_plat_setup.c | ||
447 | @@ -1,5 +1,5 @@ | ||
448 | /* | ||
449 | - * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved. | ||
450 | + * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved. | ||
451 | * | ||
452 | * SPDX-License-Identifier: BSD-3-Clause | ||
453 | */ | ||
454 | @@ -23,13 +23,6 @@ | ||
455 | #include "hi3798cv200.h" | ||
456 | #include "plat_private.h" | ||
457 | |||
458 | -/* Symbols from link script for conherent section */ | ||
459 | -extern unsigned long __COHERENT_RAM_START__; | ||
460 | -extern unsigned long __COHERENT_RAM_END__; | ||
461 | - | ||
462 | -#define BL1_COHERENT_RAM_BASE (unsigned long)(&__COHERENT_RAM_START__) | ||
463 | -#define BL1_COHERENT_RAM_LIMIT (unsigned long)(&__COHERENT_RAM_END__) | ||
464 | - | ||
465 | /* Data structure which holds the extents of the trusted RAM for BL1 */ | ||
466 | static meminfo_t bl1_tzram_layout; | ||
467 | |||
468 | @@ -92,8 +85,8 @@ void bl1_plat_arch_setup(void) | ||
469 | bl1_tzram_layout.total_size, | ||
470 | BL1_RO_BASE, /* l-loader and BL1 ROM */ | ||
471 | BL1_RO_LIMIT, | ||
472 | - BL1_COHERENT_RAM_BASE, | ||
473 | - BL1_COHERENT_RAM_LIMIT); | ||
474 | + BL_COHERENT_RAM_BASE, | ||
475 | + BL_COHERENT_RAM_END); | ||
476 | } | ||
477 | |||
478 | void bl1_platform_setup(void) | ||
479 | diff --git a/plat/mediatek/mt6795/bl31_plat_setup.c b/plat/mediatek/mt6795/bl31_plat_setup.c | ||
480 | index 803f1ed85..32f015721 100644 | ||
481 | --- a/plat/mediatek/mt6795/bl31_plat_setup.c | ||
482 | +++ b/plat/mediatek/mt6795/bl31_plat_setup.c | ||
483 | @@ -1,5 +1,5 @@ | ||
484 | /* | ||
485 | - * Copyright (c) 2016-2017, ARM Limited and Contributors. All rights reserved. | ||
486 | + * Copyright (c) 2016-2018, ARM Limited and Contributors. All rights reserved. | ||
487 | * | ||
488 | * SPDX-License-Identifier: BSD-3-Clause | ||
489 | */ | ||
490 | @@ -21,22 +21,21 @@ | ||
491 | #include <plat_private.h> | ||
492 | #include <platform.h> | ||
493 | #include <string.h> | ||
494 | +#include <utils_def.h> | ||
495 | #include <xlat_tables.h> | ||
496 | + | ||
497 | /******************************************************************************* | ||
498 | * Declarations of linker defined symbols which will help us find the layout | ||
499 | * of trusted SRAM | ||
500 | ******************************************************************************/ | ||
501 | -unsigned long __RO_START__; | ||
502 | -unsigned long __RO_END__; | ||
503 | - | ||
504 | /* | ||
505 | * The next 2 constants identify the extents of the code & RO data region. | ||
506 | * These addresses are used by the MMU setup code and therefore they must be | ||
507 | * page-aligned. It is the responsibility of the linker script to ensure that | ||
508 | * __RO_START__ and __RO_END__ linker symbols refer to page-aligned addresses. | ||
509 | */ | ||
510 | -#define BL31_RO_BASE (unsigned long)(&__RO_START__) | ||
511 | -#define BL31_RO_LIMIT (unsigned long)(&__RO_END__) | ||
512 | +IMPORT_SYM(unsigned long, __RO_START__, BL31_RO_BASE); | ||
513 | +IMPORT_SYM(unsigned long, __RO_END__, BL31_RO_LIMIT); | ||
514 | |||
515 | /* | ||
516 | * Placeholder variables for copying the arguments that have been passed to | ||
517 | diff --git a/plat/mediatek/mt8173/bl31_plat_setup.c b/plat/mediatek/mt8173/bl31_plat_setup.c | ||
518 | index 7b2930771..e51bdbb9e 100644 | ||
519 | --- a/plat/mediatek/mt8173/bl31_plat_setup.c | ||
520 | +++ b/plat/mediatek/mt8173/bl31_plat_setup.c | ||
521 | @@ -1,5 +1,5 @@ | ||
522 | /* | ||
523 | - * Copyright (c) 2013-2016, ARM Limited and Contributors. All rights reserved. | ||
524 | + * Copyright (c) 2013-2018, ARM Limited and Contributors. All rights reserved. | ||
525 | * | ||
526 | * SPDX-License-Identifier: BSD-3-Clause | ||
527 | */ | ||
528 | @@ -17,24 +17,6 @@ | ||
529 | #include <platform.h> | ||
530 | #include <spm.h> | ||
531 | |||
532 | -/******************************************************************************* | ||
533 | - * Declarations of linker defined symbols which will help us find the layout | ||
534 | - * of trusted SRAM | ||
535 | - ******************************************************************************/ | ||
536 | -unsigned long __RO_START__; | ||
537 | -unsigned long __RO_END__; | ||
538 | - | ||
539 | -/* | ||
540 | - * The next 3 constants identify the extents of the code, RO data region and the | ||
541 | - * limit of the BL31 image. These addresses are used by the MMU setup code and | ||
542 | - * therefore they must be page-aligned. It is the responsibility of the linker | ||
543 | - * script to ensure that __RO_START__, __RO_END__ & __BL31_END__ linker symbols | ||
544 | - * refer to page-aligned addresses. | ||
545 | - */ | ||
546 | -#define BL31_RO_BASE (unsigned long)(&__RO_START__) | ||
547 | -#define BL31_RO_LIMIT (unsigned long)(&__RO_END__) | ||
548 | -#define BL31_END (unsigned long)(&__BL31_END__) | ||
549 | - | ||
550 | static entry_point_info_t bl32_ep_info; | ||
551 | static entry_point_info_t bl33_ep_info; | ||
552 | |||
553 | @@ -156,10 +138,10 @@ void bl31_plat_arch_setup(void) | ||
554 | plat_cci_init(); | ||
555 | plat_cci_enable(); | ||
556 | |||
557 | - plat_configure_mmu_el3(BL31_RO_BASE, | ||
558 | - BL_COHERENT_RAM_END - BL31_RO_BASE, | ||
559 | - BL31_RO_BASE, | ||
560 | - BL31_RO_LIMIT, | ||
561 | + plat_configure_mmu_el3(BL_CODE_BASE, | ||
562 | + BL_COHERENT_RAM_END - BL_CODE_BASE, | ||
563 | + BL_CODE_BASE, | ||
564 | + BL_CODE_END, | ||
565 | BL_COHERENT_RAM_BASE, | ||
566 | BL_COHERENT_RAM_END); | ||
567 | } | ||
568 | diff --git a/plat/nvidia/tegra/common/tegra_bl31_setup.c b/plat/nvidia/tegra/common/tegra_bl31_setup.c | ||
569 | index d89ad7b94..2fe4e7dbc 100644 | ||
570 | --- a/plat/nvidia/tegra/common/tegra_bl31_setup.c | ||
571 | +++ b/plat/nvidia/tegra/common/tegra_bl31_setup.c | ||
572 | @@ -1,5 +1,5 @@ | ||
573 | /* | ||
574 | - * Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved. | ||
575 | + * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved. | ||
576 | * | ||
577 | * SPDX-License-Identifier: BSD-3-Clause | ||
578 | */ | ||
579 | @@ -23,6 +23,7 @@ | ||
580 | #include <string.h> | ||
581 | #include <tegra_def.h> | ||
582 | #include <tegra_private.h> | ||
583 | +#include <utils_def.h> | ||
584 | |||
585 | /* length of Trusty's input parameters (in bytes) */ | ||
586 | #define TRUSTY_PARAMS_LEN_BYTES (4096*2) | ||
587 | @@ -33,29 +34,17 @@ extern void zeromem16(void *mem, unsigned int length); | ||
588 | * Declarations of linker defined symbols which will help us find the layout | ||
589 | * of trusted SRAM | ||
590 | ******************************************************************************/ | ||
591 | -extern unsigned long __TEXT_START__; | ||
592 | -extern unsigned long __TEXT_END__; | ||
593 | -extern unsigned long __RW_START__; | ||
594 | -extern unsigned long __RW_END__; | ||
595 | -extern unsigned long __RODATA_START__; | ||
596 | -extern unsigned long __RODATA_END__; | ||
597 | -extern unsigned long __BL31_END__; | ||
598 | + | ||
599 | +IMPORT_SYM(unsigned long, __RW_START__, BL31_RW_START); | ||
600 | +IMPORT_SYM(unsigned long, __RW_END__, BL31_RW_END); | ||
601 | +IMPORT_SYM(unsigned long, __RODATA_START__, BL31_RODATA_BASE); | ||
602 | +IMPORT_SYM(unsigned long, __RODATA_END__, BL31_RODATA_END); | ||
603 | +IMPORT_SYM(unsigned long, __TEXT_START__, TEXT_START); | ||
604 | +IMPORT_SYM(unsigned long, __TEXT_END__, TEXT_END); | ||
605 | |||
606 | extern uint64_t tegra_bl31_phys_base; | ||
607 | extern uint64_t tegra_console_base; | ||
608 | |||
609 | -/* | ||
610 | - * The next 3 constants identify the extents of the code, RO data region and the | ||
611 | - * limit of the BL3-1 image. These addresses are used by the MMU setup code and | ||
612 | - * therefore they must be page-aligned. It is the responsibility of the linker | ||
613 | - * script to ensure that __RO_START__, __RO_END__ & __BL31_END__ linker symbols | ||
614 | - * refer to page-aligned addresses. | ||
615 | - */ | ||
616 | -#define BL31_RW_START (unsigned long)(&__RW_START__) | ||
617 | -#define BL31_RW_END (unsigned long)(&__RW_END__) | ||
618 | -#define BL31_RODATA_BASE (unsigned long)(&__RODATA_START__) | ||
619 | -#define BL31_RODATA_END (unsigned long)(&__RODATA_END__) | ||
620 | -#define BL31_END (unsigned long)(&__BL31_END__) | ||
621 | |||
622 | static entry_point_info_t bl33_image_ep_info, bl32_image_ep_info; | ||
623 | static plat_params_from_bl2_t plat_bl31_params_from_bl2 = { | ||
624 | @@ -311,8 +300,8 @@ void bl31_plat_arch_setup(void) | ||
625 | unsigned long rw_size = BL31_RW_END - BL31_RW_START; | ||
626 | unsigned long rodata_start = BL31_RODATA_BASE; | ||
627 | unsigned long rodata_size = BL31_RODATA_END - BL31_RODATA_BASE; | ||
628 | - unsigned long code_base = (unsigned long)(&__TEXT_START__); | ||
629 | - unsigned long code_size = (unsigned long)(&__TEXT_END__) - code_base; | ||
630 | + unsigned long code_base = TEXT_START; | ||
631 | + unsigned long code_size = TEXT_END - TEXT_START; | ||
632 | const mmap_region_t *plat_mmio_map = NULL; | ||
633 | #if USE_COHERENT_MEM | ||
634 | unsigned long coh_start, coh_size; | ||
635 | diff --git a/plat/rockchip/common/bl31_plat_setup.c b/plat/rockchip/common/bl31_plat_setup.c | ||
636 | index 6199edae2..e5ee68f14 100644 | ||
637 | --- a/plat/rockchip/common/bl31_plat_setup.c | ||
638 | +++ b/plat/rockchip/common/bl31_plat_setup.c | ||
639 | @@ -1,5 +1,5 @@ | ||
640 | /* | ||
641 | - * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved. | ||
642 | + * Copyright (c) 2016-2018, ARM Limited and Contributors. All rights reserved. | ||
643 | * | ||
644 | * SPDX-License-Identifier: BSD-3-Clause | ||
645 | */ | ||
646 | @@ -17,21 +17,14 @@ | ||
647 | #include <platform_def.h> | ||
648 | #include <uart_16550.h> | ||
649 | |||
650 | -/******************************************************************************* | ||
651 | - * Declarations of linker defined symbols which will help us find the layout | ||
652 | - * of trusted SRAM | ||
653 | - ******************************************************************************/ | ||
654 | -unsigned long __RO_START__; | ||
655 | -unsigned long __RO_END__; | ||
656 | - | ||
657 | /* | ||
658 | * The next 2 constants identify the extents of the code & RO data region. | ||
659 | * These addresses are used by the MMU setup code and therefore they must be | ||
660 | * page-aligned. It is the responsibility of the linker script to ensure that | ||
661 | * __RO_START__ and __RO_END__ linker symbols refer to page-aligned addresses. | ||
662 | */ | ||
663 | -#define BL31_RO_BASE (unsigned long)(&__RO_START__) | ||
664 | -#define BL31_RO_LIMIT (unsigned long)(&__RO_END__) | ||
665 | +IMPORT_SYM(unsigned long, __RO_START__, BL31_RO_BASE); | ||
666 | +IMPORT_SYM(unsigned long, __RO_END__, BL31_RO_LIMIT); | ||
667 | |||
668 | static entry_point_info_t bl32_ep_info; | ||
669 | static entry_point_info_t bl33_ep_info; | ||
670 | diff --git a/services/std_svc/spm/spm_shim_private.h b/services/std_svc/spm/spm_shim_private.h | ||
671 | index ad953cde7..8408d1e04 100644 | ||
672 | --- a/services/std_svc/spm/spm_shim_private.h | ||
673 | +++ b/services/std_svc/spm/spm_shim_private.h | ||
674 | @@ -1,5 +1,5 @@ | ||
675 | /* | ||
676 | - * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved. | ||
677 | + * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved. | ||
678 | * | ||
679 | * SPDX-License-Identifier: BSD-3-Clause | ||
680 | */ | ||
681 | @@ -8,21 +8,17 @@ | ||
682 | #define __SPM_SHIM_PRIVATE__ | ||
683 | |||
684 | #include <types.h> | ||
685 | +#include <utils_def.h> | ||
686 | |||
687 | /* Assembly source */ | ||
688 | -extern uintptr_t spm_shim_exceptions_ptr; | ||
689 | +IMPORT_SYM(uintptr_t, spm_shim_exceptions_ptr, SPM_SHIM_EXCEPTIONS_PTR); | ||
690 | |||
691 | /* Linker symbols */ | ||
692 | -extern uintptr_t __SPM_SHIM_EXCEPTIONS_START__; | ||
693 | -extern uintptr_t __SPM_SHIM_EXCEPTIONS_END__; | ||
694 | +IMPORT_SYM(uintptr_t, __SPM_SHIM_EXCEPTIONS_START__, SPM_SHIM_EXCEPTIONS_START); | ||
695 | +IMPORT_SYM(uintptr_t, __SPM_SHIM_EXCEPTIONS_END__, SPM_SHIM_EXCEPTIONS_END); | ||
696 | |||
697 | /* Definitions */ | ||
698 | -#define SPM_SHIM_EXCEPTIONS_PTR (uintptr_t)(&spm_shim_exceptions_ptr) | ||
699 | |||
700 | -#define SPM_SHIM_EXCEPTIONS_START \ | ||
701 | - (uintptr_t)(&__SPM_SHIM_EXCEPTIONS_START__) | ||
702 | -#define SPM_SHIM_EXCEPTIONS_END \ | ||
703 | - (uintptr_t)(&__SPM_SHIM_EXCEPTIONS_END__) | ||
704 | #define SPM_SHIM_EXCEPTIONS_SIZE \ | ||
705 | (SPM_SHIM_EXCEPTIONS_END - SPM_SHIM_EXCEPTIONS_START) | ||
706 | |||
707 | -- | ||
708 | 2.25.1 | ||
709 | |||
diff --git a/recipes-bsp/atf/qoriq-atf_1.5.bb b/recipes-bsp/atf/qoriq-atf_1.5.bb index 19208334..fb686c94 100644 --- a/recipes-bsp/atf/qoriq-atf_1.5.bb +++ b/recipes-bsp/atf/qoriq-atf_1.5.bb | |||
@@ -8,12 +8,14 @@ PV = "1.5+git${SRCPV}" | |||
8 | inherit deploy | 8 | inherit deploy |
9 | 9 | ||
10 | DEPENDS += "u-boot-mkimage-native u-boot openssl openssl-native mbedtls rcw cst-native" | 10 | DEPENDS += "u-boot-mkimage-native u-boot openssl openssl-native mbedtls rcw cst-native" |
11 | DEPENDS_append_lx2160a = " ddr-phy" | 11 | DEPENDS:append:lx2160a = " ddr-phy" |
12 | do_compile[depends] += "u-boot:do_deploy rcw:do_deploy uefi:do_deploy" | 12 | do_compile[depends] += "u-boot:do_deploy rcw:do_deploy uefi:do_deploy" |
13 | 13 | ||
14 | S = "${WORKDIR}/git" | 14 | S = "${WORKDIR}/git" |
15 | 15 | ||
16 | SRC_URI = "git://source.codeaurora.org/external/qoriq/qoriq-components/atf;nobranch=1" | 16 | SRC_URI = "git://source.codeaurora.org/external/qoriq/qoriq-components/atf;nobranch=1 \ |
17 | file://0001-Clean-usage-of-void-pointers-to-access-symbols.patch \ | ||
18 | " | ||
17 | SRCREV = "5ae5233c064e94a8bd1b4a1652a03b87b0be63f6" | 19 | SRCREV = "5ae5233c064e94a8bd1b4a1652a03b87b0be63f6" |
18 | 20 | ||
19 | COMPATIBLE_MACHINE = "(qoriq)" | 21 | COMPATIBLE_MACHINE = "(qoriq)" |
@@ -21,12 +23,12 @@ COMPATIBLE_MACHINE = "(qoriq)" | |||
21 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 23 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
22 | 24 | ||
23 | PLATFORM = "${MACHINE}" | 25 | PLATFORM = "${MACHINE}" |
24 | PLATFORM_ls1088ardb-pb = "ls1088ardb" | 26 | PLATFORM:ls1088ardb-pb = "ls1088ardb" |
25 | PLATFORM_ADDITIONAL_TARGET ??= "" | 27 | PLATFORM_ADDITIONAL_TARGET ??= "" |
26 | PLATFORM_ADDITIONAL_TARGET_ls1012afrwy = "ls1012afrwy_512mb" | 28 | PLATFORM_ADDITIONAL_TARGET:ls1012afrwy = "ls1012afrwy_512mb" |
27 | 29 | ||
28 | RCW_FOLDER ?= "${MACHINE}" | 30 | RCW_FOLDER ?= "${MACHINE}" |
29 | RCW_FOLDER_ls1088ardb-pb = "ls1088ardb" | 31 | RCW_FOLDER:ls1088ardb-pb = "ls1088ardb" |
30 | 32 | ||
31 | # requires CROSS_COMPILE set by hand as there is no configure script | 33 | # requires CROSS_COMPILE set by hand as there is no configure script |
32 | export CROSS_COMPILE="${TARGET_PREFIX}" | 34 | export CROSS_COMPILE="${TARGET_PREFIX}" |
@@ -56,16 +58,16 @@ PACKAGECONFIG[optee] = ",,optee-os-qoriq" | |||
56 | uboot_boot_sec ?= "${DEPLOY_DIR_IMAGE}/u-boot.bin-tfa-secure-boot" | 58 | uboot_boot_sec ?= "${DEPLOY_DIR_IMAGE}/u-boot.bin-tfa-secure-boot" |
57 | uboot_boot ?= "${DEPLOY_DIR_IMAGE}/u-boot.bin-tfa" | 59 | uboot_boot ?= "${DEPLOY_DIR_IMAGE}/u-boot.bin-tfa" |
58 | rcw ?= "" | 60 | rcw ?= "" |
59 | rcw_ls1012a = "_default" | 61 | rcw:ls1012a = "_default" |
60 | rcwsec ?= "_sben" | 62 | rcwsec ?= "_sben" |
61 | 63 | ||
62 | chassistype ?= "ls2088_1088" | 64 | chassistype ?= "ls2088_1088" |
63 | chassistype_ls1012a = "ls104x_1012" | 65 | chassistype:ls1012a = "ls104x_1012" |
64 | chassistype_ls1043a = "ls104x_1012" | 66 | chassistype:ls1043a = "ls104x_1012" |
65 | chassistype_ls1046a = "ls104x_1012" | 67 | chassistype:ls1046a = "ls104x_1012" |
66 | 68 | ||
67 | ddrphyopt ?= "" | 69 | ddrphyopt ?= "" |
68 | ddrphyopt_lx2160a = "fip_ddr_sec" | 70 | ddrphyopt:lx2160a = "fip_ddr_sec" |
69 | 71 | ||
70 | do_configure[noexec] = "1" | 72 | do_configure[noexec] = "1" |
71 | 73 | ||
@@ -242,5 +244,5 @@ do_deploy() { | |||
242 | fi | 244 | fi |
243 | } | 245 | } |
244 | addtask deploy after do_install | 246 | addtask deploy after do_install |
245 | FILES_${PN} += "/boot" | 247 | FILES:${PN} += "/boot" |
246 | BBCLASSEXTEND = "native nativesdk" | 248 | BBCLASSEXTEND = "native nativesdk" |
diff --git a/recipes-bsp/atf/qoriq-atf_2.3.bb b/recipes-bsp/atf/qoriq-atf_2.3.bb index aed32851..f2922c91 100644 --- a/recipes-bsp/atf/qoriq-atf_2.3.bb +++ b/recipes-bsp/atf/qoriq-atf_2.3.bb | |||
@@ -47,7 +47,7 @@ do_compile() { | |||
47 | if [ "${NXP_COT}" = "true" -a "${ARM_COT}" = "true" ]; then | 47 | if [ "${NXP_COT}" = "true" -a "${ARM_COT}" = "true" ]; then |
48 | bbfatal " \ | 48 | bbfatal " \ |
49 | Error!, Both ARM CoT and NXP CoT are enabled. Only one CoT is built in a yocto build, \ | 49 | Error!, Both ARM CoT and NXP CoT are enabled. Only one CoT is built in a yocto build, \ |
50 | Don't add nxp-cot and arm-cot into DISTRO_FEATURES_append at the same time." | 50 | Don't add nxp-cot and arm-cot into DISTRO_FEATURES:append at the same time." |
51 | fi | 51 | fi |
52 | 52 | ||
53 | if [ "${NXP_COT}" = "true" ]; then | 53 | if [ "${NXP_COT}" = "true" ]; then |
@@ -160,7 +160,7 @@ do_install() { | |||
160 | 160 | ||
161 | do_deploy() { | 161 | do_deploy() { |
162 | if [ "${ARM_COT}" = "true" ]; then | 162 | if [ "${ARM_COT}" = "true" ]; then |
163 | outputdir="atf_arm-cot" | 163 | outputdir="atf:arm-cot" |
164 | elif [ "${NXP_COT}" = "true" ]; then | 164 | elif [ "${NXP_COT}" = "true" ]; then |
165 | outputdir="atf_nxp-cot" | 165 | outputdir="atf_nxp-cot" |
166 | else | 166 | else |
@@ -171,5 +171,5 @@ do_deploy() { | |||
171 | cp -fr ${D}/boot/atf/* ${DEPLOYDIR}/${outputdir}/ | 171 | cp -fr ${D}/boot/atf/* ${DEPLOYDIR}/${outputdir}/ |
172 | } | 172 | } |
173 | addtask deploy after do_install | 173 | addtask deploy after do_install |
174 | FILES_${PN} += "/boot" | 174 | FILES:${PN} += "/boot" |
175 | COMPATIBLE_MACHINE = "(lx2160a|lx2162a)" | 175 | COMPATIBLE_MACHINE = "(lx2160a|lx2162a)" |
diff --git a/recipes-bsp/boot-format/boot-format_git.bb b/recipes-bsp/boot-format/boot-format_git.bb index 92ec8307..584c5c68 100644 --- a/recipes-bsp/boot-format/boot-format_git.bb +++ b/recipes-bsp/boot-format/boot-format_git.bb | |||
@@ -15,6 +15,6 @@ do_install(){ | |||
15 | } | 15 | } |
16 | 16 | ||
17 | PACKAGES =+ "${PN}-config" | 17 | PACKAGES =+ "${PN}-config" |
18 | FILES_${PN}-config += "${datadir}/*" | 18 | FILES:${PN}-config += "${datadir}/*" |
19 | 19 | ||
20 | BBCLASSEXTEND = "native nativesdk" | 20 | BBCLASSEXTEND = "native nativesdk" |
diff --git a/recipes-bsp/ddr-phy/ddr-phy_git.bb b/recipes-bsp/ddr-phy/ddr-phy_git.bb index fa8833fd..6e68bd02 100644 --- a/recipes-bsp/ddr-phy/ddr-phy_git.bb +++ b/recipes-bsp/ddr-phy/ddr-phy_git.bb | |||
@@ -38,7 +38,7 @@ do_deploy () { | |||
38 | addtask deploy before do_populate_sysroot after do_install | 38 | addtask deploy before do_populate_sysroot after do_install |
39 | 39 | ||
40 | PACKAGES += "${PN}-image" | 40 | PACKAGES += "${PN}-image" |
41 | FILES_${PN}-image += "/boot" | 41 | FILES:${PN}-image += "/boot" |
42 | 42 | ||
43 | COMPATIBLE_MACHINE = "(lx2160a|lx2162a)" | 43 | COMPATIBLE_MACHINE = "(lx2160a|lx2162a)" |
44 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 44 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
diff --git a/recipes-bsp/dp-firmware-cadence/dp-firmware-cadence_20.04.bb b/recipes-bsp/dp-firmware-cadence/dp-firmware-cadence_20.04.bb index e8db5456..7b77e6f8 100644 --- a/recipes-bsp/dp-firmware-cadence/dp-firmware-cadence_20.04.bb +++ b/recipes-bsp/dp-firmware-cadence/dp-firmware-cadence_20.04.bb | |||
@@ -23,7 +23,7 @@ do_deploy () { | |||
23 | addtask deploy before do_build after do_install | 23 | addtask deploy before do_build after do_install |
24 | 24 | ||
25 | PACKAGES += "${PN}-image" | 25 | PACKAGES += "${PN}-image" |
26 | FILES_${PN}-image += "/boot" | 26 | FILES:${PN}-image += "/boot" |
27 | 27 | ||
28 | COMPATIBLE_MACHINE = "(qoriq-arm64)" | 28 | COMPATIBLE_MACHINE = "(qoriq-arm64)" |
29 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 29 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
diff --git a/recipes-bsp/firmware-imx/firmware-imx-8_8.12.bb b/recipes-bsp/firmware-imx/firmware-imx-8_8.12.bb index 650c1cfd..6ea16d5b 100644 --- a/recipes-bsp/firmware-imx/firmware-imx-8_8.12.bb +++ b/recipes-bsp/firmware-imx/firmware-imx-8_8.12.bb | |||
@@ -19,5 +19,5 @@ addtask deploy after do_install before do_build | |||
19 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" | 19 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" |
20 | 20 | ||
21 | COMPATIBLE_MACHINE = "(mx8)" | 21 | COMPATIBLE_MACHINE = "(mx8)" |
22 | COMPATIBLE_MACHINE_mx8m = "(^$)" | 22 | COMPATIBLE_MACHINE:mx8m = "(^$)" |
23 | COMPATIBLE_MACHINE_mx8x = "(^$)" | 23 | COMPATIBLE_MACHINE:mx8x = "(^$)" |
diff --git a/recipes-bsp/firmware-imx/firmware-imx_8.12.bb b/recipes-bsp/firmware-imx/firmware-imx_8.12.bb index 8ff4a321..68539a61 100644 --- a/recipes-bsp/firmware-imx/firmware-imx_8.12.bb +++ b/recipes-bsp/firmware-imx/firmware-imx_8.12.bb | |||
@@ -65,7 +65,7 @@ do_install() { | |||
65 | # as second one, and for every file match - it creates a separate package, | 65 | # as second one, and for every file match - it creates a separate package, |
66 | # which contains only files that matches the pattern. | 66 | # which contains only files that matches the pattern. |
67 | # | 67 | # |
68 | python populate_packages_prepend() { | 68 | python populate_packages:prepend() { |
69 | easrcdir = bb.data.expand('${nonarch_base_libdir}/firmware/imx/easrc', d) | 69 | easrcdir = bb.data.expand('${nonarch_base_libdir}/firmware/imx/easrc', d) |
70 | do_split_packages(d, easrcdir, '^easrc-([^_]*).*\.bin', | 70 | do_split_packages(d, easrcdir, '^easrc-([^_]*).*\.bin', |
71 | output_pattern='firmware-imx-easrc-%s', | 71 | output_pattern='firmware-imx-easrc-%s', |
@@ -123,7 +123,7 @@ PACKAGES_DYNAMIC = "${PN}-vpu-* ${PN}-sdma-* ${PN}-easrc-* ${PN}-xcvr-* ${PN}-xu | |||
123 | # files it makes no sense. | 123 | # files it makes no sense. |
124 | PACKAGES = "${PN} ${PN}-epdc ${PN}-hdmi" | 124 | PACKAGES = "${PN} ${PN}-epdc ${PN}-hdmi" |
125 | 125 | ||
126 | FILES_${PN}-epdc = "${nonarch_base_libdir}/firmware/imx/epdc/" | 126 | FILES:${PN}-epdc = "${nonarch_base_libdir}/firmware/imx/epdc/" |
127 | FILES_${PN}-hdmi = "${nonarch_base_libdir}/firmware/imx/hdmi/" | 127 | FILES:${PN}-hdmi = "${nonarch_base_libdir}/firmware/imx/hdmi/" |
128 | 128 | ||
129 | COMPATIBLE_MACHINE = "(imx|use-mainline-bsp)" | 129 | COMPATIBLE_MACHINE = "(imx|use-mainline-bsp)" |
diff --git a/recipes-bsp/firmware-imx/firmware-nxp-wifi_1.0.bb b/recipes-bsp/firmware-imx/firmware-nxp-wifi_1.0.bb index 0f0a2af0..287b1cff 100644 --- a/recipes-bsp/firmware-imx/firmware-nxp-wifi_1.0.bb +++ b/recipes-bsp/firmware-imx/firmware-nxp-wifi_1.0.bb | |||
@@ -18,7 +18,7 @@ S = "${WORKDIR}/git" | |||
18 | inherit allarch | 18 | inherit allarch |
19 | 19 | ||
20 | CLEANBROKEN = "1" | 20 | CLEANBROKEN = "1" |
21 | ALLOW_EMPTY_${PN} = "1" | 21 | ALLOW_EMPTY:${PN} = "1" |
22 | 22 | ||
23 | do_compile() { | 23 | do_compile() { |
24 | : | 24 | : |
@@ -38,9 +38,9 @@ PACKAGES =+ " \ | |||
38 | ${PN}-bcm4359-pcie \ | 38 | ${PN}-bcm4359-pcie \ |
39 | " | 39 | " |
40 | 40 | ||
41 | FILES_${PN}-bcm4359-pcie = " \ | 41 | FILES:${PN}-bcm4359-pcie = " \ |
42 | ${nonarch_base_libdir}/firmware/brcm/brcmfmac4359-pcie.* \ | 42 | ${nonarch_base_libdir}/firmware/brcm/brcmfmac4359-pcie.* \ |
43 | ${sysconfdir}/firmware/BCM4349B1_*.hcd \ | 43 | ${sysconfdir}/firmware/BCM4349B1_*.hcd \ |
44 | " | 44 | " |
45 | 45 | ||
46 | RPROVIDES_${PN}-bcm4359-pcie = "linux-firmware-bcm4359-pcie" | 46 | RPROVIDES:${PN}-bcm4359-pcie = "linux-firmware-bcm4359-pcie" |
diff --git a/recipes-bsp/firmware-imx/firmware-sof-imx_1.5.0-3.bb b/recipes-bsp/firmware-imx/firmware-sof-imx_1.5.0-3.bb index 22f4c25f..2ce98344 100644 --- a/recipes-bsp/firmware-imx/firmware-sof-imx_1.5.0-3.bb +++ b/recipes-bsp/firmware-imx/firmware-sof-imx_1.5.0-3.bb | |||
@@ -21,4 +21,4 @@ do_install() { | |||
21 | cp -r sof* ${D}${nonarch_base_libdir}/firmware/imx/ | 21 | cp -r sof* ${D}${nonarch_base_libdir}/firmware/imx/ |
22 | } | 22 | } |
23 | 23 | ||
24 | FILES_${PN} = "${nonarch_base_libdir}/firmware/imx" | 24 | FILES:${PN} = "${nonarch_base_libdir}/firmware/imx" |
diff --git a/recipes-bsp/firmware-qca/firmware-qca.inc b/recipes-bsp/firmware-qca/firmware-qca.inc deleted file mode 100644 index f33f4eb9..00000000 --- a/recipes-bsp/firmware-qca/firmware-qca.inc +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | # Copyright (C) 2018-2020 NXP | ||
2 | |||
3 | SUMMARY = "Qualcomm Wi-Fi and Bluetooth firmware" | ||
4 | SECTION = "base" | ||
5 | LICENSE = "Proprietary" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=fd4b227530cd88a82af6a5982cfb724d \ | ||
7 | file://QUALCOMM_ATHEROS_LICENSE_AGREEMENT.pdf;md5=e629669cf17f6a2a6872e067582986e3 \ | ||
8 | " | ||
9 | |||
10 | SRC_URI = " ${FSL_MIRROR}/firmware-qca-${PV}.bin;fsl-eula=true" | ||
11 | SRC_URI[md5sum] = "75b1b2a8dea8f81609ccfc072d42fa86" | ||
12 | SRC_URI[sha256sum] = "6ad56ac1df841e252ac6db0a8966082715a3cb6dc7189426bade13333a16fd9d" | ||
13 | S = "${WORKDIR}/firmware-qca-${PV}" | ||
14 | |||
15 | inherit fsl-eula-unpack | ||
diff --git a/recipes-bsp/firmware-qca/firmware-qca6174_3.0.2.bb b/recipes-bsp/firmware-qca/firmware-qca6174_3.0.2.bb deleted file mode 100644 index 47b289af..00000000 --- a/recipes-bsp/firmware-qca/firmware-qca6174_3.0.2.bb +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | # Copyright (C) 2019-2020 NXP | ||
2 | |||
3 | require firmware-qca.inc | ||
4 | |||
5 | SUMMARY = "Qualcomm Wi-Fi and Bluetooth firmware" | ||
6 | DESCRIPTION = "Qualcomm Wi-Fi and Bluetooth firmware for modules such as QCA6174A" | ||
7 | SECTION = "base" | ||
8 | LICENSE = "Proprietary" | ||
9 | |||
10 | inherit allarch | ||
11 | |||
12 | do_install () { | ||
13 | # Install firmware.conf for QCA modules | ||
14 | install -d ${D}${sysconfdir}/bluetooth | ||
15 | install -m 644 ${S}/1CQ_QCA6174A_LEA_2.0/etc/bluetooth/firmware.conf ${D}${sysconfdir}/bluetooth | ||
16 | |||
17 | # Install firmware files | ||
18 | install -d ${D}${base_libdir} | ||
19 | cp -r ${S}/1CQ_QCA6174A_LEA_2.0/lib/firmware ${D}${base_libdir} | ||
20 | } | ||
21 | |||
22 | FILES_${PN} = " \ | ||
23 | ${sysconfdir}/bluetooth/firmware.conf \ | ||
24 | ${base_libdir}/firmware/qca6174 \ | ||
25 | ${base_libdir}/firmware/wlan \ | ||
26 | ${base_libdir}/firmware/* \ | ||
27 | " | ||
diff --git a/recipes-bsp/firmware-qca/firmware-qca9377_3.0.2.bb b/recipes-bsp/firmware-qca/firmware-qca9377_3.0.2.bb deleted file mode 100644 index 26c41d50..00000000 --- a/recipes-bsp/firmware-qca/firmware-qca9377_3.0.2.bb +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | # Copyright (C) 2018-2020 NXP | ||
2 | |||
3 | require firmware-qca.inc | ||
4 | |||
5 | SUMMARY = "Qualcomm Wi-Fi and Bluetooth firmware" | ||
6 | DESCRIPTION = "Qualcomm Wi-Fi and Bluetooth firmware for modules such as QCA9377-3" | ||
7 | SECTION = "base" | ||
8 | LICENSE = "Proprietary" | ||
9 | |||
10 | inherit allarch | ||
11 | |||
12 | do_install () { | ||
13 | # Install firmware.conf for QCA modules | ||
14 | install -d ${D}${sysconfdir}/bluetooth | ||
15 | install -m 644 ${S}/1PJ_QCA9377-3_LEA_3.0/etc/bluetooth/firmware.conf ${D}${sysconfdir}/bluetooth | ||
16 | |||
17 | # Install firmware files | ||
18 | install -d ${D}${base_libdir} | ||
19 | cp -r ${S}/1PJ_QCA9377-3_LEA_3.0/lib/firmware ${D}${base_libdir} | ||
20 | } | ||
21 | |||
22 | FILES_${PN} = " \ | ||
23 | ${sysconfdir}/bluetooth/firmware.conf \ | ||
24 | ${base_libdir}/firmware/qca \ | ||
25 | ${base_libdir}/firmware/qca9377 \ | ||
26 | ${base_libdir}/firmware/wlan \ | ||
27 | " | ||
diff --git a/recipes-bsp/firmware-qca/qca-tools_3.0.2.bb b/recipes-bsp/firmware-qca/qca-tools_3.0.2.bb deleted file mode 100644 index e996c62d..00000000 --- a/recipes-bsp/firmware-qca/qca-tools_3.0.2.bb +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | # Copyright (C) 2018-2020 NXP | ||
2 | |||
3 | require firmware-qca.inc | ||
4 | |||
5 | SUMMARY = "Qualcomm Wi-Fi and Bluetooth tools" | ||
6 | DESCRIPTION = "Qualcomm Wi-Fi and Bluetooth tools for modules such as QCA6174A and QCA9377" | ||
7 | LICENSE = "Proprietary" | ||
8 | |||
9 | DEPENDS = "libnl zlib" | ||
10 | |||
11 | FCC_TOOLS_FOLDER ?= "qca9377_qca6174_arm32" | ||
12 | FCC_TOOLS_FOLDER_aarch64 = "qca9377_qca6174_arm64" | ||
13 | |||
14 | do_install() { | ||
15 | install -d ${D}${sbindir}/fcc_tools | ||
16 | cp -r ${S}/fcc_tools/${FCC_TOOLS_FOLDER} ${D}${sbindir}/fcc_tools | ||
17 | } | ||
18 | |||
19 | COMPATIBLE_HOST = '(aarch64|arm).*-linux' | ||
20 | COMPATIBLE_HOST_libc-musl = 'null' | ||
diff --git a/recipes-bsp/formfactor/formfactor_%.bbappend b/recipes-bsp/formfactor/formfactor_%.bbappend index 15f8f4e8..83cce131 100644 --- a/recipes-bsp/formfactor/formfactor_%.bbappend +++ b/recipes-bsp/formfactor/formfactor_%.bbappend | |||
@@ -1,2 +1,2 @@ | |||
1 | # Append path for i.MX custom matchconfig | 1 | # Append path for i.MX custom matchconfig |
2 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | 2 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" |
diff --git a/recipes-bsp/imx-atf/imx-atf_2.4.bb b/recipes-bsp/imx-atf/imx-atf_2.4.bb index f4db002b..536a0a73 100644 --- a/recipes-bsp/imx-atf/imx-atf_2.4.bb +++ b/recipes-bsp/imx-atf/imx-atf_2.4.bb | |||
@@ -27,7 +27,7 @@ EXTRA_OEMAKE += " \ | |||
27 | 27 | ||
28 | BUILD_OPTEE = "${@bb.utils.contains('MACHINE_FEATURES', 'optee', 'true', 'false', d)}" | 28 | BUILD_OPTEE = "${@bb.utils.contains('MACHINE_FEATURES', 'optee', 'true', 'false', d)}" |
29 | 29 | ||
30 | CFLAGS_remove_mx8mq = "-O2" | 30 | CFLAGS:remove:mx8mq = "-O2" |
31 | 31 | ||
32 | do_compile() { | 32 | do_compile() { |
33 | # Clear LDFLAGS to avoid the option -Wl recognize issue | 33 | # Clear LDFLAGS to avoid the option -Wl recognize issue |
diff --git a/recipes-bsp/imx-lib/imx-lib_git.bb b/recipes-bsp/imx-lib/imx-lib_git.bb index c5619070..a296b185 100644 --- a/recipes-bsp/imx-lib/imx-lib_git.bb +++ b/recipes-bsp/imx-lib/imx-lib_git.bb | |||
@@ -20,15 +20,15 @@ S = "${WORKDIR}/git" | |||
20 | 20 | ||
21 | inherit use-imx-headers | 21 | inherit use-imx-headers |
22 | 22 | ||
23 | PLATFORM_mx6q = "IMX6Q" | 23 | PLATFORM:mx6q = "IMX6Q" |
24 | PLATFORM_mx6dl = "IMX6Q" | 24 | PLATFORM:mx6dl = "IMX6Q" |
25 | PLATFORM_mx6sl = "IMX6S" | 25 | PLATFORM:mx6sl = "IMX6S" |
26 | PLATFORM_mx6sll = "IMX6UL" | 26 | PLATFORM:mx6sll = "IMX6UL" |
27 | PLATFORM_mx6sx = "IMX6S" | 27 | PLATFORM:mx6sx = "IMX6S" |
28 | PLATFORM_mx6ul = "IMX6UL" | 28 | PLATFORM:mx6ul = "IMX6UL" |
29 | PLATFORM_mx6ull = "IMX6UL" | 29 | PLATFORM:mx6ull = "IMX6UL" |
30 | PLATFORM_mx7d = "IMX7" | 30 | PLATFORM:mx7d = "IMX7" |
31 | PLATFORM_mx7ulp = "IMX7" | 31 | PLATFORM:mx7ulp = "IMX7" |
32 | 32 | ||
33 | PARALLEL_MAKE="-j 1" | 33 | PARALLEL_MAKE="-j 1" |
34 | EXTRA_OEMAKE = "" | 34 | EXTRA_OEMAKE = "" |
diff --git a/recipes-bsp/imx-mkimage/imx-boot_1.0.bb b/recipes-bsp/imx-mkimage/imx-boot_1.0.bb index 422670be..1425c5a3 100644 --- a/recipes-bsp/imx-mkimage/imx-boot_1.0.bb +++ b/recipes-bsp/imx-mkimage/imx-boot_1.0.bb | |||
@@ -10,8 +10,8 @@ SECTION = "BSP" | |||
10 | inherit use-imx-security-controller-firmware | 10 | inherit use-imx-security-controller-firmware |
11 | 11 | ||
12 | IMX_EXTRA_FIRMWARE = "firmware-imx-8 imx-sc-firmware imx-seco" | 12 | IMX_EXTRA_FIRMWARE = "firmware-imx-8 imx-sc-firmware imx-seco" |
13 | IMX_EXTRA_FIRMWARE_mx8m = "firmware-imx-8m" | 13 | IMX_EXTRA_FIRMWARE:mx8m = "firmware-imx-8m" |
14 | IMX_EXTRA_FIRMWARE_mx8x = "imx-sc-firmware imx-seco" | 14 | IMX_EXTRA_FIRMWARE:mx8x = "imx-sc-firmware imx-seco" |
15 | DEPENDS += " \ | 15 | DEPENDS += " \ |
16 | u-boot \ | 16 | u-boot \ |
17 | ${IMX_EXTRA_FIRMWARE} \ | 17 | ${IMX_EXTRA_FIRMWARE} \ |
@@ -20,7 +20,7 @@ DEPENDS += " \ | |||
20 | " | 20 | " |
21 | # xxd is a dependency of fspi_packer.sh | 21 | # xxd is a dependency of fspi_packer.sh |
22 | DEPENDS += "xxd-native" | 22 | DEPENDS += "xxd-native" |
23 | DEPENDS_append_mx8m = " u-boot-mkimage-native dtc-native" | 23 | DEPENDS:append:mx8m = " u-boot-mkimage-native dtc-native" |
24 | BOOT_NAME = "imx-boot" | 24 | BOOT_NAME = "imx-boot" |
25 | PROVIDES = "${BOOT_NAME}" | 25 | PROVIDES = "${BOOT_NAME}" |
26 | 26 | ||
@@ -41,7 +41,7 @@ do_compile[depends] += " \ | |||
41 | SC_FIRMWARE_NAME ?= "scfw_tcm.bin" | 41 | SC_FIRMWARE_NAME ?= "scfw_tcm.bin" |
42 | 42 | ||
43 | ATF_MACHINE_NAME ?= "bl31-${ATF_PLATFORM}.bin" | 43 | ATF_MACHINE_NAME ?= "bl31-${ATF_PLATFORM}.bin" |
44 | ATF_MACHINE_NAME_append = "${@bb.utils.contains('MACHINE_FEATURES', 'optee', '-optee', '', d)}" | 44 | ATF_MACHINE_NAME:append = "${@bb.utils.contains('MACHINE_FEATURES', 'optee', '-optee', '', d)}" |
45 | 45 | ||
46 | UBOOT_NAME = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}" | 46 | UBOOT_NAME = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}" |
47 | BOOT_CONFIG_MACHINE = "${BOOT_NAME}-${MACHINE}-${UBOOT_CONFIG}.bin" | 47 | BOOT_CONFIG_MACHINE = "${BOOT_NAME}-${MACHINE}-${UBOOT_CONFIG}.bin" |
@@ -58,16 +58,16 @@ IMXBOOT_TARGETS ?= \ | |||
58 | 'flash_multi_cores flash_dcd', d), d)}" | 58 | 'flash_multi_cores flash_dcd', d), d)}" |
59 | 59 | ||
60 | BOOT_STAGING = "${S}/${IMX_BOOT_SOC_TARGET}" | 60 | BOOT_STAGING = "${S}/${IMX_BOOT_SOC_TARGET}" |
61 | BOOT_STAGING_mx8m = "${S}/iMX8M" | 61 | BOOT_STAGING:mx8m = "${S}/iMX8M" |
62 | BOOT_STAGING_mx8dx = "${S}/iMX8QX" | 62 | BOOT_STAGING:mx8dx = "${S}/iMX8QX" |
63 | 63 | ||
64 | SOC_FAMILY = "INVALID" | 64 | SOC_FAMILY = "INVALID" |
65 | SOC_FAMILY_mx8 = "mx8" | 65 | SOC_FAMILY:mx8 = "mx8" |
66 | SOC_FAMILY_mx8m = "mx8m" | 66 | SOC_FAMILY:mx8m = "mx8m" |
67 | SOC_FAMILY_mx8x = "mx8x" | 67 | SOC_FAMILY:mx8x = "mx8x" |
68 | 68 | ||
69 | REV_OPTION ?= "" | 69 | REV_OPTION ?= "" |
70 | REV_OPTION_mx8qxp = \ | 70 | REV_OPTION:mx8qxp = \ |
71 | "${@bb.utils.contains('MACHINE_FEATURES', 'soc-revb0', '', \ | 71 | "${@bb.utils.contains('MACHINE_FEATURES', 'soc-revb0', '', \ |
72 | 'REV=C0', d)}" | 72 | 'REV=C0', d)}" |
73 | 73 | ||
@@ -199,6 +199,6 @@ do_deploy() { | |||
199 | addtask deploy before do_build after do_compile | 199 | addtask deploy before do_build after do_compile |
200 | 200 | ||
201 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 201 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
202 | FILES_${PN} = "/boot" | 202 | FILES:${PN} = "/boot" |
203 | 203 | ||
204 | COMPATIBLE_MACHINE = "(mx8)" | 204 | COMPATIBLE_MACHINE = "(mx8)" |
diff --git a/recipes-bsp/imx-sc-firmware/imx-sc-firmware_1.9.0.bb b/recipes-bsp/imx-sc-firmware/imx-sc-firmware_1.9.0.bb index b8c3d3c3..6eb65b81 100644 --- a/recipes-bsp/imx-sc-firmware/imx-sc-firmware_1.9.0.bb +++ b/recipes-bsp/imx-sc-firmware/imx-sc-firmware_1.9.0.bb | |||
@@ -15,10 +15,10 @@ SRC_URI[sha256sum] = "df0fe17c93e4c2835542d6b1b2557524f034e378b643100cd838225e82 | |||
15 | 15 | ||
16 | BOARD_TYPE ?= "mek" | 16 | BOARD_TYPE ?= "mek" |
17 | SC_FIRMWARE_NAME ?= "INVALID" | 17 | SC_FIRMWARE_NAME ?= "INVALID" |
18 | SC_FIRMWARE_NAME_mx8qm = "mx8qm-${BOARD_TYPE}-scfw-tcm.bin" | 18 | SC_FIRMWARE_NAME:mx8qm = "mx8qm-${BOARD_TYPE}-scfw-tcm.bin" |
19 | SC_FIRMWARE_NAME_mx8qxp = "mx8qx-${BOARD_TYPE}-scfw-tcm.bin" | 19 | SC_FIRMWARE_NAME:mx8qxp = "mx8qx-${BOARD_TYPE}-scfw-tcm.bin" |
20 | SC_FIRMWARE_NAME_mx8dxl = "mx8dxl-${BOARD_TYPE}-scfw-tcm.bin" | 20 | SC_FIRMWARE_NAME:mx8dxl = "mx8dxl-${BOARD_TYPE}-scfw-tcm.bin" |
21 | SC_FIRMWARE_NAME_mx8dx = "mx8dx-${BOARD_TYPE}-scfw-tcm.bin" | 21 | SC_FIRMWARE_NAME:mx8dx = "mx8dx-${BOARD_TYPE}-scfw-tcm.bin" |
22 | 22 | ||
23 | symlink_name = "scfw_tcm.bin" | 23 | symlink_name = "scfw_tcm.bin" |
24 | 24 | ||
diff --git a/recipes-bsp/imx-test/imx-test_00.00.00.bb b/recipes-bsp/imx-test/imx-test_00.00.00.bb index c29e6a62..070fbd30 100644 --- a/recipes-bsp/imx-test/imx-test_00.00.00.bb +++ b/recipes-bsp/imx-test/imx-test_00.00.00.bb | |||
@@ -4,7 +4,7 @@ SECTION = "base" | |||
4 | LICENSE = "MIT" | 4 | LICENSE = "MIT" |
5 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" | 5 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" |
6 | 6 | ||
7 | ALLOW_EMPTY_${PN} = "1" | 7 | ALLOW_EMPTY:${PN} = "1" |
8 | 8 | ||
9 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 9 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
10 | COMPATIBLE_MACHINE = "(mxs|mx5|mx6|vf50|vf60)" | 10 | COMPATIBLE_MACHINE = "(mxs|mx5|mx6|vf50|vf60)" |
diff --git a/recipes-bsp/imx-test/imx-test_git.bb b/recipes-bsp/imx-test/imx-test_git.bb index 118590d5..a5f33d83 100644 --- a/recipes-bsp/imx-test/imx-test_git.bb +++ b/recipes-bsp/imx-test/imx-test_git.bb | |||
@@ -9,9 +9,9 @@ LICENSE = "GPLv2+" | |||
9 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0-or-later;md5=fed54355545ffd980b814dab4a3b312c" | 9 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0-or-later;md5=fed54355545ffd980b814dab4a3b312c" |
10 | 10 | ||
11 | DEPENDS = "alsa-lib libdrm" | 11 | DEPENDS = "alsa-lib libdrm" |
12 | DEPENDS_append_mx6 = " imx-lib" | 12 | DEPENDS:append:mx6 = " imx-lib" |
13 | DEPENDS_append_mx7 = " imx-lib" | 13 | DEPENDS:append:mx7 = " imx-lib" |
14 | DEPENDS_append_imxvpu = " virtual/imxvpu" | 14 | DEPENDS:append:imxvpu = " virtual/imxvpu" |
15 | 15 | ||
16 | PE = "1" | 16 | PE = "1" |
17 | PV = "7.0+${SRCPV}" | 17 | PV = "7.0+${SRCPV}" |
@@ -29,22 +29,22 @@ inherit module-base use-imx-headers | |||
29 | INHIBIT_PACKAGE_STRIP = "1" | 29 | INHIBIT_PACKAGE_STRIP = "1" |
30 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | 30 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" |
31 | 31 | ||
32 | PLATFORM_mx6q = "IMX6Q" | 32 | PLATFORM:mx6q = "IMX6Q" |
33 | PLATFORM_mx6dl = "IMX6Q" | 33 | PLATFORM:mx6dl = "IMX6Q" |
34 | PLATFORM_mx6sl = "IMX6SL" | 34 | PLATFORM:mx6sl = "IMX6SL" |
35 | PLATFORM_mx6sll = "IMX6SL" | 35 | PLATFORM:mx6sll = "IMX6SL" |
36 | PLATFORM_mx6sx = "IMX6SX" | 36 | PLATFORM:mx6sx = "IMX6SX" |
37 | PLATFORM_mx6ul = "IMX6UL" | 37 | PLATFORM:mx6ul = "IMX6UL" |
38 | PLATFORM_mx7d = "IMX7D" | 38 | PLATFORM:mx7d = "IMX7D" |
39 | PLATFORM_mx7ulp = "IMX7D" | 39 | PLATFORM:mx7ulp = "IMX7D" |
40 | PLATFORM_mx8 = "IMX8" | 40 | PLATFORM:mx8 = "IMX8" |
41 | 41 | ||
42 | PARALLEL_MAKE = "-j 1" | 42 | PARALLEL_MAKE = "-j 1" |
43 | EXTRA_OEMAKE += "${PACKAGECONFIG_CONFARGS}" | 43 | EXTRA_OEMAKE += "${PACKAGECONFIG_CONFARGS}" |
44 | 44 | ||
45 | PACKAGECONFIG = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}" | 45 | PACKAGECONFIG = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}" |
46 | PACKAGECONFIG_append_imxvpu = " vpu" | 46 | PACKAGECONFIG:append:imxvpu = " vpu" |
47 | PACKAGECONFIG_append_mx8m = " swpdm" | 47 | PACKAGECONFIG:append:mx8m = " swpdm" |
48 | 48 | ||
49 | PACKAGECONFIG[x11] = ",,libx11 libxdamage libxrender libxrandr" | 49 | PACKAGECONFIG[x11] = ",,libx11 libxdamage libxrender libxrandr" |
50 | PACKAGECONFIG[vpu] = "HAS_VPU=true,HAS_VPU=false,virtual/imxvpu" | 50 | PACKAGECONFIG[vpu] = "HAS_VPU=true,HAS_VPU=false,virtual/imxvpu" |
@@ -76,7 +76,7 @@ do_install() { | |||
76 | install -m 0644 ${WORKDIR}/memtool_profile ${D}/home/root/.profile | 76 | install -m 0644 ${WORKDIR}/memtool_profile ${D}/home/root/.profile |
77 | } | 77 | } |
78 | 78 | ||
79 | FILES_${PN} += "/unit_tests /home/root/.profile" | 79 | FILES:${PN} += "/unit_tests /home/root/.profile" |
80 | RDEPENDS_${PN} = "bash" | 80 | RDEPENDS:${PN} = "bash" |
81 | 81 | ||
82 | FILES_${PN}-dbg += "/unit_tests/.debug" | 82 | FILES:${PN}-dbg += "/unit_tests/.debug" |
diff --git a/recipes-bsp/imx-uuc/imx-uuc_git.bb b/recipes-bsp/imx-uuc/imx-uuc_git.bb index bfa6607b..02331a80 100644 --- a/recipes-bsp/imx-uuc/imx-uuc_git.bb +++ b/recipes-bsp/imx-uuc/imx-uuc_git.bb | |||
@@ -16,6 +16,6 @@ SRCREV = "d6afb27e55d73d7ad08cd2dd51c784d8ec9694dc" | |||
16 | 16 | ||
17 | S = "${WORKDIR}/git" | 17 | S = "${WORKDIR}/git" |
18 | 18 | ||
19 | FILES_${PN} += "/linuxrc /fat" | 19 | FILES:${PN} += "/linuxrc /fat" |
20 | 20 | ||
21 | COMPATIBLE_MACHINE = "(imx|use-mainline-bsp)" | 21 | COMPATIBLE_MACHINE = "(imx|use-mainline-bsp)" |
diff --git a/recipes-bsp/imx-vpu-hantro-vc/imx-vpu-hantro-vc_1.4.0.bb b/recipes-bsp/imx-vpu-hantro-vc/imx-vpu-hantro-vc_1.4.0.bb index 58a140b4..33208bdf 100644 --- a/recipes-bsp/imx-vpu-hantro-vc/imx-vpu-hantro-vc_1.4.0.bb +++ b/recipes-bsp/imx-vpu-hantro-vc/imx-vpu-hantro-vc_1.4.0.bb | |||
@@ -30,6 +30,6 @@ do_install () { | |||
30 | rm ${D}${D_SUBDIR}/${SCR} | 30 | rm ${D}${D_SUBDIR}/${SCR} |
31 | } | 31 | } |
32 | 32 | ||
33 | FILES_${PN} = "/" | 33 | FILES:${PN} = "/" |
34 | 34 | ||
35 | COMPATIBLE_MACHINE = "(mx8mp)" | 35 | COMPATIBLE_MACHINE = "(mx8mp)" |
diff --git a/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro-daemon_1.0.0.bb b/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro-daemon_1.0.0.bb index 88b9ee0e..d362fce3 100644 --- a/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro-daemon_1.0.0.bb +++ b/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro-daemon_1.0.0.bb | |||
@@ -4,7 +4,7 @@ LICENSE = "MIT" | |||
4 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=cd8bc2a79509c22fc9c1782a151210b1" | 4 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=cd8bc2a79509c22fc9c1782a151210b1" |
5 | 5 | ||
6 | DEPENDS = "imx-vpu-hantro" | 6 | DEPENDS = "imx-vpu-hantro" |
7 | DEPENDS_append_mx8mp = " imx-vpu-hantro-vc" | 7 | DEPENDS:append:mx8mp = " imx-vpu-hantro-vc" |
8 | 8 | ||
9 | SRC_URI = " \ | 9 | SRC_URI = " \ |
10 | ${FSL_MIRROR}/${BP}.tar.gz \ | 10 | ${FSL_MIRROR}/${BP}.tar.gz \ |
@@ -13,9 +13,9 @@ SRC_URI = " \ | |||
13 | SRC_URI[md5sum] = "65417710ef22214523c37f50f34b6ab2" | 13 | SRC_URI[md5sum] = "65417710ef22214523c37f50f34b6ab2" |
14 | SRC_URI[sha256sum] = "897d174c4c0818f31012d8a60ed51fc83fdfc55fca2d2b0fc24a0db3e9f3b6e8" | 14 | SRC_URI[sha256sum] = "897d174c4c0818f31012d8a60ed51fc83fdfc55fca2d2b0fc24a0db3e9f3b6e8" |
15 | 15 | ||
16 | PLATFORM_mx8mm = "IMX8MM" | 16 | PLATFORM:mx8mm = "IMX8MM" |
17 | PLATFORM_mx8mq = "IMX8MQ" | 17 | PLATFORM:mx8mq = "IMX8MQ" |
18 | PLATFORM_mx8mp = "IMX8MP" | 18 | PLATFORM:mx8mp = "IMX8MP" |
19 | 19 | ||
20 | EXTRA_OEMAKE = " \ | 20 | EXTRA_OEMAKE = " \ |
21 | CROSS_COMPILE="${HOST_PREFIX}" \ | 21 | CROSS_COMPILE="${HOST_PREFIX}" \ |
diff --git a/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro_1.22.0.bb b/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro_1.22.0.bb index 20ac87c7..2ecb1e4b 100644 --- a/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro_1.22.0.bb +++ b/recipes-bsp/imx-vpu-hantro/imx-vpu-hantro_1.22.0.bb | |||
@@ -14,9 +14,9 @@ inherit fsl-eula-unpack use-imx-headers | |||
14 | 14 | ||
15 | PARALLEL_MAKE="-j 1" | 15 | PARALLEL_MAKE="-j 1" |
16 | 16 | ||
17 | PLATFORM_mx8mm = "IMX8MM" | 17 | PLATFORM:mx8mm = "IMX8MM" |
18 | PLATFORM_mx8mq = "IMX8MQ" | 18 | PLATFORM:mx8mq = "IMX8MQ" |
19 | PLATFORM_mx8mp = "IMX8MP" | 19 | PLATFORM:mx8mp = "IMX8MP" |
20 | 20 | ||
21 | EXTRA_OEMAKE = " \ | 21 | EXTRA_OEMAKE = " \ |
22 | CROSS_COMPILE="${HOST_PREFIX}" \ | 22 | CROSS_COMPILE="${HOST_PREFIX}" \ |
@@ -28,8 +28,8 @@ do_install () { | |||
28 | oe_runmake install DEST_DIR="${D}" | 28 | oe_runmake install DEST_DIR="${D}" |
29 | } | 29 | } |
30 | 30 | ||
31 | FILES_${PN} += "/unit_tests" | 31 | FILES:${PN} += "/unit_tests" |
32 | 32 | ||
33 | RDEPENDS_${PN} += "imx-vpu-hantro-daemon" | 33 | RDEPENDS:${PN} += "imx-vpu-hantro-daemon" |
34 | 34 | ||
35 | COMPATIBLE_MACHINE = "(mx8mq|mx8mm|mx8mp)" | 35 | COMPATIBLE_MACHINE = "(mx8mq|mx8mm|mx8mp)" |
diff --git a/recipes-bsp/imx-vpu/imx-vpu_5.4.39.3.bb b/recipes-bsp/imx-vpu/imx-vpu_5.4.39.3.bb index 8c6492c5..95252dae 100644 --- a/recipes-bsp/imx-vpu/imx-vpu_5.4.39.3.bb +++ b/recipes-bsp/imx-vpu/imx-vpu_5.4.39.3.bb | |||
@@ -7,7 +7,7 @@ LICENSE = "Proprietary" | |||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=228c72f2a91452b8a03c4cab30f30ef9" | 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=228c72f2a91452b8a03c4cab30f30ef9" |
8 | 8 | ||
9 | PROVIDES = "virtual/imxvpu" | 9 | PROVIDES = "virtual/imxvpu" |
10 | RPROVIDES_${PN} = "virtual/imxvpu" | 10 | RPROVIDES:${PN} = "virtual/imxvpu" |
11 | 11 | ||
12 | PE = "1" | 12 | PE = "1" |
13 | 13 | ||
diff --git a/recipes-bsp/inphi/inphi_git.bb b/recipes-bsp/inphi/inphi_git.bb index 3f3c5f28..314f09d4 100644 --- a/recipes-bsp/inphi/inphi_git.bb +++ b/recipes-bsp/inphi/inphi_git.bb | |||
@@ -21,7 +21,7 @@ do_deploy () { | |||
21 | addtask deploy before do_build after do_install | 21 | addtask deploy before do_build after do_install |
22 | 22 | ||
23 | PACKAGES += "${PN}-image" | 23 | PACKAGES += "${PN}-image" |
24 | FILES_${PN}-image += "/boot" | 24 | FILES:${PN}-image += "/boot" |
25 | 25 | ||
26 | COMPATIBLE_MACHINE = "(qoriq-arm64)" | 26 | COMPATIBLE_MACHINE = "(qoriq-arm64)" |
27 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 27 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
diff --git a/recipes-bsp/isp-imx/basler-camera_4.2.2.13.0.bb b/recipes-bsp/isp-imx/basler-camera_4.2.2.13.0.bb index e7d4b652..dc6e2d7e 100644 --- a/recipes-bsp/isp-imx/basler-camera_4.2.2.13.0.bb +++ b/recipes-bsp/isp-imx/basler-camera_4.2.2.13.0.bb | |||
@@ -21,7 +21,7 @@ do_install() { | |||
21 | 21 | ||
22 | SYSTEMD_AUTO_ENABLE = "enable" | 22 | SYSTEMD_AUTO_ENABLE = "enable" |
23 | 23 | ||
24 | FILES_${PN} = "${libdir} /opt" | 24 | FILES:${PN} = "${libdir} /opt" |
25 | INSANE_SKIP_${PN} = "file-rdeps already-stripped" | 25 | INSANE_SKIP:${PN} = "file-rdeps already-stripped" |
26 | 26 | ||
27 | COMPATIBLE_MACHINE = "(mx8mp)" | 27 | COMPATIBLE_MACHINE = "(mx8mp)" |
diff --git a/recipes-bsp/isp-imx/isp-imx/0001-start_isp.sh-fix-NR_DEVICE_TREE_BASLER-variable.patch b/recipes-bsp/isp-imx/isp-imx/0001-start_isp.sh-fix-NR_DEVICE_TREE_BASLER-variable.patch new file mode 100644 index 00000000..950098cd --- /dev/null +++ b/recipes-bsp/isp-imx/isp-imx/0001-start_isp.sh-fix-NR_DEVICE_TREE_BASLER-variable.patch | |||
@@ -0,0 +1,53 @@ | |||
1 | From 9c65e20b82cfd9e82b849b3140eec7b8c18922dc Mon Sep 17 00:00:00 2001 | ||
2 | From: Chris Dimich <Chris.Dimich@boundarydevices.com> | ||
3 | Date: Mon, 13 Sep 2021 17:56:02 -0700 | ||
4 | Subject: [PATCH 1/1] start_isp.sh: fix NR_DEVICE_TREE_BASLER variable | ||
5 | |||
6 | Also remove uneeded -lm option from run.sh script. | ||
7 | |||
8 | Signed-off-by: Chris Dimich <Chris.Dimich@boundarydevices.com> | ||
9 | --- | ||
10 | imx/start_isp.sh | 8 ++++---- | ||
11 | 1 file changed, 4 insertions(+), 4 deletions(-) | ||
12 | |||
13 | diff --git a/imx/start_isp.sh b/imx/start_isp.sh | ||
14 | index 6daabc59c..250226935 100755 | ||
15 | --- a/imx/start_isp.sh | ||
16 | +++ b/imx/start_isp.sh | ||
17 | @@ -7,7 +7,7 @@ | ||
18 | # | ||
19 | |||
20 | RUNTIME_DIR="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" | ||
21 | -NR_DEVICE_TREE_BASLER=$(grep basler-camera-vvcam /sys/firmware/devicetree/base/soc@0/*/i2c@*/*/compatible -l | wc -l 2> /dev/null) | ||
22 | +NR_DEVICE_TREE_BASLER=$(grep basler-camera-vvcam `find /sys/firmware/devicetree/base/soc@0/ -name compatible | grep i2c` -l | wc -l 2> /dev/null) | ||
23 | NR_DEVICE_TREE_OV5640=$(grep ov5640 /sys/firmware/devicetree/base/soc@0/*/i2c@*/*/compatible -l | wc -l 2> /dev/null) | ||
24 | |||
25 | # check if the basler device has been enabled in the device tree | ||
26 | @@ -21,13 +21,13 @@ if [ $NR_DEVICE_TREE_BASLER -eq 1 ]; then | ||
27 | |||
28 | # Default configuration for Basler daA3840-30mc: basler_4k | ||
29 | # Available configurations: basler_4k, basler_1080p60, basler_4khdr, basler_1080p60hdr | ||
30 | - exec ./run.sh -c basler_4k -lm | ||
31 | + exec ./run.sh -c basler_4k | ||
32 | |||
33 | elif [ $NR_DEVICE_TREE_OV5640 -eq 1 ]; then | ||
34 | |||
35 | # Default configuration for Basler daA3840-30mc: basler_1080p60 | ||
36 | # Available configurations: basler_1080p60, basler_1080p60hdr | ||
37 | - exec ./run.sh -c basler_1080p60 -lm | ||
38 | + exec ./run.sh -c basler_1080p60 | ||
39 | |||
40 | fi | ||
41 | |||
42 | @@ -38,7 +38,7 @@ elif [ $NR_DEVICE_TREE_BASLER -eq 2 ]; then | ||
43 | cd $RUNTIME_DIR | ||
44 | # Default configuration for Basler daA3840-30mc: dual_basler_1080p60 | ||
45 | # Available configurations: dual_basler_1080p60, dual_basler_1080p60hdr, dual_basler_1080p25hdr | ||
46 | - exec ./run.sh -c dual_basler_1080p60 -lm | ||
47 | + exec ./run.sh -c dual_basler_1080p60 | ||
48 | |||
49 | else | ||
50 | # no device tree found exit with code no device or address | ||
51 | -- | ||
52 | 2.31.1 | ||
53 | |||
diff --git a/recipes-bsp/isp-imx/isp-imx/0001-start_isp.sh-fix-test-to-be-generic.patch b/recipes-bsp/isp-imx/isp-imx/0001-start_isp.sh-fix-test-to-be-generic.patch deleted file mode 100644 index be2e1c61..00000000 --- a/recipes-bsp/isp-imx/isp-imx/0001-start_isp.sh-fix-test-to-be-generic.patch +++ /dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | From 708f25cfe522df162c3e2c7c56cbe2f7000cb5e4 Mon Sep 17 00:00:00 2001 | ||
2 | From: Gary Bisson <gary.bisson@boundarydevices.com> | ||
3 | Date: Mon, 14 Dec 2020 14:26:01 +0100 | ||
4 | Subject: [PATCH] start_isp.sh: fix test to be generic | ||
5 | |||
6 | So that it works on EVK and any other i.MX 8M Plus platform. | ||
7 | |||
8 | Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com> | ||
9 | --- | ||
10 | imx/start_isp.sh | 13 +++++-------- | ||
11 | 1 file changed, 5 insertions(+), 8 deletions(-) | ||
12 | |||
13 | Index: isp-imx-4.2.2.13.0/imx/start_isp.sh | ||
14 | =================================================================== | ||
15 | --- isp-imx-4.2.2.13.0.orig/imx/start_isp.sh | ||
16 | +++ isp-imx-4.2.2.13.0/imx/start_isp.sh | ||
17 | @@ -9,6 +9,7 @@ | ||
18 | RUNTIME_DIR="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" | ||
19 | NR_DEVICE_TREE_BASLER=$(grep basler-camera-vvcam /sys/firmware/devicetree/base/soc@0/*/i2c@*/*/compatible -l | wc -l 2> /dev/null) | ||
20 | NR_DEVICE_TREE_OV5640=$(grep ov5640 /sys/firmware/devicetree/base/soc@0/*/i2c@*/*/compatible -l | wc -l 2> /dev/null) | ||
21 | +DMESG_BASLER=`dmesg | grep Basler` | ||
22 | |||
23 | # check if the basler device has been enabled in the device tree | ||
24 | if [ $NR_DEVICE_TREE_BASLER -eq 1 ]; then | ||
25 | @@ -40,8 +41,15 @@ elif [ $NR_DEVICE_TREE_BASLER -eq 2 ]; t | ||
26 | # Available configurations: dual_basler_1080p60, dual_basler_1080p60hdr, dual_basler_1080p25hdr | ||
27 | exec ./run.sh -c dual_basler_1080p60 -lm | ||
28 | |||
29 | +elif [ ! -z "$DMESG_BASLER" ]; then | ||
30 | + | ||
31 | + echo "Starting isp_media_server for generic Basler" | ||
32 | + | ||
33 | + cd $RUNTIME_DIR | ||
34 | + exec ./run.sh -c basler_1080p60 | ||
35 | + | ||
36 | else | ||
37 | # no device tree found exit with code no device or address | ||
38 | - echo "No device tree found for Basler, check dtb file!" >&2 | ||
39 | + echo "Basler camera not found!" >&2 | ||
40 | exit 6 | ||
41 | fi | ||
diff --git a/recipes-bsp/isp-imx/isp-imx_4.2.2.13.0.bb b/recipes-bsp/isp-imx/isp-imx_4.2.2.13.0.bb index ad44065a..b15d0b9e 100644 --- a/recipes-bsp/isp-imx/isp-imx_4.2.2.13.0.bb +++ b/recipes-bsp/isp-imx/isp-imx_4.2.2.13.0.bb | |||
@@ -7,7 +7,7 @@ DEPENDS = "python3 libdrm virtual/libg2d" | |||
7 | 7 | ||
8 | SRC_URI = " \ | 8 | SRC_URI = " \ |
9 | ${FSL_MIRROR}/${BP}.bin;fsl-eula=true \ | 9 | ${FSL_MIRROR}/${BP}.bin;fsl-eula=true \ |
10 | file://0001-start_isp.sh-fix-test-to-be-generic.patch \ | 10 | file://0001-start_isp.sh-fix-NR_DEVICE_TREE_BASLER-variable.patch \ |
11 | file://0001-isp-imx-drop-use-of-__TIME__-__DATE__.patch \ | 11 | file://0001-isp-imx-drop-use-of-__TIME__-__DATE__.patch \ |
12 | " | 12 | " |
13 | 13 | ||
@@ -22,7 +22,7 @@ OECMAKE_SOURCEPATH = "${S}/appshell" | |||
22 | # Use make instead of ninja | 22 | # Use make instead of ninja |
23 | OECMAKE_GENERATOR = "Unix Makefiles" | 23 | OECMAKE_GENERATOR = "Unix Makefiles" |
24 | 24 | ||
25 | SYSTEMD_SERVICE_${PN} = "imx8-isp.service" | 25 | SYSTEMD_SERVICE:${PN} = "imx8-isp.service" |
26 | 26 | ||
27 | EXTRA_OECMAKE += " \ | 27 | EXTRA_OECMAKE += " \ |
28 | -DCMAKE_BUILD_TYPE=release \ | 28 | -DCMAKE_BUILD_TYPE=release \ |
@@ -42,7 +42,7 @@ EXTRA_OECMAKE += " \ | |||
42 | -Wno-dev \ | 42 | -Wno-dev \ |
43 | " | 43 | " |
44 | 44 | ||
45 | do_configure_prepend() { | 45 | do_configure:prepend() { |
46 | export SDKTARGETSYSROOT=${STAGING_DIR_HOST} | 46 | export SDKTARGETSYSROOT=${STAGING_DIR_HOST} |
47 | } | 47 | } |
48 | 48 | ||
@@ -74,15 +74,15 @@ do_install() { | |||
74 | # The build contains a mix of versioned and unversioned libraries, so | 74 | # The build contains a mix of versioned and unversioned libraries, so |
75 | # the default packaging configuration needs some modifications | 75 | # the default packaging configuration needs some modifications |
76 | FILES_SOLIBSDEV = "" | 76 | FILES_SOLIBSDEV = "" |
77 | FILES_${PN} += "/opt ${libdir}/lib*${SOLIBSDEV}" | 77 | FILES:${PN} += "/opt ${libdir}/lib*${SOLIBSDEV}" |
78 | FILES_${PN}-dev += " \ | 78 | FILES:${PN}-dev += " \ |
79 | ${libdir}/libjsoncpp.so \ | 79 | ${libdir}/libjsoncpp.so \ |
80 | ${libdir}/libos08a20.so \ | 80 | ${libdir}/libos08a20.so \ |
81 | ${libdir}/libov2775.so \ | 81 | ${libdir}/libov2775.so \ |
82 | " | 82 | " |
83 | 83 | ||
84 | INSANE_SKIP_${PN} = "rpaths" | 84 | INSANE_SKIP:${PN} = "rpaths" |
85 | 85 | ||
86 | RDEPENDS_${PN} = "libdrm libpython3" | 86 | RDEPENDS:${PN} = "libdrm libpython3" |
87 | 87 | ||
88 | COMPATIBLE_MACHINE = "(mx8mp)" | 88 | COMPATIBLE_MACHINE = "(mx8mp)" |
diff --git a/recipes-bsp/libimxdmabuffer/libimxdmabuffer_1.0.1.bb b/recipes-bsp/libimxdmabuffer/libimxdmabuffer_1.0.1.bb index 726b1e16..e57a4273 100644 --- a/recipes-bsp/libimxdmabuffer/libimxdmabuffer_1.0.1.bb +++ b/recipes-bsp/libimxdmabuffer/libimxdmabuffer_1.0.1.bb | |||
@@ -26,15 +26,15 @@ EXTRA_OECONF = "--imx-linux-headers-path=${STAGING_INCDIR_IMX} \ | |||
26 | # libg2d. However, that implementation's g2d_alloc() function | 26 | # libg2d. However, that implementation's g2d_alloc() function |
27 | # is broken, so we cannot use it. | 27 | # is broken, so we cannot use it. |
28 | LIBG2D_PACKAGECONFIG = "g2d" | 28 | LIBG2D_PACKAGECONFIG = "g2d" |
29 | LIBG2D_PACKAGECONFIG_imxdpu = "" | 29 | LIBG2D_PACKAGECONFIG:imxdpu = "" |
30 | 30 | ||
31 | PACKAGECONFIG ?= " " | 31 | PACKAGECONFIG ?= " " |
32 | PACKAGECONFIG_append_imxgpu2d = " ${LIBG2D_PACKAGECONFIG}" | 32 | PACKAGECONFIG:append:imxgpu2d = " ${LIBG2D_PACKAGECONFIG}" |
33 | PACKAGECONFIG_append_imxipu = " ipu" | 33 | PACKAGECONFIG:append:imxipu = " ipu" |
34 | PACKAGECONFIG_append_imxpxp = " pxp" | 34 | PACKAGECONFIG:append:imxpxp = " pxp" |
35 | PACKAGECONFIG_append_mx8m = " ion dwl" | 35 | PACKAGECONFIG:append:mx8m = " ion dwl" |
36 | PACKAGECONFIG_append_mx8qm = " ion" | 36 | PACKAGECONFIG:append:mx8qm = " ion" |
37 | PACKAGECONFIG_append_mx8qxp = " ion" | 37 | PACKAGECONFIG:append:mx8qxp = " ion" |
38 | 38 | ||
39 | HANTRO_CONF = "--hantro-headers-path=${STAGING_INCDIR}/hantro_dec --hantro-decoder-version=G2" | 39 | HANTRO_CONF = "--hantro-headers-path=${STAGING_INCDIR}/hantro_dec --hantro-decoder-version=G2" |
40 | 40 | ||
diff --git a/recipes-bsp/ls2-phy/ls2-phy_git.bb b/recipes-bsp/ls2-phy/ls2-phy_git.bb index a1c412be..dd5f8fc0 100644 --- a/recipes-bsp/ls2-phy/ls2-phy_git.bb +++ b/recipes-bsp/ls2-phy/ls2-phy_git.bb | |||
@@ -21,7 +21,7 @@ do_deploy () { | |||
21 | addtask deploy before do_build after do_install | 21 | addtask deploy before do_build after do_install |
22 | 22 | ||
23 | PACKAGES += "${PN}-image" | 23 | PACKAGES += "${PN}-image" |
24 | FILES_${PN}-image += "/boot" | 24 | FILES:${PN}-image += "/boot" |
25 | 25 | ||
26 | COMPATIBLE_MACHINE = "(qoriq)" | 26 | COMPATIBLE_MACHINE = "(qoriq)" |
27 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 27 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
diff --git a/recipes-bsp/mc-utils/mc-utils_git.bb b/recipes-bsp/mc-utils/mc-utils_git.bb index b3c79b99..b725af7f 100644 --- a/recipes-bsp/mc-utils/mc-utils_git.bb +++ b/recipes-bsp/mc-utils/mc-utils_git.bb | |||
@@ -15,13 +15,13 @@ SRCREV = "8e0b863693fc2ccbc62a62c79b4e3db6da88c16e" | |||
15 | S = "${WORKDIR}/git" | 15 | S = "${WORKDIR}/git" |
16 | 16 | ||
17 | MC_CFG ?= "" | 17 | MC_CFG ?= "" |
18 | MC_CFG_ls1088a = "ls1088a" | 18 | MC_CFG:ls1088a = "ls1088a" |
19 | MC_CFG_ls2088a = "ls2088a" | 19 | MC_CFG:ls2088a = "ls2088a" |
20 | MC_CFG_lx2160a = "lx2160a" | 20 | MC_CFG:lx2160a = "lx2160a" |
21 | MC_CFG_lx2162aqds = "lx2162aqds" | 21 | MC_CFG:lx2162aqds = "lx2162aqds" |
22 | 22 | ||
23 | MC_FLAVOUR ?= "RDB" | 23 | MC_FLAVOUR ?= "RDB" |
24 | MC_FLAVOUR_lx2162a = "" | 24 | MC_FLAVOUR:lx2162a = "" |
25 | 25 | ||
26 | do_compile () { | 26 | do_compile () { |
27 | oe_runmake -C config | 27 | oe_runmake -C config |
@@ -47,5 +47,5 @@ do_deploy () { | |||
47 | addtask deploy after do_install | 47 | addtask deploy after do_install |
48 | 48 | ||
49 | PACKAGES += "${PN}-image" | 49 | PACKAGES += "${PN}-image" |
50 | FILES_${PN}-image += "/boot" | 50 | FILES:${PN}-image += "/boot" |
51 | COMPATIBLE_MACHINE = "(qoriq-arm64)" | 51 | COMPATIBLE_MACHINE = "(qoriq-arm64)" |
diff --git a/recipes-bsp/ppfe-firmware/ppfe-firmware_git.bb b/recipes-bsp/ppfe-firmware/ppfe-firmware_git.bb index 24bb8d9f..5c97486e 100644 --- a/recipes-bsp/ppfe-firmware/ppfe-firmware_git.bb +++ b/recipes-bsp/ppfe-firmware/ppfe-firmware_git.bb | |||
@@ -27,8 +27,8 @@ do_deploy () { | |||
27 | 27 | ||
28 | addtask deploy after do_install | 28 | addtask deploy after do_install |
29 | 29 | ||
30 | FILES_${PN} += "/lib/firmware /boot/" | 30 | FILES:${PN} += "/lib/firmware /boot/" |
31 | INSANE_SKIP_${PN} += "arch already-stripped" | 31 | INSANE_SKIP:${PN} += "arch already-stripped" |
32 | INHIBIT_PACKAGE_STRIP = "1" | 32 | INHIBIT_PACKAGE_STRIP = "1" |
33 | INHIBIT_SYSROOT_STRIP = "1" | 33 | INHIBIT_SYSROOT_STRIP = "1" |
34 | 34 | ||
diff --git a/recipes-bsp/qe-ucode/qe-ucode_git.bb b/recipes-bsp/qe-ucode/qe-ucode_git.bb index cecd5903..19cb79e0 100644 --- a/recipes-bsp/qe-ucode/qe-ucode_git.bb +++ b/recipes-bsp/qe-ucode/qe-ucode_git.bb | |||
@@ -22,7 +22,7 @@ do_deploy () { | |||
22 | addtask deploy before do_build after do_install | 22 | addtask deploy before do_build after do_install |
23 | 23 | ||
24 | PACKAGES += "${PN}-image" | 24 | PACKAGES += "${PN}-image" |
25 | FILES_${PN}-image += "/boot/*" | 25 | FILES:${PN}-image += "/boot/*" |
26 | 26 | ||
27 | COMPATIBLE_MACHINE = "(qoriq)" | 27 | COMPATIBLE_MACHINE = "(qoriq)" |
28 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" | 28 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" |
diff --git a/recipes-bsp/rcw/rcw_git.bb b/recipes-bsp/rcw/rcw_git.bb index 69350615..88b7b995 100644 --- a/recipes-bsp/rcw/rcw_git.bb +++ b/recipes-bsp/rcw/rcw_git.bb | |||
@@ -17,9 +17,9 @@ export PYTHON = "${USRBINPATH}/python3" | |||
17 | M="${@d.getVar('MACHINE').replace('-64b','').replace('-32b','').replace('-${SITEINFO_ENDIANNESS}','')}" | 17 | M="${@d.getVar('MACHINE').replace('-64b','').replace('-32b','').replace('-${SITEINFO_ENDIANNESS}','')}" |
18 | 18 | ||
19 | BOARD_TARGETS="${M}" | 19 | BOARD_TARGETS="${M}" |
20 | BOARD_TARGETS_ls2088ardb="${M} ${M}_rev1.1" | 20 | BOARD_TARGETS:ls2088ardb="${M} ${M}_rev1.1" |
21 | BOARD_TARGETS_ls1088ardb-pb="ls1088ardb" | 21 | BOARD_TARGETS:ls1088ardb-pb="ls1088ardb" |
22 | BOARD_TARGETS_lx2160ardb = "${M} ${M}_rev2" | 22 | BOARD_TARGETS:lx2160ardb = "${M} ${M}_rev2" |
23 | 23 | ||
24 | do_compile () { | 24 | do_compile () { |
25 | oe_runmake BOARDS="${BOARD_TARGETS}" DESTDIR=${D}/boot/rcw/ | 25 | oe_runmake BOARDS="${BOARD_TARGETS}" DESTDIR=${D}/boot/rcw/ |
@@ -36,7 +36,7 @@ do_deploy () { | |||
36 | addtask deploy after do_install | 36 | addtask deploy after do_install |
37 | 37 | ||
38 | PACKAGES += "${PN}-image" | 38 | PACKAGES += "${PN}-image" |
39 | FILES_${PN}-image += "/boot" | 39 | FILES:${PN}-image += "/boot" |
40 | 40 | ||
41 | COMPATIBLE_MACHINE = "(qoriq)" | 41 | COMPATIBLE_MACHINE = "(qoriq)" |
42 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 42 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
diff --git a/recipes-bsp/u-boot/libubootenv_%.bbappend b/recipes-bsp/u-boot/libubootenv_%.bbappend index 2633c344..619b510e 100644 --- a/recipes-bsp/u-boot/libubootenv_%.bbappend +++ b/recipes-bsp/u-boot/libubootenv_%.bbappend | |||
@@ -29,8 +29,8 @@ def fixup_uboot_config_dependency(d): | |||
29 | # | Signed-off-by: Ming Liu <liu.ming50@gmail.com> | 29 | # | Signed-off-by: Ming Liu <liu.ming50@gmail.com> |
30 | # | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | 30 | # | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> |
31 | # `---- | 31 | # `---- |
32 | ubootmachine = d.getVar("UBOOT_MACHINE_pn-%s" % imx_default_bootloader) | 32 | ubootmachine = d.getVar("UBOOT_MACHINE:pn-%s" % imx_default_bootloader) |
33 | ubootconfig = (d.getVar("UBOOT_CONFIG_pn-%s" % imx_default_bootloader) or "").split() | 33 | ubootconfig = (d.getVar("UBOOT_CONFIG:pn-%s" % imx_default_bootloader) or "").split() |
34 | 34 | ||
35 | d.setVar("UBOOT_CONFIG", ubootconfig) | 35 | d.setVar("UBOOT_CONFIG", ubootconfig) |
36 | d.setVar("UBOOT_MACHINE", ubootmachine) | 36 | d.setVar("UBOOT_MACHINE", ubootmachine) |
diff --git a/recipes-bsp/u-boot/u-boot-fslc-common_2021.07.inc b/recipes-bsp/u-boot/u-boot-fslc-common_2021.07.inc index 839a503d..3c56a8f2 100644 --- a/recipes-bsp/u-boot/u-boot-fslc-common_2021.07.inc +++ b/recipes-bsp/u-boot/u-boot-fslc-common_2021.07.inc | |||
@@ -10,7 +10,7 @@ DEPENDS += "flex-native bison-native" | |||
10 | 10 | ||
11 | SRC_URI = "git://github.com/Freescale/u-boot-fslc.git;branch=${SRCBRANCH}" | 11 | SRC_URI = "git://github.com/Freescale/u-boot-fslc.git;branch=${SRCBRANCH}" |
12 | 12 | ||
13 | SRCREV = "587e796995604fb669a3552daae682b4d6d346d9" | 13 | SRCREV = "691e634bfd317ede487d2b864a126847ffeb4aa7" |
14 | SRCBRANCH = "2021.07+fslc" | 14 | SRCBRANCH = "2021.07+fslc" |
15 | 15 | ||
16 | PV = "v2021.07+git${SRCPV}" | 16 | PV = "v2021.07+git${SRCPV}" |
diff --git a/recipes-bsp/u-boot/u-boot-fslc-mfgtool_2021.07.bb b/recipes-bsp/u-boot/u-boot-fslc-mfgtool_2021.07.bb index 7f02746b..2e79166b 100644 --- a/recipes-bsp/u-boot/u-boot-fslc-mfgtool_2021.07.bb +++ b/recipes-bsp/u-boot/u-boot-fslc-mfgtool_2021.07.bb | |||
@@ -2,7 +2,7 @@ | |||
2 | # Copyright (C) 2014-2016 Freescale Semiconductor | 2 | # Copyright (C) 2014-2016 Freescale Semiconductor |
3 | # Copyright 2017-2019 NXP | 3 | # Copyright 2017-2019 NXP |
4 | 4 | ||
5 | FILESEXTRAPATHS_prepend := "${THISDIR}/u-boot-fslc:" | 5 | FILESEXTRAPATHS:prepend := "${THISDIR}/u-boot-fslc:" |
6 | 6 | ||
7 | require u-boot-fslc_${PV}.bb | 7 | require u-boot-fslc_${PV}.bb |
8 | require u-boot-mfgtool.inc | 8 | require u-boot-mfgtool.inc |
diff --git a/recipes-bsp/u-boot/u-boot-fslc-mxsboot_2021.07.bb b/recipes-bsp/u-boot/u-boot-fslc-mxsboot_2021.07.bb index 2492f450..a3a732ef 100644 --- a/recipes-bsp/u-boot/u-boot-fslc-mxsboot_2021.07.bb +++ b/recipes-bsp/u-boot/u-boot-fslc-mxsboot_2021.07.bb | |||
@@ -7,9 +7,9 @@ DEPENDS = "bison-native dtc openssl" | |||
7 | 7 | ||
8 | PROVIDES = "u-boot-mxsboot" | 8 | PROVIDES = "u-boot-mxsboot" |
9 | 9 | ||
10 | EXTRA_OEMAKE_class-target = 'CROSS_COMPILE="${TARGET_PREFIX}" CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" STRIP=true V=1 CONFIG_MX28=y' | 10 | EXTRA_OEMAKE:class-target = 'CROSS_COMPILE="${TARGET_PREFIX}" CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" STRIP=true V=1 CONFIG_MX28=y' |
11 | EXTRA_OEMAKE_class-native = 'CC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" STRIP=true V=1 CONFIG_MX28=y' | 11 | EXTRA_OEMAKE:class-native = 'CC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" STRIP=true V=1 CONFIG_MX28=y' |
12 | EXTRA_OEMAKE_class-nativesdk = 'CROSS_COMPILE="${HOST_PREFIX}" CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" STRIP=true V=1 CONFIG_MX28=y' | 12 | EXTRA_OEMAKE:class-nativesdk = 'CROSS_COMPILE="${HOST_PREFIX}" CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" STRIP=true V=1 CONFIG_MX28=y' |
13 | 13 | ||
14 | do_compile () { | 14 | do_compile () { |
15 | oe_runmake -C ${S} O=${B} sandbox_defconfig | 15 | oe_runmake -C ${S} O=${B} sandbox_defconfig |
@@ -27,6 +27,6 @@ do_install () { | |||
27 | ln -sf uboot-mxsboot ${D}${bindir}/mxsboot | 27 | ln -sf uboot-mxsboot ${D}${bindir}/mxsboot |
28 | } | 28 | } |
29 | 29 | ||
30 | COMPATIBLE_MACHINE_class-target = "(mxs|mx5|mx6|mx7|vf|use-mainline-bsp)" | 30 | COMPATIBLE_MACHINE:class-target = "(mxs|mx5|mx6|mx7|vf|use-mainline-bsp)" |
31 | 31 | ||
32 | BBCLASSEXTEND = "native nativesdk" | 32 | BBCLASSEXTEND = "native nativesdk" |
diff --git a/recipes-bsp/u-boot/u-boot-fslc_2021.07.bb b/recipes-bsp/u-boot/u-boot-fslc_2021.07.bb index 4f97c722..fa219325 100644 --- a/recipes-bsp/u-boot/u-boot-fslc_2021.07.bb +++ b/recipes-bsp/u-boot/u-boot-fslc_2021.07.bb | |||
@@ -12,7 +12,7 @@ DEPENDS += "bc-native dtc-native python3-setuptools-native" | |||
12 | 12 | ||
13 | # Location known to imx-boot component, where U-Boot artifacts | 13 | # Location known to imx-boot component, where U-Boot artifacts |
14 | # should be additionally deployed. | 14 | # should be additionally deployed. |
15 | # See below note above do_deploy_append_mx8m for the purpose of | 15 | # See below note above do_deploy:append:mx8m for the purpose of |
16 | # this delopyment location | 16 | # this delopyment location |
17 | BOOT_TOOLS = "imx-boot-tools" | 17 | BOOT_TOOLS = "imx-boot-tools" |
18 | 18 | ||
@@ -27,47 +27,5 @@ EXTRA_OEMAKE += 'HOSTCC="${BUILD_CC} ${BUILD_CPPFLAGS}" \ | |||
27 | HOSTLDFLAGS="${BUILD_LDFLAGS}" \ | 27 | HOSTLDFLAGS="${BUILD_LDFLAGS}" \ |
28 | HOSTSTRIP=true' | 28 | HOSTSTRIP=true' |
29 | 29 | ||
30 | # | ||
31 | # imx8m machines require additional deployment tasks to be | ||
32 | # carried out due to the fact that final boot image is constructed | ||
33 | # using imx-boot recipe. It produces a boot binary image, which is | ||
34 | # constructed from various binary components (u-boot with separate | ||
35 | # dtb, atf, DDR firmware and optional op-tee) into a single image | ||
36 | # using FIT format. This image is then parsed and loaded either via | ||
37 | # SPL directly (imx8mm), or using bootrom code (imx8mn and imx8mp). | ||
38 | # | ||
39 | # In order for imx-boot to construct the final binary boot image, | ||
40 | # it is required that the U-Boot dtb files are to be deployed into | ||
41 | # a location known by imx-boot so they could be picked up and | ||
42 | # inserted into the boot container. | ||
43 | # | ||
44 | # NOTE: This is only applicable to those derivatives of mx8m family, | ||
45 | # which did not adopt the boot container mechanism provided by U-Boot | ||
46 | # build system itself. U-Boot is capable of producing a result binary, | ||
47 | # which includes all those deployed pieces below, hence once derivative | ||
48 | # starts to use it - below append would not be necessary. | ||
49 | # Once all mx8m derivatives are migrated to use the 'flash.bin' boot | ||
50 | # container - this append can be dropped completely. | ||
51 | do_deploy_append_mx8m() { | ||
52 | # Deploy the mkimage, u-boot-nodtb.bin and fsl-imx8m*-XX.dtb for mkimage to generate boot binary | ||
53 | if [ -n "${UBOOT_CONFIG}" ]; then | ||
54 | for config in ${UBOOT_MACHINE}; do | ||
55 | i=$(expr $i + 1); | ||
56 | for type in ${UBOOT_CONFIG}; do | ||
57 | j=$(expr $j + 1); | ||
58 | if [ $j -eq $i ] | ||
59 | then | ||
60 | install -d ${DEPLOYDIR}/${BOOT_TOOLS} | ||
61 | install -m 0777 ${B}/${config}/arch/arm/dts/${UBOOT_DTB_NAME} ${DEPLOYDIR}/${BOOT_TOOLS} | ||
62 | install -m 0777 ${B}/${config}/u-boot-nodtb.bin ${DEPLOYDIR}/${BOOT_TOOLS}/u-boot-nodtb.bin-${MACHINE}-${UBOOT_CONFIG} | ||
63 | fi | ||
64 | done | ||
65 | unset j | ||
66 | done | ||
67 | unset i | ||
68 | fi | ||
69 | } | ||
70 | |||
71 | |||
72 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 30 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
73 | COMPATIBLE_MACHINE = "(mxs|mx5|mx6|mx7|vf|use-mainline-bsp)" | 31 | COMPATIBLE_MACHINE = "(mxs|mx5|mx6|mx7|vf|use-mainline-bsp)" |
diff --git a/recipes-bsp/u-boot/u-boot-imx-mfgtool_2021.04.bb b/recipes-bsp/u-boot/u-boot-imx-mfgtool_2021.04.bb index 2b296c19..af502889 100644 --- a/recipes-bsp/u-boot/u-boot-imx-mfgtool_2021.04.bb +++ b/recipes-bsp/u-boot/u-boot-imx-mfgtool_2021.04.bb | |||
@@ -2,7 +2,7 @@ | |||
2 | # Copyright (C) 2014-2016 Freescale Semiconductor | 2 | # Copyright (C) 2014-2016 Freescale Semiconductor |
3 | # Copyright 2017-2019 NXP | 3 | # Copyright 2017-2019 NXP |
4 | 4 | ||
5 | FILESEXTRAPATHS_prepend := "${THISDIR}/u-boot-imx:" | 5 | FILESEXTRAPATHS:prepend := "${THISDIR}/u-boot-imx:" |
6 | 6 | ||
7 | require u-boot-imx_${PV}.bb | 7 | require u-boot-imx_${PV}.bb |
8 | require u-boot-mfgtool.inc | 8 | require u-boot-mfgtool.inc |
diff --git a/recipes-bsp/u-boot/u-boot-imx_2021.04.bb b/recipes-bsp/u-boot/u-boot-imx_2021.04.bb index 6a279a12..bb5809e2 100644 --- a/recipes-bsp/u-boot/u-boot-imx_2021.04.bb +++ b/recipes-bsp/u-boot/u-boot-imx_2021.04.bb | |||
@@ -7,7 +7,7 @@ require u-boot-imx-common_${PV}.inc | |||
7 | 7 | ||
8 | PROVIDES += "u-boot" | 8 | PROVIDES += "u-boot" |
9 | 9 | ||
10 | do_deploy_append_mx8m() { | 10 | do_deploy:append:mx8m() { |
11 | # Deploy u-boot-nodtb.bin and fsl-imx8m*-XX.dtb for mkimage to generate boot binary | 11 | # Deploy u-boot-nodtb.bin and fsl-imx8m*-XX.dtb for mkimage to generate boot binary |
12 | if [ -n "${UBOOT_CONFIG}" ] | 12 | if [ -n "${UBOOT_CONFIG}" ] |
13 | then | 13 | then |
diff --git a/recipes-bsp/u-boot/u-boot-qoriq_2020.04.bb b/recipes-bsp/u-boot/u-boot-qoriq_2020.04.bb index 57f27803..69b03de1 100644 --- a/recipes-bsp/u-boot/u-boot-qoriq_2020.04.bb +++ b/recipes-bsp/u-boot/u-boot-qoriq_2020.04.bb | |||
@@ -19,14 +19,14 @@ SRCREV= "f46a944f715f284aff1d42c009680ffe0be4058f" | |||
19 | 19 | ||
20 | S = "${WORKDIR}/git" | 20 | S = "${WORKDIR}/git" |
21 | B = "${WORKDIR}/build" | 21 | B = "${WORKDIR}/build" |
22 | PV_append = "+fslgit" | 22 | PV:append = "+fslgit" |
23 | LOCALVERSION = "+fsl" | 23 | LOCALVERSION = "+fsl" |
24 | 24 | ||
25 | INHIBIT_DEFAULT_DEPS = "1" | 25 | INHIBIT_DEFAULT_DEPS = "1" |
26 | DEPENDS = "libgcc virtual/${TARGET_PREFIX}gcc bison-native bc-native swig-native python3-native" | 26 | DEPENDS = "libgcc virtual/${TARGET_PREFIX}gcc bison-native bc-native swig-native python3-native" |
27 | DEPENDS_append_qoriq-arm64 = " dtc-native" | 27 | DEPENDS:append:qoriq-arm64 = " dtc-native" |
28 | DEPENDS_append_qoriq-arm = " dtc-native" | 28 | DEPENDS:append:qoriq-arm = " dtc-native" |
29 | DEPENDS_append_qoriq-ppc = " boot-format-native" | 29 | DEPENDS:append:qoriq-ppc = " boot-format-native" |
30 | 30 | ||
31 | python () { | 31 | python () { |
32 | if d.getVar("TCMODE") == "external-fsl": | 32 | if d.getVar("TCMODE") == "external-fsl": |
@@ -41,8 +41,8 @@ python () { | |||
41 | sys_multilib = d.getVar('TARGET_VENDOR') + 'mllib32-linux' | 41 | sys_multilib = d.getVar('TARGET_VENDOR') + 'mllib32-linux' |
42 | sys_original = d.getVar('TARGET_VENDOR') + '-' + d.getVar('TARGET_OS') | 42 | sys_original = d.getVar('TARGET_VENDOR') + '-' + d.getVar('TARGET_OS') |
43 | workdir = d.getVar('WORKDIR') | 43 | workdir = d.getVar('WORKDIR') |
44 | d.setVar('DEPENDS_append', ' lib32-gcc-cross-powerpc lib32-libgcc') | 44 | d.setVar('DEPENDS:append', ' lib32-gcc-cross-powerpc lib32-libgcc') |
45 | d.setVar('PATH_append', ':' + d.getVar('STAGING_BINDIR_NATIVE') + '/powerpc' + sys_multilib) | 45 | d.setVar('PATH:append', ':' + d.getVar('STAGING_BINDIR_NATIVE') + '/powerpc' + sys_multilib) |
46 | d.setVar('TOOLCHAIN_OPTIONS', '--sysroot=' + workdir + '/lib32-recipe-sysroot') | 46 | d.setVar('TOOLCHAIN_OPTIONS', '--sysroot=' + workdir + '/lib32-recipe-sysroot') |
47 | d.setVar("WRAP_TARGET_PREFIX", 'powerpc' + sys_multilib + '-') | 47 | d.setVar("WRAP_TARGET_PREFIX", 'powerpc' + sys_multilib + '-') |
48 | elif "fsl-lsch2-32b:" in arch: | 48 | elif "fsl-lsch2-32b:" in arch: |
@@ -51,8 +51,8 @@ python () { | |||
51 | sys_multilib = d.getVar('TARGET_VENDOR') + 'mllib64-linux' | 51 | sys_multilib = d.getVar('TARGET_VENDOR') + 'mllib64-linux' |
52 | sys_original = d.getVar('TARGET_VENDOR') + '-' + d.getVar('TARGET_OS') | 52 | sys_original = d.getVar('TARGET_VENDOR') + '-' + d.getVar('TARGET_OS') |
53 | workdir = d.getVar('WORKDIR') | 53 | workdir = d.getVar('WORKDIR') |
54 | d.setVar('DEPENDS_append', ' lib64-gcc-cross-aarch64 lib64-libgcc') | 54 | d.setVar('DEPENDS:append', ' lib64-gcc-cross-aarch64 lib64-libgcc') |
55 | d.setVar('PATH_append', ':' + d.getVar('STAGING_BINDIR_NATIVE') + '/aarch64' + sys_multilib) | 55 | d.setVar('PATH:append', ':' + d.getVar('STAGING_BINDIR_NATIVE') + '/aarch64' + sys_multilib) |
56 | d.setVar('TOOLCHAIN_OPTIONS', '--sysroot=' + workdir + '/lib64-recipe-sysroot') | 56 | d.setVar('TOOLCHAIN_OPTIONS', '--sysroot=' + workdir + '/lib64-recipe-sysroot') |
57 | d.setVar("WRAP_TARGET_PREFIX", 'aarch64' + sys_multilib + '-') | 57 | d.setVar("WRAP_TARGET_PREFIX", 'aarch64' + sys_multilib + '-') |
58 | } | 58 | } |
@@ -66,7 +66,7 @@ EXTRA_OEMAKE = 'CROSS_COMPILE=${WRAP_TARGET_PREFIX} CC="${WRAP_TARGET_PREFIX}gcc | |||
66 | EXTRA_OEMAKE += 'HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}"' | 66 | EXTRA_OEMAKE += 'HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}"' |
67 | EXTRA_OEMAKE += 'STAGING_INCDIR=${STAGING_INCDIR_NATIVE} STAGING_LIBDIR=${STAGING_LIBDIR_NATIVE}' | 67 | EXTRA_OEMAKE += 'STAGING_INCDIR=${STAGING_INCDIR_NATIVE} STAGING_LIBDIR=${STAGING_LIBDIR_NATIVE}' |
68 | 68 | ||
69 | do_compile_append_qoriq() { | 69 | do_compile:append:qoriq() { |
70 | unset i j k | 70 | unset i j k |
71 | for config in ${UBOOT_MACHINE}; do | 71 | for config in ${UBOOT_MACHINE}; do |
72 | i=`expr $i + 1`; | 72 | i=`expr $i + 1`; |
@@ -94,5 +94,5 @@ do_compile_append_qoriq() { | |||
94 | 94 | ||
95 | 95 | ||
96 | PACKAGES += "${PN}-images" | 96 | PACKAGES += "${PN}-images" |
97 | FILES_${PN}-images += "/boot" | 97 | FILES:${PN}-images += "/boot" |
98 | COMPATIBLE_MACHINE = "(qoriq)" | 98 | COMPATIBLE_MACHINE = "(qoriq)" |
diff --git a/recipes-bsp/uefi/uefi_git.bb b/recipes-bsp/uefi/uefi_git.bb index 6351577e..df77b420 100644 --- a/recipes-bsp/uefi/uefi_git.bb +++ b/recipes-bsp/uefi/uefi_git.bb | |||
@@ -28,7 +28,7 @@ do_deploy () { | |||
28 | addtask deploy before do_build after do_install | 28 | addtask deploy before do_build after do_install |
29 | 29 | ||
30 | PACKAGES += "${PN}-image" | 30 | PACKAGES += "${PN}-image" |
31 | FILES_${PN}-image += "/uefi/*" | 31 | FILES:${PN}-image += "/uefi/*" |
32 | 32 | ||
33 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" | 33 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" |
34 | 34 | ||