meta-imx/meta-imx-bsp/recipes-bsp/imx-oei/imx-oei_1.0.0.bb
Tom Hochstein 361a4e29c5 imx-oei: Align with upstream
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
2024-09-14 09:30:33 -05:00

60 lines
1.3 KiB
BlitzBasic

SUMMARY = "i.MX Optional Execution Image"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b66f32a90f9577a5a3255c21d79bc619"
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 = "5fca9f47544d03c52ca371eadfffbfd2454e6925"
S = "${WORKDIR}/git"
inherit deploy
PACKAGE_ARCH = "${MACHINE_ARCH}"
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)"