mirror of
https://github.com/nxp-imx/meta-imx.git
synced 2025-12-14 14:36:02 +01:00
cockpit/imx-atf: Adjust for base recipe simplification
The base recipe design is simplified. Adapt the overrides to the new design, plus move the clean operations to do_configure as is customary. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
This commit is contained in:
parent
be6ceb5c57
commit
6023500372
|
|
@ -1,31 +1,23 @@
|
|||
do_compile:imx8qm-cockpit () {
|
||||
unset ${CLEAR_FLAGS} COCKPIT_A72 LDFLAGS
|
||||
do_configure:imx8qm-cockpit() {
|
||||
oe_runmake clean BUILD_BASE=a53
|
||||
oe_runmake BUILD_BASE=a53 COCKPIT_A53=1 SPD=none bl31
|
||||
unset ${CLEAR_FLAGS} COCKPIT_A53
|
||||
oe_runmake clean BUILD_BASE=a72
|
||||
oe_runmake BUILD_BASE=a72 COCKPIT_A72=1 SPD=none bl31
|
||||
|
||||
if ${BUILD_OPTEE}; then
|
||||
unset ${CLEAR_FLAGS} COCKPIT_A72
|
||||
oe_runmake clean BUILD_BASE=build-optee-a53
|
||||
oe_runmake BUILD_BASE=optee-a53 COCKPIT_A53=1 SPD=opteed bl31
|
||||
|
||||
unset ${CLEAR_FLAGS} COCKPIT_A53
|
||||
oe_runmake clean BUILD_BASE=build-optee-a72
|
||||
oe_runmake BUILD_BASE=optee-a72 COCKPIT_A72=1 SPD=opteed bl31
|
||||
fi
|
||||
}
|
||||
|
||||
do_deploy:imx8qm-cockpit () {
|
||||
do_compile:imx8qm-cockpit() {
|
||||
unset ${CLEAR_FLAGS} COCKPIT_A72 LDFLAGS
|
||||
oe_runmake BUILD_BASE=a53 COCKPIT_A53=1 SPD=none
|
||||
unset ${CLEAR_FLAGS} COCKPIT_A53
|
||||
oe_runmake BUILD_BASE=a72 COCKPIT_A72=1 SPD=none
|
||||
}
|
||||
|
||||
ANNOTATED_NAME:imx8qm-cockpit = "bl31-${ATF_PLATFORM}-cockpit.bin"
|
||||
|
||||
do_deploy:imx8qm-cockpit() {
|
||||
OUTPUT_FOLDER="${@bb.utils.contains('PACKAGECONFIG', 'debug', 'debug', 'release', d)}"
|
||||
for core in a53 a72; do
|
||||
flavors=$core
|
||||
if ${BUILD_OPTEE}; then
|
||||
flavors="$core optee-$core"
|
||||
fi
|
||||
for flavor in $flavors; do
|
||||
install -Dm 0644 ${S}/$flavor/${ATF_PLATFORM}/${OUTPUT_FOLDER}/bl31.bin ${DEPLOYDIR}/bl31-${ATF_PLATFORM}-cockpit.bin-$flavor
|
||||
install -Dm 0644 ${S}/$flavor/${ATF_PLATFORM}/${OUTPUT_FOLDER}/bl31.bin ${DEPLOYDIR}/${BOOT_TOOLS}/bl31-${ATF_PLATFORM}-cockpit.bin-$flavor
|
||||
for deploydir in ${DEPLOYDIR} ${DEPLOYDIR}/imx-boot-tools; do
|
||||
install -Dm 0644 ${S}/$core/${ATF_PLATFORM}/${OUTPUT_FOLDER}/bl31.bin \
|
||||
$deploydir/${ANNOTATED_NAME}-$core
|
||||
done
|
||||
done
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user