-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
1 parent
5a46df3
commit 61beaf5
Showing
1 changed file
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
SUMMARY = "i.MX Optional Execution Image" | ||
|
||
LICENSE = "GPL-2.0-only" | ||
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=59530bdf33659b29e73d4adb9f9f6552" | ||
|
||
INHIBIT_DEFAULT_DEPS = "1" | ||
DEPENDS = "gcc-arm-none-eabi-native" | ||
|
||
SRC_URI = "${IMX_OEI_SRC};branch=${SRCBRANCH}" | ||
IMX_OEI_SRC ?= "git://github.com/nxp-imx/imx-oei.git;protocol=https" | ||
SRCBRANCH = "master" | ||
SRCREV = "1a572a640ef8d6883e8ca39744cd6d2d5dbed678" | ||
|
||
S = "${WORKDIR}/git" | ||
|
||
inherit deploy | ||
|
||
OEI_CONFIGS ?= "UNDEFINED" | ||
OEI_CORE ?= "UNDEFINED" | ||
OEI_SOC ?= "UNDEFINED" | ||
OEI_BOARD ?= "UNDEFINED" | ||
|
||
LDFLAGS[unexport] = "1" | ||
|
||
EXTRA_OEMAKE = "\ | ||
board=${OEI_BOARD} \ | ||
DEBUG=1 \ | ||
OEI_CROSS_COMPILE=arm-none-eabi-" | ||
|
||
do_configure() { | ||
for oei_config in ${OEI_CONFIGS}; do | ||
oe_runmake clean oei=$oei_config | ||
done | ||
} | ||
|
||
do_compile() { | ||
for oei_config in ${OEI_CONFIGS}; do | ||
oe_runmake oei=$oei_config | ||
done | ||
} | ||
|
||
do_install() { | ||
install -d ${D}/firmware | ||
for oei_config in ${OEI_CONFIGS}; do | ||
install -m 0644 ${B}/build/${OEI_BOARD}/$oei_config/oei-*.bin ${D}/firmware | ||
done | ||
} | ||
|
||
addtask deploy after do_install | ||
do_deploy() { | ||
cp -rf ${D}/firmware/* ${DEPLOYDIR}/ | ||
} | ||
|
||
FILES:${PN} = "/firmware" | ||
SYSROOT_DIRS += "/firmware" | ||
|
||
COMPATIBLE_MACHINE = "(mx95-generic-bsp)" |