summaryrefslogtreecommitdiffstats
path: root/dynamic-layers
diff options
context:
space:
mode:
authorErnest Van Hoecke <ernest.vanhoecke@toradex.com>2026-04-28 10:49:18 +0200
committerErnest Van Hoecke <ernest.vanhoecke@toradex.com>2026-04-28 11:28:23 +0200
commit22c1e0107f32763d2dafba4fabf971b1eca6b4da (patch)
treec6fd568785686c988d68d399ec56c56391519e04 /dynamic-layers
parentea5055db4246df04738e6ed0517febc1e25cdea4 (diff)
downloadmeta-freescale-22c1e0107f32763d2dafba4fabf971b1eca6b4da.tar.gz
imx-oei.inc: fix OEI_DEBUG, OEI_DDR_CONFIG and the conditional EXTRA_OEMAKE
In commit 9de33fe48aae ("imx-oei: Update to lf6.18.2-1.0.0"), multiple issues were introduced to imx-oei.inc: - DEBUG was hardcoded to 1, OEI_DEBUG is silently dropped completely - DDR_CONFIG is always passed to make, even when no config is present - The EXTRA_OEMAKE:append:mx95-generic-bsp was changed to mx95-nxp-bsp All of these changes are unrelated to the desired update. This reverts the changes to imx-oei.inc introduced by commit 9de33fe48aaec40f5648c5fa22a4a1782ac74c93. Fixes: 9de33fe48aae ("imx-oei: Update to lf6.18.2-1.0.0") Signed-off-by: Ernest Van Hoecke <ernest.vanhoecke@toradex.com>
Diffstat (limited to 'dynamic-layers')
-rw-r--r--dynamic-layers/arm-toolchain/recipes-bsp/imx-oei/imx-oei.inc31
1 files changed, 16 insertions, 15 deletions
diff --git a/dynamic-layers/arm-toolchain/recipes-bsp/imx-oei/imx-oei.inc b/dynamic-layers/arm-toolchain/recipes-bsp/imx-oei/imx-oei.inc
index 196fb67dc..7c5303066 100644
--- a/dynamic-layers/arm-toolchain/recipes-bsp/imx-oei/imx-oei.inc
+++ b/dynamic-layers/arm-toolchain/recipes-bsp/imx-oei/imx-oei.inc
@@ -11,39 +11,40 @@ PACKAGECONFIG[tcm] = ""
11 11
12PACKAGE_ARCH = "${MACHINE_ARCH}" 12PACKAGE_ARCH = "${MACHINE_ARCH}"
13 13
14OEI_CONFIGS ?= "ddr ${@bb.utils.filter('PACKAGECONFIG', 'tcm', d)}"
14OEI_CORE ?= "UNDEFINED" 15OEI_CORE ?= "UNDEFINED"
15OEI_SOC ?= "UNDEFINED" 16OEI_SOC ?= "UNDEFINED"
16OEI_BOARD ?= "UNDEFINED" 17OEI_BOARD ?= "UNDEFINED"
17OEI_CONFIGS ?= "ddr ${@bb.utils.filter('PACKAGECONFIG', 'tcm', d)}" 18OEI_DDR_CONFIG ?= ""
19OEI_DEBUG ?= "0"
18 20
19LDFLAGS[unexport] = "1" 21LDFLAGS[unexport] = "1"
20 22
21EXTRA_OEMAKE = "\ 23EXTRA_OEMAKE = "\
22 board=${OEI_BOARD} \ 24 board=${OEI_BOARD} \
23 DEBUG=1 \ 25 DEBUG=${OEI_DEBUG} \
24 OEI_CROSS_COMPILE=arm-none-eabi-" 26 OEI_CROSS_COMPILE=arm-none-eabi-"
25 27
26EXTRA_OEMAKE:append:mx95-nxp-bsp = " r=${IMX_SOC_REV}" 28EXTRA_OEMAKE:append:mx95-generic-bsp = " r=${IMX_SOC_REV}"
29
30python () {
31 if 'ecc' in d.getVar('PACKAGECONFIG'):
32 ddr_conf = d.getVar('OEI_DDR_CONFIG_ECC')
33 else:
34 ddr_conf = d.getVar('OEI_DDR_CONFIG')
35 if ddr_conf:
36 d.appendVar('EXTRA_OEMAKE', ' DDR_CONFIG='+ddr_conf)
37}
27 38
28do_configure() { 39do_configure() {
29 if [ "${@bb.utils.filter('PACKAGECONFIG', 'ecc', d)}" ]; then
30 ddr_config=${OEI_DDR_CONFIG_ECC}
31 else
32 ddr_config=${OEI_DDR_CONFIG}
33 fi
34 for oei_config in ${OEI_CONFIGS}; do 40 for oei_config in ${OEI_CONFIGS}; do
35 oe_runmake clean oei=$oei_config DDR_CONFIG=$ddr_config 41 oe_runmake clean oei=$oei_config
36 done 42 done
37} 43}
38 44
39do_compile() { 45do_compile() {
40 if [ "${@bb.utils.filter('PACKAGECONFIG', 'ecc', d)}" ]; then
41 ddr_config=${OEI_DDR_CONFIG_ECC}
42 else
43 ddr_config=${OEI_DDR_CONFIG}
44 fi
45 for oei_config in ${OEI_CONFIGS}; do 46 for oei_config in ${OEI_CONFIGS}; do
46 oe_runmake oei=$oei_config DDR_CONFIG=$ddr_config 47 oe_runmake oei=$oei_config
47 done 48 done
48} 49}
49 50