41 lines
1.2 KiB
BlitzBasic
41 lines
1.2 KiB
BlitzBasic
# Copyright (C) 2016 Freescale Semiconductor
|
|
# Copyright 2017-2018 NXP
|
|
|
|
require imx-mkimage_git.inc
|
|
|
|
DESCRIPTION = "i.MX make image"
|
|
LICENSE = "GPLv2"
|
|
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
|
|
SECTION = "BSP"
|
|
|
|
SRC_URI_append_ccimx8mn = " file://0001-imx8m-soc.mak-preserve-dtbs-after-build.patch"
|
|
|
|
# Beware: applied last to first
|
|
DEBUG_PREFIX_MAP = "-fdebug-prefix-map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR} \
|
|
-fdebug-prefix-map=${STAGING_DIR_HOST}= \
|
|
-fdebug-prefix-map=${STAGING_DIR_NATIVE}= \
|
|
"
|
|
CFLAGS = "-O2 -Wall -std=c99 -I ${STAGING_INCDIR} -L ${STAGING_LIBDIR}"
|
|
|
|
REV_CHIP ?= "B0"
|
|
REV_CHIP_mx8qxpc0 = "C0"
|
|
|
|
do_compile () {
|
|
cd ${S}
|
|
oe_runmake clean
|
|
oe_runmake bin
|
|
oe_runmake -C iMX8M -f soc.mak mkimage_imx8
|
|
oe_runmake -C iMX8QM REV=${REV_CHIP} -f soc.mak imx8qm_dcd.cfg.tmp
|
|
oe_runmake -C iMX8QX REV=${REV_CHIP} -f soc.mak imx8qx_dcd.cfg.tmp
|
|
}
|
|
|
|
do_install () {
|
|
cd ${S}
|
|
install -d ${D}${bindir}
|
|
install -m 0755 iMX8M/mkimage_imx8 ${D}${bindir}/mkimage_imx8m
|
|
install -m 0755 mkimage_imx8 ${D}${bindir}/mkimage_imx8
|
|
}
|
|
|
|
FILES_${PN} = "${bindir}"
|
|
BBCLASSEXTEND = "native nativesdk"
|