]> code.ossystems Code Review - meta-freescale.git/commitdiff
atf: Fix the build on machines that don't support UEFI
authorAlban Bedel <alban.bedel@avionic-design.de>
Tue, 25 Jun 2019 09:44:57 +0000 (11:44 +0200)
committerOtavio Salvador <otavio@ossystems.com.br>
Thu, 27 Jun 2019 19:54:11 +0000 (16:54 -0300)
The uefi package silently build nothing on machines that are not
supported. On machines without UEFI support this lead to a build
failure in atf as it always try to build fip_uefi.bin. Fix the
compile step to only build fip_uefi.bin if there is an UEFI image.

Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
recipes-bsp/atf/atf_git.bb

index 6583be84a78ff07a0b7e7491cbf2b8bef14781dd..2f8a38a0c8be2beb3782508884077197c52ef0db 100644 (file)
@@ -125,7 +125,7 @@ do_compile() {
                         cp -r ${S}/build/ls1012afrwy_512mb/release/fuse_fip.bin ${S}/fuse_fip_512mb.bin
                     fi
                 fi
-                if [ -n "${uefiboot}" ]; then
+                if [ -n "${uefiboot}" -a -f "${DEPLOY_DIR_IMAGE}/uefi/${PLATFORM}/${uefiboot}" ]; then
                     oe_runmake V=1 -C ${S} realclean
                     oe_runmake V=1 -C ${S} all fip pbl PLAT=${PLATFORM} BOOT_MODE=${d} RCW=${DEPLOY_DIR_IMAGE}/rcw/${PLATFORM}/${rcwimg} BL33=${DEPLOY_DIR_IMAGE}/uefi/${PLATFORM}/${uefiboot} ${bl32opt} ${spdopt} ${secureopt} ${fuseopt}
                     cp -r ${S}/build/${PLATFORM}/release/fip.bin ${S}/fip_uefi.bin