summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2025-11-03 09:22:01 -0300
committerGitHub <noreply@github.com>2025-11-03 09:22:01 -0300
commit18c49f6e887bd6b7c5a234ae71fe432e44264cb3 (patch)
tree89ebb88f4d2509bd4ccf411d10c0db7e84773302
parent4c1e2ce54ff15d2dc422caa5d33c344ee1898db9 (diff)
parent23678ec66bcef03b9059fad6046635fdb5324005 (diff)
downloadmeta-freescale-18c49f6e887bd6b7c5a234ae71fe432e44264cb3.tar.gz
Merge pull request #2405 from tq-steina/backport-2402-to-styhead
imx-oei: split recipe
-rw-r--r--dynamic-layers/arm-toolchain/recipes-bsp/imx-oei/imx-oei.inc51
-rw-r--r--dynamic-layers/arm-toolchain/recipes-bsp/imx-oei/imx-oei_1.0.0.bb60
2 files changed, 59 insertions, 52 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..6d2b5104a
--- /dev/null
+++ b/dynamic-layers/arm-toolchain/recipes-bsp/imx-oei/imx-oei.inc
@@ -0,0 +1,51 @@
1INHIBIT_DEFAULT_DEPS = "1"
2DEPENDS = "gcc-arm-none-eabi-native"
3
4S = "${WORKDIR}/git"
5
6inherit deploy
7
8PACKAGE_ARCH = "${MACHINE_ARCH}"
9
10OEI_CONFIGS ?= "UNDEFINED"
11OEI_CORE ?= "UNDEFINED"
12OEI_SOC ?= "UNDEFINED"
13OEI_BOARD ?= "UNDEFINED"
14
15LDFLAGS[unexport] = "1"
16
17EXTRA_OEMAKE = "\
18 board=${OEI_BOARD} \
19 DEBUG=1 \
20 OEI_CROSS_COMPILE=arm-none-eabi-"
21
22do_configure() {
23 for oei_config in ${OEI_CONFIGS}; do
24 oe_runmake clean oei=$oei_config
25 done
26}
27
28do_compile() {
29 for oei_config in ${OEI_CONFIGS}; do
30 oe_runmake oei=$oei_config
31 done
32}
33
34do_install() {
35 install -d ${D}/firmware
36 for oei_config in ${OEI_CONFIGS}; do
37 install -m 0644 ${B}/build/${OEI_BOARD}/$oei_config/oei-*.bin ${D}/firmware
38 done
39}
40
41addtask deploy after do_install
42do_deploy() {
43 cp -rf ${D}/firmware/* ${DEPLOYDIR}/
44}
45
46FILES:${PN} = "/firmware"
47SYSROOT_DIRS += "/firmware"
48
49PROVIDES += "virtual/imx-oei"
50
51COMPATIBLE_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 d07138758..247955a96 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,61 +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 = "GPL-2.0-only" 9LICENSE = "GPL-2.0-only"
4LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=59530bdf33659b29e73d4adb9f9f6552" 10LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=59530bdf33659b29e73d4adb9f9f6552"
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 = "1a572a640ef8d6883e8ca39744cd6d2d5dbed678" 15SRCREV = "1a572a640ef8d6883e8ca39744cd6d2d5dbed678"
13 16
14S = "${WORKDIR}/git" 17require imx-oei.inc
15
16inherit deploy
17
18PACKAGE_ARCH = "${MACHINE_ARCH}"
19
20OEI_CONFIGS ?= "UNDEFINED"
21OEI_CORE ?= "UNDEFINED"
22OEI_SOC ?= "UNDEFINED"
23OEI_BOARD ?= "UNDEFINED"
24
25LDFLAGS[unexport] = "1"
26
27EXTRA_OEMAKE = "\
28 board=${OEI_BOARD} \
29 DEBUG=1 \
30 OEI_CROSS_COMPILE=arm-none-eabi-"
31
32do_configure() {
33 for oei_config in ${OEI_CONFIGS}; do
34 oe_runmake clean oei=$oei_config
35 done
36}
37
38do_compile() {
39 for oei_config in ${OEI_CONFIGS}; do
40 oe_runmake oei=$oei_config
41 done
42}
43
44do_install() {
45 install -d ${D}/firmware
46 for oei_config in ${OEI_CONFIGS}; do
47 install -m 0644 ${B}/build/${OEI_BOARD}/$oei_config/oei-*.bin ${D}/firmware
48 done
49}
50
51addtask deploy after do_install
52do_deploy() {
53 cp -rf ${D}/firmware/* ${DEPLOYDIR}/
54}
55
56FILES:${PN} = "/firmware"
57SYSROOT_DIRS += "/firmware"
58
59PROVIDES += "virtual/imx-oei"
60
61COMPATIBLE_MACHINE = "(mx95-generic-bsp)"