diff options
Diffstat (limited to 'dynamic-layers')
| -rw-r--r-- | dynamic-layers/arm-toolchain/recipes-bsp/imx-oei/imx-oei.inc | 54 | ||||
| -rw-r--r-- | dynamic-layers/arm-toolchain/recipes-bsp/imx-oei/imx-oei_1.0.0.bb | 62 | 
2 files changed, 62 insertions, 54 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 new file mode 100644 index 000000000..0fce6af1a --- /dev/null +++ b/dynamic-layers/arm-toolchain/recipes-bsp/imx-oei/imx-oei.inc  | |||
| @@ -0,0 +1,54 @@ | |||
| 1 | INHIBIT_DEFAULT_DEPS = "1" | ||
| 2 | DEPENDS = "gcc-arm-none-eabi-native" | ||
| 3 | |||
| 4 | inherit deploy | ||
| 5 | |||
| 6 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 7 | |||
| 8 | OEI_CONFIGS ?= "UNDEFINED" | ||
| 9 | OEI_CORE ?= "UNDEFINED" | ||
| 10 | OEI_SOC ?= "UNDEFINED" | ||
| 11 | OEI_BOARD ?= "UNDEFINED" | ||
| 12 | OEI_DDRCONFIG ?= "" | ||
| 13 | OEI_DEBUG ?= "0" | ||
| 14 | |||
| 15 | LDFLAGS[unexport] = "1" | ||
| 16 | |||
| 17 | EXTRA_OEMAKE = "\ | ||
| 18 | board=${OEI_BOARD} \ | ||
| 19 | DEBUG=${OEI_DEBUG} \ | ||
| 20 | OEI_CROSS_COMPILE=arm-none-eabi-" | ||
| 21 | |||
| 22 | EXTRA_OEMAKE:append:mx95-generic-bsp = " r=${IMX_SOC_REV}" | ||
| 23 | EXTRA_OEMAKE:append = " ${@' DDR_CONFIG=${OEI_DDRCONFIG}' if d.getVar('OEI_DDRCONFIG') else ''}" | ||
| 24 | |||
| 25 | do_configure() { | ||
| 26 | for oei_config in ${OEI_CONFIGS}; do | ||
| 27 | oe_runmake clean oei=$oei_config | ||
| 28 | done | ||
| 29 | } | ||
| 30 | |||
| 31 | do_compile() { | ||
| 32 | for oei_config in ${OEI_CONFIGS}; do | ||
| 33 | oe_runmake oei=$oei_config | ||
| 34 | done | ||
| 35 | } | ||
| 36 | |||
| 37 | do_install() { | ||
| 38 | install -d ${D}/firmware | ||
| 39 | for oei_config in ${OEI_CONFIGS}; do | ||
| 40 | install -m 0644 ${B}/build/${OEI_BOARD}/$oei_config/oei-*.bin ${D}/firmware | ||
| 41 | done | ||
| 42 | } | ||
| 43 | |||
| 44 | addtask deploy after do_install | ||
| 45 | do_deploy() { | ||
| 46 | cp -rf ${D}/firmware/* ${DEPLOYDIR}/ | ||
| 47 | } | ||
| 48 | |||
| 49 | FILES:${PN} = "/firmware" | ||
| 50 | SYSROOT_DIRS += "/firmware" | ||
| 51 | |||
| 52 | PROVIDES += "virtual/imx-oei" | ||
| 53 | |||
| 54 | COMPATIBLE_MACHINE = "(mx95-generic-bsp)" | ||
diff --git a/dynamic-layers/arm-toolchain/recipes-bsp/imx-oei/imx-oei_1.0.0.bb b/dynamic-layers/arm-toolchain/recipes-bsp/imx-oei/imx-oei_1.0.0.bb index 33ec90349..29a58ed08 100644 --- a/dynamic-layers/arm-toolchain/recipes-bsp/imx-oei/imx-oei_1.0.0.bb +++ b/dynamic-layers/arm-toolchain/recipes-bsp/imx-oei/imx-oei_1.0.0.bb  | |||
| @@ -1,63 +1,17 @@ | |||
| 1 | SUMMARY = "i.MX Optional Execution Image" | 1 | SUMMARY = "i.MX Optional Execution Image" | 
| 2 | 2 | DESCRIPTION = "\ | |
| 3 | The Optional Executable Image (OEI) is an optional plugin loaded and executed \ | ||
| 4 | by Cortex-M processor ROM on many NXP i.MX processors. The Cortex-M is the \ | ||
| 5 | boot core, runs the boot ROM which loads the OEI, and then branches to the \ | ||
| 6 | OEI. The OEI then configures some aspects of the hardware such as DDR config, \ | ||
| 7 | init TCM ECC, etc. There could be multiple OEI images in the boot container. \ | ||
| 8 | After execution of OEI, the processor returns to ROM execution." | ||
| 3 | LICENSE = "BSD-3-Clause" | 9 | LICENSE = "BSD-3-Clause" | 
| 4 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b66f32a90f9577a5a3255c21d79bc619" | 10 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b66f32a90f9577a5a3255c21d79bc619" | 
| 5 | 11 | ||
| 6 | INHIBIT_DEFAULT_DEPS = "1" | ||
| 7 | DEPENDS = "gcc-arm-none-eabi-native" | ||
| 8 | |||
| 9 | SRC_URI = "${IMX_OEI_SRC};branch=${SRCBRANCH}" | 12 | SRC_URI = "${IMX_OEI_SRC};branch=${SRCBRANCH}" | 
| 10 | IMX_OEI_SRC ?= "git://github.com/nxp-imx/imx-oei.git;protocol=https" | 13 | IMX_OEI_SRC ?= "git://github.com/nxp-imx/imx-oei.git;protocol=https" | 
| 11 | SRCBRANCH = "master" | 14 | SRCBRANCH = "master" | 
| 12 | SRCREV = "ca91ce798b2f3a2a0bab8c0f835f4bea88c9b080" | 15 | SRCREV = "ca91ce798b2f3a2a0bab8c0f835f4bea88c9b080" | 
| 13 | 16 | ||
| 14 | inherit deploy | 17 | require imx-oei.inc | 
| 15 | |||
| 16 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 17 | |||
| 18 | OEI_CONFIGS ?= "UNDEFINED" | ||
| 19 | OEI_CORE ?= "UNDEFINED" | ||
| 20 | OEI_SOC ?= "UNDEFINED" | ||
| 21 | OEI_BOARD ?= "UNDEFINED" | ||
| 22 | OEI_DDRCONFIG ?= "" | ||
| 23 | |||
| 24 | LDFLAGS[unexport] = "1" | ||
| 25 | |||
| 26 | EXTRA_OEMAKE = "\ | ||
| 27 | board=${OEI_BOARD} \ | ||
| 28 | DEBUG=1 \ | ||
| 29 | OEI_CROSS_COMPILE=arm-none-eabi-" | ||
| 30 | |||
| 31 | EXTRA_OEMAKE:append:mx95-generic-bsp = " r=${IMX_SOC_REV}" | ||
| 32 | EXTRA_OEMAKE:append = " ${@' DDR_CONFIG=${OEI_DDRCONFIG}' if d.getVar('OEI_DDRCONFIG') else ''}" | ||
| 33 | |||
| 34 | do_configure() { | ||
| 35 | for oei_config in ${OEI_CONFIGS}; do | ||
| 36 | oe_runmake clean oei=$oei_config | ||
| 37 | done | ||
| 38 | } | ||
| 39 | |||
| 40 | do_compile() { | ||
| 41 | for oei_config in ${OEI_CONFIGS}; do | ||
| 42 | oe_runmake oei=$oei_config | ||
| 43 | done | ||
| 44 | } | ||
| 45 | |||
| 46 | do_install() { | ||
| 47 | install -d ${D}/firmware | ||
| 48 | for oei_config in ${OEI_CONFIGS}; do | ||
| 49 | install -m 0644 ${B}/build/${OEI_BOARD}/$oei_config/oei-*.bin ${D}/firmware | ||
| 50 | done | ||
| 51 | } | ||
| 52 | |||
| 53 | addtask deploy after do_install | ||
| 54 | do_deploy() { | ||
| 55 | cp -rf ${D}/firmware/* ${DEPLOYDIR}/ | ||
| 56 | } | ||
| 57 | |||
| 58 | FILES:${PN} = "/firmware" | ||
| 59 | SYSROOT_DIRS += "/firmware" | ||
| 60 | |||
| 61 | PROVIDES += "virtual/imx-oei" | ||
| 62 | |||
| 63 | COMPATIBLE_MACHINE = "(mx95-generic-bsp)" | ||
