summaryrefslogtreecommitdiffstats
path: root/recipes-bsp
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-bsp')
-rw-r--r--recipes-bsp/alsa-state/alsa-state.bbappend16
-rw-r--r--recipes-bsp/atf/files/0001-Clean-usage-of-void-pointers-to-access-symbols.patch709
-rw-r--r--recipes-bsp/atf/qoriq-atf_1.5.bb24
-rw-r--r--recipes-bsp/atf/qoriq-atf_2.3.bb6
-rw-r--r--recipes-bsp/boot-format/boot-format_git.bb2
-rw-r--r--recipes-bsp/ddr-phy/ddr-phy_git.bb2
-rw-r--r--recipes-bsp/dp-firmware-cadence/dp-firmware-cadence_20.04.bb2
-rw-r--r--recipes-bsp/firmware-imx/firmware-imx-8_8.12.bb4
-rw-r--r--recipes-bsp/firmware-imx/firmware-imx_8.12.bb6
-rw-r--r--recipes-bsp/firmware-imx/firmware-nxp-wifi_1.0.bb6
-rw-r--r--recipes-bsp/firmware-imx/firmware-sof-imx_1.5.0-3.bb2
-rw-r--r--recipes-bsp/firmware-qca/firmware-qca.inc15
-rw-r--r--recipes-bsp/firmware-qca/firmware-qca6174_3.0.2.bb27
-rw-r--r--recipes-bsp/firmware-qca/firmware-qca9377_3.0.2.bb27
-rw-r--r--recipes-bsp/firmware-qca/qca-tools_3.0.2.bb20
-rw-r--r--recipes-bsp/formfactor/formfactor_%.bbappend2
-rw-r--r--recipes-bsp/imx-atf/imx-atf_2.4.bb2
-rw-r--r--recipes-bsp/imx-lib/imx-lib_git.bb18
-rw-r--r--recipes-bsp/imx-mkimage/imx-boot_1.0.bb22
-rw-r--r--recipes-bsp/imx-sc-firmware/imx-sc-firmware_1.9.0.bb8
-rw-r--r--recipes-bsp/imx-test/imx-test_00.00.00.bb2
-rw-r--r--recipes-bsp/imx-test/imx-test_git.bb34
-rw-r--r--recipes-bsp/imx-uuc/imx-uuc_git.bb2
-rw-r--r--recipes-bsp/imx-vpu-hantro-vc/imx-vpu-hantro-vc_1.4.0.bb2
-rw-r--r--recipes-bsp/imx-vpu-hantro/imx-vpu-hantro-daemon_1.0.0.bb8
-rw-r--r--recipes-bsp/imx-vpu-hantro/imx-vpu-hantro_1.22.0.bb10
-rw-r--r--recipes-bsp/imx-vpu/imx-vpu_5.4.39.3.bb2
-rw-r--r--recipes-bsp/inphi/inphi_git.bb2
-rw-r--r--recipes-bsp/isp-imx/basler-camera_4.2.2.13.0.bb4
-rw-r--r--recipes-bsp/isp-imx/isp-imx/0001-start_isp.sh-fix-NR_DEVICE_TREE_BASLER-variable.patch53
-rw-r--r--recipes-bsp/isp-imx/isp-imx/0001-start_isp.sh-fix-test-to-be-generic.patch41
-rw-r--r--recipes-bsp/isp-imx/isp-imx_4.2.2.13.0.bb14
-rw-r--r--recipes-bsp/libimxdmabuffer/libimxdmabuffer_1.0.1.bb14
-rw-r--r--recipes-bsp/ls2-phy/ls2-phy_git.bb2
-rw-r--r--recipes-bsp/mc-utils/mc-utils_git.bb12
-rw-r--r--recipes-bsp/ppfe-firmware/ppfe-firmware_git.bb4
-rw-r--r--recipes-bsp/qe-ucode/qe-ucode_git.bb2
-rw-r--r--recipes-bsp/rcw/rcw_git.bb8
-rw-r--r--recipes-bsp/u-boot/libubootenv_%.bbappend4
-rw-r--r--recipes-bsp/u-boot/u-boot-fslc-common_2021.07.inc2
-rw-r--r--recipes-bsp/u-boot/u-boot-fslc-mfgtool_2021.07.bb2
-rw-r--r--recipes-bsp/u-boot/u-boot-fslc-mxsboot_2021.07.bb8
-rw-r--r--recipes-bsp/u-boot/u-boot-fslc_2021.07.bb44
-rw-r--r--recipes-bsp/u-boot/u-boot-imx-mfgtool_2021.04.bb2
-rw-r--r--recipes-bsp/u-boot/u-boot-imx_2021.04.bb2
-rw-r--r--recipes-bsp/u-boot/u-boot-qoriq_2020.04.bb20
-rw-r--r--recipes-bsp/uefi/uefi_git.bb2
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
2FILESEXTRAPATHS_prepend_mx6 := "${THISDIR}/${PN}/imx:" 2FILESEXTRAPATHS:prepend:mx6 := "${THISDIR}/${PN}/imx:"
3FILESEXTRAPATHS_prepend_mx7 := "${THISDIR}/${PN}/imx:" 3FILESEXTRAPATHS:prepend:mx7 := "${THISDIR}/${PN}/imx:"
4FILESEXTRAPATHS_prepend_mx8 := "${THISDIR}/${PN}/imx:" 4FILESEXTRAPATHS:prepend:mx8 := "${THISDIR}/${PN}/imx:"
5FILESEXTRAPATHS_prepend_use-mainline-bsp := "${THISDIR}/${PN}/imx:" 5FILESEXTRAPATHS:prepend:use-mainline-bsp := "${THISDIR}/${PN}/imx:"
6 6
7PACKAGE_ARCH_mx6 = "${MACHINE_ARCH}" 7PACKAGE_ARCH:mx6 = "${MACHINE_ARCH}"
8PACKAGE_ARCH_mx7 = "${MACHINE_ARCH}" 8PACKAGE_ARCH:mx7 = "${MACHINE_ARCH}"
9PACKAGE_ARCH_mx8 = "${MACHINE_ARCH}" 9PACKAGE_ARCH:mx8 = "${MACHINE_ARCH}"
10PACKAGE_ARCH_use-mainline-bsp = "${MACHINE_ARCH}" 10PACKAGE_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 @@
1From 9f85f9e3796f1c351bbc4c8436dc66d83c140b71 Mon Sep 17 00:00:00 2001
2From: Joel Hutton <Joel.Hutton@Arm.com>
3Date: Wed, 21 Mar 2018 11:40:57 +0000
4Subject: [PATCH] Clean usage of void pointers to access symbols
5
6Void pointers have been used to access linker symbols, by declaring an
7extern pointer, then taking the address of it. This limits symbols
8values to aligned pointer values. To remove this restriction an
9IMPORT_SYM macro has been introduced, which declares it as a char
10pointer and casts it to the required type.
11
12Upstream-Status: Backport
13
14Change-Id: I89877fc3b13ed311817bb8ba79d4872b89bfd3b0
15Signed-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
37diff --git a/bl1/bl1_private.h b/bl1/bl1_private.h
38index 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
71diff --git a/common/runtime_svc.c b/common/runtime_svc.c
72index 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
91diff --git a/drivers/auth/img_parser_mod.c b/drivers/auth/img_parser_mod.c
92index 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
117diff --git a/include/common/bl_common.h b/include/common/bl_common.h
118index 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 /*******************************************************************************
175diff --git a/include/common/runtime_svc.h b/include/common/runtime_svc.h
176index 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];
190diff --git a/include/lib/utils_def.h b/include/lib/utils_def.h
191index 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__ */
223diff --git a/include/plat/common/common_def.h b/include/plat/common/common_def.h
224index 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__ */
269diff --git a/include/services/secure_partition.h b/include/services/secure_partition.h
270index 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
299diff --git a/lib/locks/bakery/bakery_lock_normal.c b/lib/locks/bakery/bakery_lock_normal.c
300index 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) \
328diff --git a/lib/pmf/pmf_main.c b/lib/pmf/pmf_main.c
329index 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
370diff --git a/plat/hisilicon/hikey/hikey_bl1_setup.c b/plat/hisilicon/hikey/hikey_bl1_setup.c
371index 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 /*
409diff --git a/plat/hisilicon/hikey960/hikey960_bl1_setup.c b/plat/hisilicon/hikey960/hikey960_bl1_setup.c
410index 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)
443diff --git a/plat/hisilicon/poplar/bl1_plat_setup.c b/plat/hisilicon/poplar/bl1_plat_setup.c
444index 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)
479diff --git a/plat/mediatek/mt6795/bl31_plat_setup.c b/plat/mediatek/mt6795/bl31_plat_setup.c
480index 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
517diff --git a/plat/mediatek/mt8173/bl31_plat_setup.c b/plat/mediatek/mt8173/bl31_plat_setup.c
518index 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 }
568diff --git a/plat/nvidia/tegra/common/tegra_bl31_setup.c b/plat/nvidia/tegra/common/tegra_bl31_setup.c
569index 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;
635diff --git a/plat/rockchip/common/bl31_plat_setup.c b/plat/rockchip/common/bl31_plat_setup.c
636index 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;
670diff --git a/services/std_svc/spm/spm_shim_private.h b/services/std_svc/spm/spm_shim_private.h
671index 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--
7082.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}"
8inherit deploy 8inherit deploy
9 9
10DEPENDS += "u-boot-mkimage-native u-boot openssl openssl-native mbedtls rcw cst-native" 10DEPENDS += "u-boot-mkimage-native u-boot openssl openssl-native mbedtls rcw cst-native"
11DEPENDS_append_lx2160a = " ddr-phy" 11DEPENDS:append:lx2160a = " ddr-phy"
12do_compile[depends] += "u-boot:do_deploy rcw:do_deploy uefi:do_deploy" 12do_compile[depends] += "u-boot:do_deploy rcw:do_deploy uefi:do_deploy"
13 13
14S = "${WORKDIR}/git" 14S = "${WORKDIR}/git"
15 15
16SRC_URI = "git://source.codeaurora.org/external/qoriq/qoriq-components/atf;nobranch=1" 16SRC_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"
17SRCREV = "5ae5233c064e94a8bd1b4a1652a03b87b0be63f6" 19SRCREV = "5ae5233c064e94a8bd1b4a1652a03b87b0be63f6"
18 20
19COMPATIBLE_MACHINE = "(qoriq)" 21COMPATIBLE_MACHINE = "(qoriq)"
@@ -21,12 +23,12 @@ COMPATIBLE_MACHINE = "(qoriq)"
21PACKAGE_ARCH = "${MACHINE_ARCH}" 23PACKAGE_ARCH = "${MACHINE_ARCH}"
22 24
23PLATFORM = "${MACHINE}" 25PLATFORM = "${MACHINE}"
24PLATFORM_ls1088ardb-pb = "ls1088ardb" 26PLATFORM:ls1088ardb-pb = "ls1088ardb"
25PLATFORM_ADDITIONAL_TARGET ??= "" 27PLATFORM_ADDITIONAL_TARGET ??= ""
26PLATFORM_ADDITIONAL_TARGET_ls1012afrwy = "ls1012afrwy_512mb" 28PLATFORM_ADDITIONAL_TARGET:ls1012afrwy = "ls1012afrwy_512mb"
27 29
28RCW_FOLDER ?= "${MACHINE}" 30RCW_FOLDER ?= "${MACHINE}"
29RCW_FOLDER_ls1088ardb-pb = "ls1088ardb" 31RCW_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
32export CROSS_COMPILE="${TARGET_PREFIX}" 34export CROSS_COMPILE="${TARGET_PREFIX}"
@@ -56,16 +58,16 @@ PACKAGECONFIG[optee] = ",,optee-os-qoriq"
56uboot_boot_sec ?= "${DEPLOY_DIR_IMAGE}/u-boot.bin-tfa-secure-boot" 58uboot_boot_sec ?= "${DEPLOY_DIR_IMAGE}/u-boot.bin-tfa-secure-boot"
57uboot_boot ?= "${DEPLOY_DIR_IMAGE}/u-boot.bin-tfa" 59uboot_boot ?= "${DEPLOY_DIR_IMAGE}/u-boot.bin-tfa"
58rcw ?= "" 60rcw ?= ""
59rcw_ls1012a = "_default" 61rcw:ls1012a = "_default"
60rcwsec ?= "_sben" 62rcwsec ?= "_sben"
61 63
62chassistype ?= "ls2088_1088" 64chassistype ?= "ls2088_1088"
63chassistype_ls1012a = "ls104x_1012" 65chassistype:ls1012a = "ls104x_1012"
64chassistype_ls1043a = "ls104x_1012" 66chassistype:ls1043a = "ls104x_1012"
65chassistype_ls1046a = "ls104x_1012" 67chassistype:ls1046a = "ls104x_1012"
66 68
67ddrphyopt ?= "" 69ddrphyopt ?= ""
68ddrphyopt_lx2160a = "fip_ddr_sec" 70ddrphyopt:lx2160a = "fip_ddr_sec"
69 71
70do_configure[noexec] = "1" 72do_configure[noexec] = "1"
71 73
@@ -242,5 +244,5 @@ do_deploy() {
242 fi 244 fi
243} 245}
244addtask deploy after do_install 246addtask deploy after do_install
245FILES_${PN} += "/boot" 247FILES:${PN} += "/boot"
246BBCLASSEXTEND = "native nativesdk" 248BBCLASSEXTEND = "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
161do_deploy() { 161do_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}
173addtask deploy after do_install 173addtask deploy after do_install
174FILES_${PN} += "/boot" 174FILES:${PN} += "/boot"
175COMPATIBLE_MACHINE = "(lx2160a|lx2162a)" 175COMPATIBLE_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
17PACKAGES =+ "${PN}-config" 17PACKAGES =+ "${PN}-config"
18FILES_${PN}-config += "${datadir}/*" 18FILES:${PN}-config += "${datadir}/*"
19 19
20BBCLASSEXTEND = "native nativesdk" 20BBCLASSEXTEND = "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 () {
38addtask deploy before do_populate_sysroot after do_install 38addtask deploy before do_populate_sysroot after do_install
39 39
40PACKAGES += "${PN}-image" 40PACKAGES += "${PN}-image"
41FILES_${PN}-image += "/boot" 41FILES:${PN}-image += "/boot"
42 42
43COMPATIBLE_MACHINE = "(lx2160a|lx2162a)" 43COMPATIBLE_MACHINE = "(lx2160a|lx2162a)"
44PACKAGE_ARCH = "${MACHINE_ARCH}" 44PACKAGE_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 () {
23addtask deploy before do_build after do_install 23addtask deploy before do_build after do_install
24 24
25PACKAGES += "${PN}-image" 25PACKAGES += "${PN}-image"
26FILES_${PN}-image += "/boot" 26FILES:${PN}-image += "/boot"
27 27
28COMPATIBLE_MACHINE = "(qoriq-arm64)" 28COMPATIBLE_MACHINE = "(qoriq-arm64)"
29PACKAGE_ARCH = "${MACHINE_ARCH}" 29PACKAGE_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
19PACKAGE_ARCH = "${MACHINE_SOCARCH}" 19PACKAGE_ARCH = "${MACHINE_SOCARCH}"
20 20
21COMPATIBLE_MACHINE = "(mx8)" 21COMPATIBLE_MACHINE = "(mx8)"
22COMPATIBLE_MACHINE_mx8m = "(^$)" 22COMPATIBLE_MACHINE:mx8m = "(^$)"
23COMPATIBLE_MACHINE_mx8x = "(^$)" 23COMPATIBLE_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#
68python populate_packages_prepend() { 68python 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.
124PACKAGES = "${PN} ${PN}-epdc ${PN}-hdmi" 124PACKAGES = "${PN} ${PN}-epdc ${PN}-hdmi"
125 125
126FILES_${PN}-epdc = "${nonarch_base_libdir}/firmware/imx/epdc/" 126FILES:${PN}-epdc = "${nonarch_base_libdir}/firmware/imx/epdc/"
127FILES_${PN}-hdmi = "${nonarch_base_libdir}/firmware/imx/hdmi/" 127FILES:${PN}-hdmi = "${nonarch_base_libdir}/firmware/imx/hdmi/"
128 128
129COMPATIBLE_MACHINE = "(imx|use-mainline-bsp)" 129COMPATIBLE_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"
18inherit allarch 18inherit allarch
19 19
20CLEANBROKEN = "1" 20CLEANBROKEN = "1"
21ALLOW_EMPTY_${PN} = "1" 21ALLOW_EMPTY:${PN} = "1"
22 22
23do_compile() { 23do_compile() {
24 : 24 :
@@ -38,9 +38,9 @@ PACKAGES =+ " \
38 ${PN}-bcm4359-pcie \ 38 ${PN}-bcm4359-pcie \
39" 39"
40 40
41FILES_${PN}-bcm4359-pcie = " \ 41FILES:${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
46RPROVIDES_${PN}-bcm4359-pcie = "linux-firmware-bcm4359-pcie" 46RPROVIDES:${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
24FILES_${PN} = "${nonarch_base_libdir}/firmware/imx" 24FILES:${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
3SUMMARY = "Qualcomm Wi-Fi and Bluetooth firmware"
4SECTION = "base"
5LICENSE = "Proprietary"
6LIC_FILES_CHKSUM = "file://COPYING;md5=fd4b227530cd88a82af6a5982cfb724d \
7 file://QUALCOMM_ATHEROS_LICENSE_AGREEMENT.pdf;md5=e629669cf17f6a2a6872e067582986e3 \
8"
9
10SRC_URI = " ${FSL_MIRROR}/firmware-qca-${PV}.bin;fsl-eula=true"
11SRC_URI[md5sum] = "75b1b2a8dea8f81609ccfc072d42fa86"
12SRC_URI[sha256sum] = "6ad56ac1df841e252ac6db0a8966082715a3cb6dc7189426bade13333a16fd9d"
13S = "${WORKDIR}/firmware-qca-${PV}"
14
15inherit 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
3require firmware-qca.inc
4
5SUMMARY = "Qualcomm Wi-Fi and Bluetooth firmware"
6DESCRIPTION = "Qualcomm Wi-Fi and Bluetooth firmware for modules such as QCA6174A"
7SECTION = "base"
8LICENSE = "Proprietary"
9
10inherit allarch
11
12do_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
22FILES_${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
3require firmware-qca.inc
4
5SUMMARY = "Qualcomm Wi-Fi and Bluetooth firmware"
6DESCRIPTION = "Qualcomm Wi-Fi and Bluetooth firmware for modules such as QCA9377-3"
7SECTION = "base"
8LICENSE = "Proprietary"
9
10inherit allarch
11
12do_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
22FILES_${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
3require firmware-qca.inc
4
5SUMMARY = "Qualcomm Wi-Fi and Bluetooth tools"
6DESCRIPTION = "Qualcomm Wi-Fi and Bluetooth tools for modules such as QCA6174A and QCA9377"
7LICENSE = "Proprietary"
8
9DEPENDS = "libnl zlib"
10
11FCC_TOOLS_FOLDER ?= "qca9377_qca6174_arm32"
12FCC_TOOLS_FOLDER_aarch64 = "qca9377_qca6174_arm64"
13
14do_install() {
15 install -d ${D}${sbindir}/fcc_tools
16 cp -r ${S}/fcc_tools/${FCC_TOOLS_FOLDER} ${D}${sbindir}/fcc_tools
17}
18
19COMPATIBLE_HOST = '(aarch64|arm).*-linux'
20COMPATIBLE_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
2FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" 2FILESEXTRAPATHS: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
28BUILD_OPTEE = "${@bb.utils.contains('MACHINE_FEATURES', 'optee', 'true', 'false', d)}" 28BUILD_OPTEE = "${@bb.utils.contains('MACHINE_FEATURES', 'optee', 'true', 'false', d)}"
29 29
30CFLAGS_remove_mx8mq = "-O2" 30CFLAGS:remove:mx8mq = "-O2"
31 31
32do_compile() { 32do_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
21inherit use-imx-headers 21inherit use-imx-headers
22 22
23PLATFORM_mx6q = "IMX6Q" 23PLATFORM:mx6q = "IMX6Q"
24PLATFORM_mx6dl = "IMX6Q" 24PLATFORM:mx6dl = "IMX6Q"
25PLATFORM_mx6sl = "IMX6S" 25PLATFORM:mx6sl = "IMX6S"
26PLATFORM_mx6sll = "IMX6UL" 26PLATFORM:mx6sll = "IMX6UL"
27PLATFORM_mx6sx = "IMX6S" 27PLATFORM:mx6sx = "IMX6S"
28PLATFORM_mx6ul = "IMX6UL" 28PLATFORM:mx6ul = "IMX6UL"
29PLATFORM_mx6ull = "IMX6UL" 29PLATFORM:mx6ull = "IMX6UL"
30PLATFORM_mx7d = "IMX7" 30PLATFORM:mx7d = "IMX7"
31PLATFORM_mx7ulp = "IMX7" 31PLATFORM:mx7ulp = "IMX7"
32 32
33PARALLEL_MAKE="-j 1" 33PARALLEL_MAKE="-j 1"
34EXTRA_OEMAKE = "" 34EXTRA_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"
10inherit use-imx-security-controller-firmware 10inherit use-imx-security-controller-firmware
11 11
12IMX_EXTRA_FIRMWARE = "firmware-imx-8 imx-sc-firmware imx-seco" 12IMX_EXTRA_FIRMWARE = "firmware-imx-8 imx-sc-firmware imx-seco"
13IMX_EXTRA_FIRMWARE_mx8m = "firmware-imx-8m" 13IMX_EXTRA_FIRMWARE:mx8m = "firmware-imx-8m"
14IMX_EXTRA_FIRMWARE_mx8x = "imx-sc-firmware imx-seco" 14IMX_EXTRA_FIRMWARE:mx8x = "imx-sc-firmware imx-seco"
15DEPENDS += " \ 15DEPENDS += " \
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
22DEPENDS += "xxd-native" 22DEPENDS += "xxd-native"
23DEPENDS_append_mx8m = " u-boot-mkimage-native dtc-native" 23DEPENDS:append:mx8m = " u-boot-mkimage-native dtc-native"
24BOOT_NAME = "imx-boot" 24BOOT_NAME = "imx-boot"
25PROVIDES = "${BOOT_NAME}" 25PROVIDES = "${BOOT_NAME}"
26 26
@@ -41,7 +41,7 @@ do_compile[depends] += " \
41SC_FIRMWARE_NAME ?= "scfw_tcm.bin" 41SC_FIRMWARE_NAME ?= "scfw_tcm.bin"
42 42
43ATF_MACHINE_NAME ?= "bl31-${ATF_PLATFORM}.bin" 43ATF_MACHINE_NAME ?= "bl31-${ATF_PLATFORM}.bin"
44ATF_MACHINE_NAME_append = "${@bb.utils.contains('MACHINE_FEATURES', 'optee', '-optee', '', d)}" 44ATF_MACHINE_NAME:append = "${@bb.utils.contains('MACHINE_FEATURES', 'optee', '-optee', '', d)}"
45 45
46UBOOT_NAME = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}" 46UBOOT_NAME = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}"
47BOOT_CONFIG_MACHINE = "${BOOT_NAME}-${MACHINE}-${UBOOT_CONFIG}.bin" 47BOOT_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
60BOOT_STAGING = "${S}/${IMX_BOOT_SOC_TARGET}" 60BOOT_STAGING = "${S}/${IMX_BOOT_SOC_TARGET}"
61BOOT_STAGING_mx8m = "${S}/iMX8M" 61BOOT_STAGING:mx8m = "${S}/iMX8M"
62BOOT_STAGING_mx8dx = "${S}/iMX8QX" 62BOOT_STAGING:mx8dx = "${S}/iMX8QX"
63 63
64SOC_FAMILY = "INVALID" 64SOC_FAMILY = "INVALID"
65SOC_FAMILY_mx8 = "mx8" 65SOC_FAMILY:mx8 = "mx8"
66SOC_FAMILY_mx8m = "mx8m" 66SOC_FAMILY:mx8m = "mx8m"
67SOC_FAMILY_mx8x = "mx8x" 67SOC_FAMILY:mx8x = "mx8x"
68 68
69REV_OPTION ?= "" 69REV_OPTION ?= ""
70REV_OPTION_mx8qxp = \ 70REV_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() {
199addtask deploy before do_build after do_compile 199addtask deploy before do_build after do_compile
200 200
201PACKAGE_ARCH = "${MACHINE_ARCH}" 201PACKAGE_ARCH = "${MACHINE_ARCH}"
202FILES_${PN} = "/boot" 202FILES:${PN} = "/boot"
203 203
204COMPATIBLE_MACHINE = "(mx8)" 204COMPATIBLE_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
16BOARD_TYPE ?= "mek" 16BOARD_TYPE ?= "mek"
17SC_FIRMWARE_NAME ?= "INVALID" 17SC_FIRMWARE_NAME ?= "INVALID"
18SC_FIRMWARE_NAME_mx8qm = "mx8qm-${BOARD_TYPE}-scfw-tcm.bin" 18SC_FIRMWARE_NAME:mx8qm = "mx8qm-${BOARD_TYPE}-scfw-tcm.bin"
19SC_FIRMWARE_NAME_mx8qxp = "mx8qx-${BOARD_TYPE}-scfw-tcm.bin" 19SC_FIRMWARE_NAME:mx8qxp = "mx8qx-${BOARD_TYPE}-scfw-tcm.bin"
20SC_FIRMWARE_NAME_mx8dxl = "mx8dxl-${BOARD_TYPE}-scfw-tcm.bin" 20SC_FIRMWARE_NAME:mx8dxl = "mx8dxl-${BOARD_TYPE}-scfw-tcm.bin"
21SC_FIRMWARE_NAME_mx8dx = "mx8dx-${BOARD_TYPE}-scfw-tcm.bin" 21SC_FIRMWARE_NAME:mx8dx = "mx8dx-${BOARD_TYPE}-scfw-tcm.bin"
22 22
23symlink_name = "scfw_tcm.bin" 23symlink_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"
4LICENSE = "MIT" 4LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" 5LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
6 6
7ALLOW_EMPTY_${PN} = "1" 7ALLOW_EMPTY:${PN} = "1"
8 8
9PACKAGE_ARCH = "${MACHINE_ARCH}" 9PACKAGE_ARCH = "${MACHINE_ARCH}"
10COMPATIBLE_MACHINE = "(mxs|mx5|mx6|vf50|vf60)" 10COMPATIBLE_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+"
9LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0-or-later;md5=fed54355545ffd980b814dab4a3b312c" 9LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0-or-later;md5=fed54355545ffd980b814dab4a3b312c"
10 10
11DEPENDS = "alsa-lib libdrm" 11DEPENDS = "alsa-lib libdrm"
12DEPENDS_append_mx6 = " imx-lib" 12DEPENDS:append:mx6 = " imx-lib"
13DEPENDS_append_mx7 = " imx-lib" 13DEPENDS:append:mx7 = " imx-lib"
14DEPENDS_append_imxvpu = " virtual/imxvpu" 14DEPENDS:append:imxvpu = " virtual/imxvpu"
15 15
16PE = "1" 16PE = "1"
17PV = "7.0+${SRCPV}" 17PV = "7.0+${SRCPV}"
@@ -29,22 +29,22 @@ inherit module-base use-imx-headers
29INHIBIT_PACKAGE_STRIP = "1" 29INHIBIT_PACKAGE_STRIP = "1"
30INHIBIT_PACKAGE_DEBUG_SPLIT = "1" 30INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
31 31
32PLATFORM_mx6q = "IMX6Q" 32PLATFORM:mx6q = "IMX6Q"
33PLATFORM_mx6dl = "IMX6Q" 33PLATFORM:mx6dl = "IMX6Q"
34PLATFORM_mx6sl = "IMX6SL" 34PLATFORM:mx6sl = "IMX6SL"
35PLATFORM_mx6sll = "IMX6SL" 35PLATFORM:mx6sll = "IMX6SL"
36PLATFORM_mx6sx = "IMX6SX" 36PLATFORM:mx6sx = "IMX6SX"
37PLATFORM_mx6ul = "IMX6UL" 37PLATFORM:mx6ul = "IMX6UL"
38PLATFORM_mx7d = "IMX7D" 38PLATFORM:mx7d = "IMX7D"
39PLATFORM_mx7ulp = "IMX7D" 39PLATFORM:mx7ulp = "IMX7D"
40PLATFORM_mx8 = "IMX8" 40PLATFORM:mx8 = "IMX8"
41 41
42PARALLEL_MAKE = "-j 1" 42PARALLEL_MAKE = "-j 1"
43EXTRA_OEMAKE += "${PACKAGECONFIG_CONFARGS}" 43EXTRA_OEMAKE += "${PACKAGECONFIG_CONFARGS}"
44 44
45PACKAGECONFIG = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}" 45PACKAGECONFIG = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
46PACKAGECONFIG_append_imxvpu = " vpu" 46PACKAGECONFIG:append:imxvpu = " vpu"
47PACKAGECONFIG_append_mx8m = " swpdm" 47PACKAGECONFIG:append:mx8m = " swpdm"
48 48
49PACKAGECONFIG[x11] = ",,libx11 libxdamage libxrender libxrandr" 49PACKAGECONFIG[x11] = ",,libx11 libxdamage libxrender libxrandr"
50PACKAGECONFIG[vpu] = "HAS_VPU=true,HAS_VPU=false,virtual/imxvpu" 50PACKAGECONFIG[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
79FILES_${PN} += "/unit_tests /home/root/.profile" 79FILES:${PN} += "/unit_tests /home/root/.profile"
80RDEPENDS_${PN} = "bash" 80RDEPENDS:${PN} = "bash"
81 81
82FILES_${PN}-dbg += "/unit_tests/.debug" 82FILES:${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
17S = "${WORKDIR}/git" 17S = "${WORKDIR}/git"
18 18
19FILES_${PN} += "/linuxrc /fat" 19FILES:${PN} += "/linuxrc /fat"
20 20
21COMPATIBLE_MACHINE = "(imx|use-mainline-bsp)" 21COMPATIBLE_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
33FILES_${PN} = "/" 33FILES:${PN} = "/"
34 34
35COMPATIBLE_MACHINE = "(mx8mp)" 35COMPATIBLE_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"
4LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=cd8bc2a79509c22fc9c1782a151210b1" 4LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=cd8bc2a79509c22fc9c1782a151210b1"
5 5
6DEPENDS = "imx-vpu-hantro" 6DEPENDS = "imx-vpu-hantro"
7DEPENDS_append_mx8mp = " imx-vpu-hantro-vc" 7DEPENDS:append:mx8mp = " imx-vpu-hantro-vc"
8 8
9SRC_URI = " \ 9SRC_URI = " \
10 ${FSL_MIRROR}/${BP}.tar.gz \ 10 ${FSL_MIRROR}/${BP}.tar.gz \
@@ -13,9 +13,9 @@ SRC_URI = " \
13SRC_URI[md5sum] = "65417710ef22214523c37f50f34b6ab2" 13SRC_URI[md5sum] = "65417710ef22214523c37f50f34b6ab2"
14SRC_URI[sha256sum] = "897d174c4c0818f31012d8a60ed51fc83fdfc55fca2d2b0fc24a0db3e9f3b6e8" 14SRC_URI[sha256sum] = "897d174c4c0818f31012d8a60ed51fc83fdfc55fca2d2b0fc24a0db3e9f3b6e8"
15 15
16PLATFORM_mx8mm = "IMX8MM" 16PLATFORM:mx8mm = "IMX8MM"
17PLATFORM_mx8mq = "IMX8MQ" 17PLATFORM:mx8mq = "IMX8MQ"
18PLATFORM_mx8mp = "IMX8MP" 18PLATFORM:mx8mp = "IMX8MP"
19 19
20EXTRA_OEMAKE = " \ 20EXTRA_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
15PARALLEL_MAKE="-j 1" 15PARALLEL_MAKE="-j 1"
16 16
17PLATFORM_mx8mm = "IMX8MM" 17PLATFORM:mx8mm = "IMX8MM"
18PLATFORM_mx8mq = "IMX8MQ" 18PLATFORM:mx8mq = "IMX8MQ"
19PLATFORM_mx8mp = "IMX8MP" 19PLATFORM:mx8mp = "IMX8MP"
20 20
21EXTRA_OEMAKE = " \ 21EXTRA_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
31FILES_${PN} += "/unit_tests" 31FILES:${PN} += "/unit_tests"
32 32
33RDEPENDS_${PN} += "imx-vpu-hantro-daemon" 33RDEPENDS:${PN} += "imx-vpu-hantro-daemon"
34 34
35COMPATIBLE_MACHINE = "(mx8mq|mx8mm|mx8mp)" 35COMPATIBLE_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"
7LIC_FILES_CHKSUM = "file://COPYING;md5=228c72f2a91452b8a03c4cab30f30ef9" 7LIC_FILES_CHKSUM = "file://COPYING;md5=228c72f2a91452b8a03c4cab30f30ef9"
8 8
9PROVIDES = "virtual/imxvpu" 9PROVIDES = "virtual/imxvpu"
10RPROVIDES_${PN} = "virtual/imxvpu" 10RPROVIDES:${PN} = "virtual/imxvpu"
11 11
12PE = "1" 12PE = "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 () {
21addtask deploy before do_build after do_install 21addtask deploy before do_build after do_install
22 22
23PACKAGES += "${PN}-image" 23PACKAGES += "${PN}-image"
24FILES_${PN}-image += "/boot" 24FILES:${PN}-image += "/boot"
25 25
26COMPATIBLE_MACHINE = "(qoriq-arm64)" 26COMPATIBLE_MACHINE = "(qoriq-arm64)"
27PACKAGE_ARCH = "${MACHINE_ARCH}" 27PACKAGE_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
22SYSTEMD_AUTO_ENABLE = "enable" 22SYSTEMD_AUTO_ENABLE = "enable"
23 23
24FILES_${PN} = "${libdir} /opt" 24FILES:${PN} = "${libdir} /opt"
25INSANE_SKIP_${PN} = "file-rdeps already-stripped" 25INSANE_SKIP:${PN} = "file-rdeps already-stripped"
26 26
27COMPATIBLE_MACHINE = "(mx8mp)" 27COMPATIBLE_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 @@
1From 9c65e20b82cfd9e82b849b3140eec7b8c18922dc Mon Sep 17 00:00:00 2001
2From: Chris Dimich <Chris.Dimich@boundarydevices.com>
3Date: Mon, 13 Sep 2021 17:56:02 -0700
4Subject: [PATCH 1/1] start_isp.sh: fix NR_DEVICE_TREE_BASLER variable
5
6Also remove uneeded -lm option from run.sh script.
7
8Signed-off-by: Chris Dimich <Chris.Dimich@boundarydevices.com>
9---
10 imx/start_isp.sh | 8 ++++----
11 1 file changed, 4 insertions(+), 4 deletions(-)
12
13diff --git a/imx/start_isp.sh b/imx/start_isp.sh
14index 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--
522.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 @@
1From 708f25cfe522df162c3e2c7c56cbe2f7000cb5e4 Mon Sep 17 00:00:00 2001
2From: Gary Bisson <gary.bisson@boundarydevices.com>
3Date: Mon, 14 Dec 2020 14:26:01 +0100
4Subject: [PATCH] start_isp.sh: fix test to be generic
5
6So that it works on EVK and any other i.MX 8M Plus platform.
7
8Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
9---
10 imx/start_isp.sh | 13 +++++--------
11 1 file changed, 5 insertions(+), 8 deletions(-)
12
13Index: 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
8SRC_URI = " \ 8SRC_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
23OECMAKE_GENERATOR = "Unix Makefiles" 23OECMAKE_GENERATOR = "Unix Makefiles"
24 24
25SYSTEMD_SERVICE_${PN} = "imx8-isp.service" 25SYSTEMD_SERVICE:${PN} = "imx8-isp.service"
26 26
27EXTRA_OECMAKE += " \ 27EXTRA_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
45do_configure_prepend() { 45do_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
76FILES_SOLIBSDEV = "" 76FILES_SOLIBSDEV = ""
77FILES_${PN} += "/opt ${libdir}/lib*${SOLIBSDEV}" 77FILES:${PN} += "/opt ${libdir}/lib*${SOLIBSDEV}"
78FILES_${PN}-dev += " \ 78FILES:${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
84INSANE_SKIP_${PN} = "rpaths" 84INSANE_SKIP:${PN} = "rpaths"
85 85
86RDEPENDS_${PN} = "libdrm libpython3" 86RDEPENDS:${PN} = "libdrm libpython3"
87 87
88COMPATIBLE_MACHINE = "(mx8mp)" 88COMPATIBLE_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.
28LIBG2D_PACKAGECONFIG = "g2d" 28LIBG2D_PACKAGECONFIG = "g2d"
29LIBG2D_PACKAGECONFIG_imxdpu = "" 29LIBG2D_PACKAGECONFIG:imxdpu = ""
30 30
31PACKAGECONFIG ?= " " 31PACKAGECONFIG ?= " "
32PACKAGECONFIG_append_imxgpu2d = " ${LIBG2D_PACKAGECONFIG}" 32PACKAGECONFIG:append:imxgpu2d = " ${LIBG2D_PACKAGECONFIG}"
33PACKAGECONFIG_append_imxipu = " ipu" 33PACKAGECONFIG:append:imxipu = " ipu"
34PACKAGECONFIG_append_imxpxp = " pxp" 34PACKAGECONFIG:append:imxpxp = " pxp"
35PACKAGECONFIG_append_mx8m = " ion dwl" 35PACKAGECONFIG:append:mx8m = " ion dwl"
36PACKAGECONFIG_append_mx8qm = " ion" 36PACKAGECONFIG:append:mx8qm = " ion"
37PACKAGECONFIG_append_mx8qxp = " ion" 37PACKAGECONFIG:append:mx8qxp = " ion"
38 38
39HANTRO_CONF = "--hantro-headers-path=${STAGING_INCDIR}/hantro_dec --hantro-decoder-version=G2" 39HANTRO_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 () {
21addtask deploy before do_build after do_install 21addtask deploy before do_build after do_install
22 22
23PACKAGES += "${PN}-image" 23PACKAGES += "${PN}-image"
24FILES_${PN}-image += "/boot" 24FILES:${PN}-image += "/boot"
25 25
26COMPATIBLE_MACHINE = "(qoriq)" 26COMPATIBLE_MACHINE = "(qoriq)"
27PACKAGE_ARCH = "${MACHINE_ARCH}" 27PACKAGE_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"
15S = "${WORKDIR}/git" 15S = "${WORKDIR}/git"
16 16
17MC_CFG ?= "" 17MC_CFG ?= ""
18MC_CFG_ls1088a = "ls1088a" 18MC_CFG:ls1088a = "ls1088a"
19MC_CFG_ls2088a = "ls2088a" 19MC_CFG:ls2088a = "ls2088a"
20MC_CFG_lx2160a = "lx2160a" 20MC_CFG:lx2160a = "lx2160a"
21MC_CFG_lx2162aqds = "lx2162aqds" 21MC_CFG:lx2162aqds = "lx2162aqds"
22 22
23MC_FLAVOUR ?= "RDB" 23MC_FLAVOUR ?= "RDB"
24MC_FLAVOUR_lx2162a = "" 24MC_FLAVOUR:lx2162a = ""
25 25
26do_compile () { 26do_compile () {
27 oe_runmake -C config 27 oe_runmake -C config
@@ -47,5 +47,5 @@ do_deploy () {
47addtask deploy after do_install 47addtask deploy after do_install
48 48
49PACKAGES += "${PN}-image" 49PACKAGES += "${PN}-image"
50FILES_${PN}-image += "/boot" 50FILES:${PN}-image += "/boot"
51COMPATIBLE_MACHINE = "(qoriq-arm64)" 51COMPATIBLE_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
28addtask deploy after do_install 28addtask deploy after do_install
29 29
30FILES_${PN} += "/lib/firmware /boot/" 30FILES:${PN} += "/lib/firmware /boot/"
31INSANE_SKIP_${PN} += "arch already-stripped" 31INSANE_SKIP:${PN} += "arch already-stripped"
32INHIBIT_PACKAGE_STRIP = "1" 32INHIBIT_PACKAGE_STRIP = "1"
33INHIBIT_SYSROOT_STRIP = "1" 33INHIBIT_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 () {
22addtask deploy before do_build after do_install 22addtask deploy before do_build after do_install
23 23
24PACKAGES += "${PN}-image" 24PACKAGES += "${PN}-image"
25FILES_${PN}-image += "/boot/*" 25FILES:${PN}-image += "/boot/*"
26 26
27COMPATIBLE_MACHINE = "(qoriq)" 27COMPATIBLE_MACHINE = "(qoriq)"
28PACKAGE_ARCH = "${MACHINE_SOCARCH}" 28PACKAGE_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"
17M="${@d.getVar('MACHINE').replace('-64b','').replace('-32b','').replace('-${SITEINFO_ENDIANNESS}','')}" 17M="${@d.getVar('MACHINE').replace('-64b','').replace('-32b','').replace('-${SITEINFO_ENDIANNESS}','')}"
18 18
19BOARD_TARGETS="${M}" 19BOARD_TARGETS="${M}"
20BOARD_TARGETS_ls2088ardb="${M} ${M}_rev1.1" 20BOARD_TARGETS:ls2088ardb="${M} ${M}_rev1.1"
21BOARD_TARGETS_ls1088ardb-pb="ls1088ardb" 21BOARD_TARGETS:ls1088ardb-pb="ls1088ardb"
22BOARD_TARGETS_lx2160ardb = "${M} ${M}_rev2" 22BOARD_TARGETS:lx2160ardb = "${M} ${M}_rev2"
23 23
24do_compile () { 24do_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 () {
36addtask deploy after do_install 36addtask deploy after do_install
37 37
38PACKAGES += "${PN}-image" 38PACKAGES += "${PN}-image"
39FILES_${PN}-image += "/boot" 39FILES:${PN}-image += "/boot"
40 40
41COMPATIBLE_MACHINE = "(qoriq)" 41COMPATIBLE_MACHINE = "(qoriq)"
42PACKAGE_ARCH = "${MACHINE_ARCH}" 42PACKAGE_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
11SRC_URI = "git://github.com/Freescale/u-boot-fslc.git;branch=${SRCBRANCH}" 11SRC_URI = "git://github.com/Freescale/u-boot-fslc.git;branch=${SRCBRANCH}"
12 12
13SRCREV = "587e796995604fb669a3552daae682b4d6d346d9" 13SRCREV = "691e634bfd317ede487d2b864a126847ffeb4aa7"
14SRCBRANCH = "2021.07+fslc" 14SRCBRANCH = "2021.07+fslc"
15 15
16PV = "v2021.07+git${SRCPV}" 16PV = "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
5FILESEXTRAPATHS_prepend := "${THISDIR}/u-boot-fslc:" 5FILESEXTRAPATHS:prepend := "${THISDIR}/u-boot-fslc:"
6 6
7require u-boot-fslc_${PV}.bb 7require u-boot-fslc_${PV}.bb
8require u-boot-mfgtool.inc 8require 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
8PROVIDES = "u-boot-mxsboot" 8PROVIDES = "u-boot-mxsboot"
9 9
10EXTRA_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' 10EXTRA_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'
11EXTRA_OEMAKE_class-native = 'CC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" STRIP=true V=1 CONFIG_MX28=y' 11EXTRA_OEMAKE:class-native = 'CC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" STRIP=true V=1 CONFIG_MX28=y'
12EXTRA_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' 12EXTRA_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
14do_compile () { 14do_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
30COMPATIBLE_MACHINE_class-target = "(mxs|mx5|mx6|mx7|vf|use-mainline-bsp)" 30COMPATIBLE_MACHINE:class-target = "(mxs|mx5|mx6|mx7|vf|use-mainline-bsp)"
31 31
32BBCLASSEXTEND = "native nativesdk" 32BBCLASSEXTEND = "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
17BOOT_TOOLS = "imx-boot-tools" 17BOOT_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.
51do_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
72PACKAGE_ARCH = "${MACHINE_ARCH}" 30PACKAGE_ARCH = "${MACHINE_ARCH}"
73COMPATIBLE_MACHINE = "(mxs|mx5|mx6|mx7|vf|use-mainline-bsp)" 31COMPATIBLE_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
5FILESEXTRAPATHS_prepend := "${THISDIR}/u-boot-imx:" 5FILESEXTRAPATHS:prepend := "${THISDIR}/u-boot-imx:"
6 6
7require u-boot-imx_${PV}.bb 7require u-boot-imx_${PV}.bb
8require u-boot-mfgtool.inc 8require 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
8PROVIDES += "u-boot" 8PROVIDES += "u-boot"
9 9
10do_deploy_append_mx8m() { 10do_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
20S = "${WORKDIR}/git" 20S = "${WORKDIR}/git"
21B = "${WORKDIR}/build" 21B = "${WORKDIR}/build"
22PV_append = "+fslgit" 22PV:append = "+fslgit"
23LOCALVERSION = "+fsl" 23LOCALVERSION = "+fsl"
24 24
25INHIBIT_DEFAULT_DEPS = "1" 25INHIBIT_DEFAULT_DEPS = "1"
26DEPENDS = "libgcc virtual/${TARGET_PREFIX}gcc bison-native bc-native swig-native python3-native" 26DEPENDS = "libgcc virtual/${TARGET_PREFIX}gcc bison-native bc-native swig-native python3-native"
27DEPENDS_append_qoriq-arm64 = " dtc-native" 27DEPENDS:append:qoriq-arm64 = " dtc-native"
28DEPENDS_append_qoriq-arm = " dtc-native" 28DEPENDS:append:qoriq-arm = " dtc-native"
29DEPENDS_append_qoriq-ppc = " boot-format-native" 29DEPENDS:append:qoriq-ppc = " boot-format-native"
30 30
31python () { 31python () {
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
66EXTRA_OEMAKE += 'HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}"' 66EXTRA_OEMAKE += 'HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}"'
67EXTRA_OEMAKE += 'STAGING_INCDIR=${STAGING_INCDIR_NATIVE} STAGING_LIBDIR=${STAGING_LIBDIR_NATIVE}' 67EXTRA_OEMAKE += 'STAGING_INCDIR=${STAGING_INCDIR_NATIVE} STAGING_LIBDIR=${STAGING_LIBDIR_NATIVE}'
68 68
69do_compile_append_qoriq() { 69do_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
96PACKAGES += "${PN}-images" 96PACKAGES += "${PN}-images"
97FILES_${PN}-images += "/boot" 97FILES:${PN}-images += "/boot"
98COMPATIBLE_MACHINE = "(qoriq)" 98COMPATIBLE_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 () {
28addtask deploy before do_build after do_install 28addtask deploy before do_build after do_install
29 29
30PACKAGES += "${PN}-image" 30PACKAGES += "${PN}-image"
31FILES_${PN}-image += "/uefi/*" 31FILES:${PN}-image += "/uefi/*"
32 32
33PACKAGE_ARCH = "${MACHINE_SOCARCH}" 33PACKAGE_ARCH = "${MACHINE_SOCARCH}"
34 34