summaryrefslogtreecommitdiffstats
path: root/dynamic-layers
diff options
context:
space:
mode:
authorJun Zhu <junzhu@nxp.com>2026-03-02 16:49:12 +0800
committerJun Zhu <junzhu@nxp.com>2026-03-02 16:50:49 +0800
commit6ff67d5c2207f1b317a2e59f0be514074f52a97e (patch)
tree6fd5f43b43c9c53b68bffe2edff6a6e302f5db89 /dynamic-layers
parent85b3276caea5eee2ce92e1cb25cf524aebada357 (diff)
downloadmeta-freescale-6ff67d5c2207f1b317a2e59f0be514074f52a97e.tar.gz
imx-oei.inc: Use PACKAGECONFIG support of ecc and tcm
Use packageconfig to set different OEI build options: - tcm: enable tcm in OEI_CONFIGS, and set build optin oei=tcm; - ecc: when build option oei=ddr, use DDR ECC enabled timing configure file. Signed-off-by: Jun Zhu <junzhu@nxp.com>
Diffstat (limited to 'dynamic-layers')
-rw-r--r--dynamic-layers/arm-toolchain/recipes-bsp/imx-oei/imx-oei.inc10
1 files changed, 8 insertions, 2 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 b80b9b472..a54105e57 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
@@ -3,9 +3,15 @@ DEPENDS = "gcc-arm-none-eabi-native"
3 3
4inherit deploy 4inherit deploy
5 5
6PACKAGECONFIG ??= " \
7 ${@bb.utils.contains('UBOOT_CONFIG', 'sd-ecc', 'ecc', '', d)}"
8
9PACKAGECONFIG[ecc] = ""
10PACKAGECONFIG[tcm] = ""
11
6PACKAGE_ARCH = "${MACHINE_ARCH}" 12PACKAGE_ARCH = "${MACHINE_ARCH}"
7 13
8OEI_CONFIGS ?= "UNDEFINED" 14OEI_CONFIGS ?= "ddr ${@bb.utils.filter('PACKAGECONFIG', 'tcm', d)}"
9OEI_CORE ?= "UNDEFINED" 15OEI_CORE ?= "UNDEFINED"
10OEI_SOC ?= "UNDEFINED" 16OEI_SOC ?= "UNDEFINED"
11OEI_BOARD ?= "UNDEFINED" 17OEI_BOARD ?= "UNDEFINED"
@@ -16,11 +22,11 @@ LDFLAGS[unexport] = "1"
16 22
17EXTRA_OEMAKE = "\ 23EXTRA_OEMAKE = "\
18 board=${OEI_BOARD} \ 24 board=${OEI_BOARD} \
25 DDR_CONFIG=${@bb.utils.contains('PACKAGECONFIG', 'ecc', '${OEI_DDRCONFIG_ECC}', '${OEI_DDRCONFIG}', d)} \
19 DEBUG=${OEI_DEBUG} \ 26 DEBUG=${OEI_DEBUG} \
20 OEI_CROSS_COMPILE=arm-none-eabi-" 27 OEI_CROSS_COMPILE=arm-none-eabi-"
21 28
22EXTRA_OEMAKE:append:mx95-generic-bsp = " r=${IMX_SOC_REV}" 29EXTRA_OEMAKE:append:mx95-generic-bsp = " r=${IMX_SOC_REV}"
23EXTRA_OEMAKE:append = " ${@' DDR_CONFIG=${OEI_DDRCONFIG}' if d.getVar('OEI_DDRCONFIG') else ''}"
24 30
25do_configure() { 31do_configure() {
26 for oei_config in ${OEI_CONFIGS}; do 32 for oei_config in ${OEI_CONFIGS}; do