summaryrefslogtreecommitdiffstats
path: root/dynamic-layers
diff options
context:
space:
mode:
authorErnest Van Hoecke <ernest.vanhoecke@toradex.com>2026-03-03 09:45:28 +0100
committerErnest Van Hoecke <ernest.vanhoecke@toradex.com>2026-03-03 10:18:11 +0100
commit7c5e50fcdd6738dc467a3fc133b8b47d0d4c4811 (patch)
tree6f289762202f7d0c533bb9a8dd388adf73540ed6 /dynamic-layers
parent806c3927ff0d319047cbad581df2bb59f7de3a43 (diff)
downloadmeta-freescale-7c5e50fcdd6738dc467a3fc133b8b47d0d4c4811.tar.gz
imx-oei: only pass a non-empty DDR_CONFIG to EXTRA_OEMAKE
Commit 6ff67d5c ("imx-oei.inc: Use PACKAGECONFIG support of ecc and tcm") started always passing DDR_CONFIG to EXTRA_OEMAKE. Its value depends on PACKAGECONFIG, either passing in OEI_DDRCONFIG_ECC or OEI_DDRCONFIG. However, OEI_DDRCONFIG and/or OEI_DDRCONFIG_ECC are not necessarily present. When they are not, an empty DDR_CONFIG is passed to make, which prevents imx-oei from using its default value for this. Make the passing of DDR_CONFIG conditional on the existence of OEI_DDRCONFIG(_ECC) again. Fixes: 6ff67d5c ("imx-oei.inc: Use PACKAGECONFIG support of ecc and tcm") 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.inc10
1 files changed, 9 insertions, 1 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 a54105e57..d46080553 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
@@ -22,12 +22,20 @@ LDFLAGS[unexport] = "1"
22 22
23EXTRA_OEMAKE = "\ 23EXTRA_OEMAKE = "\
24 board=${OEI_BOARD} \ 24 board=${OEI_BOARD} \
25 DDR_CONFIG=${@bb.utils.contains('PACKAGECONFIG', 'ecc', '${OEI_DDRCONFIG_ECC}', '${OEI_DDRCONFIG}', d)} \
26 DEBUG=${OEI_DEBUG} \ 25 DEBUG=${OEI_DEBUG} \
27 OEI_CROSS_COMPILE=arm-none-eabi-" 26 OEI_CROSS_COMPILE=arm-none-eabi-"
28 27
29EXTRA_OEMAKE:append:mx95-generic-bsp = " r=${IMX_SOC_REV}" 28EXTRA_OEMAKE:append:mx95-generic-bsp = " r=${IMX_SOC_REV}"
30 29
30python () {
31 if 'ecc' in d.getVar('PACKAGECONFIG'):
32 ddr_conf = d.getVar('OEI_DDRCONFIG_ECC')
33 else:
34 ddr_conf = d.getVar('OEI_DDRCONFIG')
35 if ddr_conf:
36 d.appendVar('EXTRA_OEMAKE', ' DDR_CONFIG='+ddr_conf)
37}
38
31do_configure() { 39do_configure() {
32 for oei_config in ${OEI_CONFIGS}; do 40 for oei_config in ${OEI_CONFIGS}; do
33 oe_runmake clean oei=$oei_config 41 oe_runmake clean oei=$oei_config