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