diff options
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.inc | 22 |
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 | ||
| 4 | inherit deploy | 4 | inherit deploy |
| 5 | 5 | ||
| 6 | PACKAGECONFIG ??= " \ | ||
| 7 | ${@bb.utils.contains('UBOOT_CONFIG', 'sd-ecc', 'ecc', '', d)}" | ||
| 8 | |||
| 9 | PACKAGECONFIG[ecc] = "" | ||
| 10 | PACKAGECONFIG[tcm] = "" | ||
| 11 | |||
| 6 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 12 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
| 7 | 13 | ||
| 8 | OEI_CONFIGS ?= "UNDEFINED" | 14 | OEI_CONFIGS ?= "ddr ${@bb.utils.filter('PACKAGECONFIG', 'tcm', d)}" |
| 9 | OEI_CORE ?= "UNDEFINED" | 15 | OEI_CORE ?= "UNDEFINED" |
| 10 | OEI_SOC ?= "UNDEFINED" | 16 | OEI_SOC ?= "UNDEFINED" |
| 11 | OEI_BOARD ?= "UNDEFINED" | 17 | OEI_BOARD ?= "UNDEFINED" |
| 12 | OEI_DDRCONFIG ?= "" | 18 | OEI_DDR_CONFIG ?= "" |
| 13 | OEI_DEBUG ?= "0" | 19 | OEI_DEBUG ?= "0" |
| 14 | 20 | ||
| 15 | LDFLAGS[unexport] = "1" | 21 | LDFLAGS[unexport] = "1" |
| @@ -20,7 +26,15 @@ EXTRA_OEMAKE = "\ | |||
| 20 | OEI_CROSS_COMPILE=arm-none-eabi-" | 26 | OEI_CROSS_COMPILE=arm-none-eabi-" |
| 21 | 27 | ||
| 22 | EXTRA_OEMAKE:append:mx95-generic-bsp = " r=${IMX_SOC_REV}" | 28 | EXTRA_OEMAKE:append:mx95-generic-bsp = " r=${IMX_SOC_REV}" |
| 23 | EXTRA_OEMAKE:append = " ${@' DDR_CONFIG=${OEI_DDRCONFIG}' if d.getVar('OEI_DDRCONFIG') else ''}" | 29 | |
| 30 | python () { | ||
| 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 | ||
| 25 | do_configure() { | 39 | do_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 | ||
| 52 | PROVIDES += "virtual/imx-oei" | 66 | PROVIDES += "virtual/imx-oei" |
| 53 | 67 | ||
| 54 | COMPATIBLE_MACHINE = "(mx95-generic-bsp)" | 68 | COMPATIBLE_MACHINE = "(mx95-generic-bsp|mx943-generic-bsp)" |
