summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHiago De Franco <hiago.franco@toradex.com>2024-07-27 12:21:01 -0300
committerHiago De Franco <hiago.franco@toradex.com>2024-08-27 14:07:08 -0300
commit94c5a37be31b3943cf7a99c94ae11dd4f5030d04 (patch)
tree67352446a87c9b3d7310398ff0fdb5810538c58e
parentfbff9dd1445a3113fdc94ebc9a3626970f166bd8 (diff)
downloadmeta-freescale-94c5a37be31b3943cf7a99c94ae11dd4f5030d04.tar.gz
recipes-bsp: introduce imx-oei recipe
OEI stands for "Optional Executable Image", it was relased for NXP BSP 6.6.23-2.0.0. The OEI Firmware is required for the i.MX 95 SoC. Signed-off-by: Hiago De Franco <hiago.franco@toradex.com> (cherry picked from commit 61beaf5861f2bde6158788db37a6c1c54c971d1a)
-rw-r--r--recipes-bsp/imx-oei/imx-oei_1.0.0.bb57
1 files changed, 57 insertions, 0 deletions
diff --git a/recipes-bsp/imx-oei/imx-oei_1.0.0.bb b/recipes-bsp/imx-oei/imx-oei_1.0.0.bb
new file mode 100644
index 00000000..a853a803
--- /dev/null
+++ b/recipes-bsp/imx-oei/imx-oei_1.0.0.bb
@@ -0,0 +1,57 @@
1SUMMARY = "i.MX Optional Execution Image"
2
3LICENSE = "GPL-2.0-only"
4LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=59530bdf33659b29e73d4adb9f9f6552"
5
6INHIBIT_DEFAULT_DEPS = "1"
7DEPENDS = "gcc-arm-none-eabi-native"
8
9SRC_URI = "${IMX_OEI_SRC};branch=${SRCBRANCH}"
10IMX_OEI_SRC ?= "git://github.com/nxp-imx/imx-oei.git;protocol=https"
11SRCBRANCH = "master"
12SRCREV = "1a572a640ef8d6883e8ca39744cd6d2d5dbed678"
13
14S = "${WORKDIR}/git"
15
16inherit deploy
17
18OEI_CONFIGS ?= "UNDEFINED"
19OEI_CORE ?= "UNDEFINED"
20OEI_SOC ?= "UNDEFINED"
21OEI_BOARD ?= "UNDEFINED"
22
23LDFLAGS[unexport] = "1"
24
25EXTRA_OEMAKE = "\
26 board=${OEI_BOARD} \
27 DEBUG=1 \
28 OEI_CROSS_COMPILE=arm-none-eabi-"
29
30do_configure() {
31 for oei_config in ${OEI_CONFIGS}; do
32 oe_runmake clean oei=$oei_config
33 done
34}
35
36do_compile() {
37 for oei_config in ${OEI_CONFIGS}; do
38 oe_runmake oei=$oei_config
39 done
40}
41
42do_install() {
43 install -d ${D}/firmware
44 for oei_config in ${OEI_CONFIGS}; do
45 install -m 0644 ${B}/build/${OEI_BOARD}/$oei_config/oei-*.bin ${D}/firmware
46 done
47}
48
49addtask deploy after do_install
50do_deploy() {
51 cp -rf ${D}/firmware/* ${DEPLOYDIR}/
52}
53
54FILES:${PN} = "/firmware"
55SYSROOT_DIRS += "/firmware"
56
57COMPATIBLE_MACHINE = "(mx95-generic-bsp)"