Skip to content

Commit 18c49f6

Browse files
authored
Merge pull request #2405 from tq-steina/backport-2402-to-styhead
imx-oei: split recipe
2 parents 4c1e2ce + 23678ec commit 18c49f6

File tree

2 files changed

+59
-52
lines changed

2 files changed

+59
-52
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
INHIBIT_DEFAULT_DEPS = "1"
2+
DEPENDS = "gcc-arm-none-eabi-native"
3+
4+
S = "${WORKDIR}/git"
5+
6+
inherit deploy
7+
8+
PACKAGE_ARCH = "${MACHINE_ARCH}"
9+
10+
OEI_CONFIGS ?= "UNDEFINED"
11+
OEI_CORE ?= "UNDEFINED"
12+
OEI_SOC ?= "UNDEFINED"
13+
OEI_BOARD ?= "UNDEFINED"
14+
15+
LDFLAGS[unexport] = "1"
16+
17+
EXTRA_OEMAKE = "\
18+
board=${OEI_BOARD} \
19+
DEBUG=1 \
20+
OEI_CROSS_COMPILE=arm-none-eabi-"
21+
22+
do_configure() {
23+
for oei_config in ${OEI_CONFIGS}; do
24+
oe_runmake clean oei=$oei_config
25+
done
26+
}
27+
28+
do_compile() {
29+
for oei_config in ${OEI_CONFIGS}; do
30+
oe_runmake oei=$oei_config
31+
done
32+
}
33+
34+
do_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+
41+
addtask deploy after do_install
42+
do_deploy() {
43+
cp -rf ${D}/firmware/* ${DEPLOYDIR}/
44+
}
45+
46+
FILES:${PN} = "/firmware"
47+
SYSROOT_DIRS += "/firmware"
48+
49+
PROVIDES += "virtual/imx-oei"
50+
51+
COMPATIBLE_MACHINE = "(mx95-generic-bsp)"
Lines changed: 8 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,17 @@
11
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."
39
LICENSE = "GPL-2.0-only"
410
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=59530bdf33659b29e73d4adb9f9f6552"
511

6-
INHIBIT_DEFAULT_DEPS = "1"
7-
DEPENDS = "gcc-arm-none-eabi-native"
8-
912
SRC_URI = "${IMX_OEI_SRC};branch=${SRCBRANCH}"
1013
IMX_OEI_SRC ?= "git://github.com/nxp-imx/imx-oei.git;protocol=https"
1114
SRCBRANCH = "master"
1215
SRCREV = "1a572a640ef8d6883e8ca39744cd6d2d5dbed678"
1316

14-
S = "${WORKDIR}/git"
15-
16-
inherit deploy
17-
18-
PACKAGE_ARCH = "${MACHINE_ARCH}"
19-
20-
OEI_CONFIGS ?= "UNDEFINED"
21-
OEI_CORE ?= "UNDEFINED"
22-
OEI_SOC ?= "UNDEFINED"
23-
OEI_BOARD ?= "UNDEFINED"
24-
25-
LDFLAGS[unexport] = "1"
26-
27-
EXTRA_OEMAKE = "\
28-
board=${OEI_BOARD} \
29-
DEBUG=1 \
30-
OEI_CROSS_COMPILE=arm-none-eabi-"
31-
32-
do_configure() {
33-
for oei_config in ${OEI_CONFIGS}; do
34-
oe_runmake clean oei=$oei_config
35-
done
36-
}
37-
38-
do_compile() {
39-
for oei_config in ${OEI_CONFIGS}; do
40-
oe_runmake oei=$oei_config
41-
done
42-
}
43-
44-
do_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-
51-
addtask deploy after do_install
52-
do_deploy() {
53-
cp -rf ${D}/firmware/* ${DEPLOYDIR}/
54-
}
55-
56-
FILES:${PN} = "/firmware"
57-
SYSROOT_DIRS += "/firmware"
58-
59-
PROVIDES += "virtual/imx-oei"
60-
61-
COMPATIBLE_MACHINE = "(mx95-generic-bsp)"
17+
require imx-oei.inc

0 commit comments

Comments
 (0)