mirror of
https://github.com/Freescale/meta-freescale-3rdparty.git
synced 2025-07-05 05:15:24 +02:00

To match imx-atf:
https://github.com/Freescale/meta-freescale/blob/master/recipes-bsp/imx-atf/imx-atf_2.8.bb#L29-L33
ad889575ae
also fixes error:
bl31.elf section `coherent_ram' will not fit in region `RAM'
aarch64-poky-linux-ld.bfd: BL31 image has exceeded its limit.
Signed-off-by: Chris Dimich <chris.dimich@boundarydevices.com>
64 lines
1.7 KiB
BlitzBasic
64 lines
1.7 KiB
BlitzBasic
# Copyright (C) 2017-2023 NXP
|
|
|
|
DESCRIPTION = "i.MX ARM Trusted Firmware"
|
|
SECTION = "BSP"
|
|
LICENSE = "BSD-3-Clause"
|
|
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/BSD-3-Clause;md5=550794465ba0ec5312d6919e203a55f9"
|
|
|
|
PROVIDES = "imx-atf"
|
|
|
|
PV .= "+git${SRCPV}"
|
|
|
|
SRCBRANCH = "boundary-lf-6.1.22-2.0.0"
|
|
SRC_URI = "git://github.com/boundarydevices/imx-atf.git;branch=${SRCBRANCH};protocol=https \
|
|
"
|
|
SRCREV = "7e3484cc10bfc9a53c1e64867b3fb99761f7c375"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
inherit deploy
|
|
|
|
BOOT_TOOLS = "imx-boot-tools"
|
|
|
|
ATF_PLATFORM ?= "INVALID"
|
|
ATF_PLATFORM:mx8mq-nxp-bsp = "imx8mq"
|
|
ATF_PLATFORM:mx8mm-nxp-bsp = "imx8mm"
|
|
ATF_PLATFORM:mx8mn-nxp-bsp = "imx8mn"
|
|
ATF_PLATFORM:mx8mp-nxp-bsp = "imx8mp"
|
|
|
|
EXTRA_OEMAKE += " \
|
|
CROSS_COMPILE="${TARGET_PREFIX}" \
|
|
PLAT=${ATF_PLATFORM} \
|
|
"
|
|
|
|
# Let the Makefile handle setting up the CFLAGS and LDFLAGS as it is a standalone application
|
|
CFLAGS[unexport] = "1"
|
|
LDFLAGS[unexport] = "1"
|
|
AS[unexport] = "1"
|
|
LD[unexport] = "1"
|
|
|
|
BUILD_OPTEE = "${@bb.utils.contains('MACHINE_FEATURES', 'optee', 'true', 'false', d)}"
|
|
|
|
do_compile() {
|
|
# Clear LDFLAGS to avoid the option -Wl recognize issue
|
|
unset LDFLAGS
|
|
oe_runmake bl31
|
|
if ${BUILD_OPTEE}; then
|
|
oe_runmake clean BUILD_BASE=build-optee
|
|
oe_runmake BUILD_BASE=build-optee SPD=opteed bl31
|
|
fi
|
|
}
|
|
|
|
do_install[noexec] = "1"
|
|
|
|
do_deploy() {
|
|
install -Dm 0644 ${S}/build/${ATF_PLATFORM}/release/bl31.bin ${DEPLOYDIR}/bl31-${ATF_PLATFORM}.bin
|
|
if ${BUILD_OPTEE}; then
|
|
install -m 0644 ${S}/build-optee/${ATF_PLATFORM}/release/bl31.bin ${DEPLOYDIR}/bl31-${ATF_PLATFORM}.bin-optee
|
|
fi
|
|
}
|
|
addtask deploy after do_compile
|
|
|
|
PACKAGE_ARCH = "${MACHINE_SOCARCH}"
|
|
COMPATIBLE_MACHINE = "(nitrogen8m|nitrogen8mm|nitrogen8mn|nitrogen8mp)"
|