summaryrefslogtreecommitdiffstats
path: root/dynamic-layers/arm-toolchain/recipes-bsp/imx-oei/imx-oei.inc
diff options
context:
space:
mode:
Diffstat (limited to 'dynamic-layers/arm-toolchain/recipes-bsp/imx-oei/imx-oei.inc')
-rw-r--r--dynamic-layers/arm-toolchain/recipes-bsp/imx-oei/imx-oei.inc22
1 files changed, 18 insertions, 4 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 0fce6af1a..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
@@ -3,13 +3,19 @@ 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"
12OEI_DDRCONFIG ?= "" 18OEI_DDR_CONFIG ?= ""
13OEI_DEBUG ?= "0" 19OEI_DEBUG ?= "0"
14 20
15LDFLAGS[unexport] = "1" 21LDFLAGS[unexport] = "1"
@@ -20,7 +26,15 @@ EXTRA_OEMAKE = "\
20 OEI_CROSS_COMPILE=arm-none-eabi-" 26 OEI_CROSS_COMPILE=arm-none-eabi-"
21 27
22EXTRA_OEMAKE:append:mx95-generic-bsp = " r=${IMX_SOC_REV}" 28EXTRA_OEMAKE:append:mx95-generic-bsp = " r=${IMX_SOC_REV}"
23EXTRA_OEMAKE:append = " ${@' DDR_CONFIG=${OEI_DDRCONFIG}' if d.getVar('OEI_DDRCONFIG') else ''}" 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}
24 38
25do_configure() { 39do_configure() {
26 for oei_config in ${OEI_CONFIGS}; do 40 for oei_config in ${OEI_CONFIGS}; do
@@ -51,4 +65,4 @@ SYSROOT_DIRS += "/firmware"
51 65
52PROVIDES += "virtual/imx-oei" 66PROVIDES += "virtual/imx-oei"
53 67
54COMPATIBLE_MACHINE = "(mx95-generic-bsp)" 68COMPATIBLE_MACHINE = "(mx95-generic-bsp|mx943-generic-bsp)"