From abb036ee56cd58f256df9b46c40c8bc8b5134a93 Mon Sep 17 00:00:00 2001 From: Joshua Watt Date: Wed, 13 May 2020 10:47:07 -0500 Subject: [PATCH] trusted-firmware-a: Install .elf file from subdirectory The ELF files produced are in a subdirectory named by the build target (e.g. "bl31/bl31.elf") instead of the BUILD_PLAT directory. Signed-off-by: Joshua Watt Reviewed-by: Diego Sueiro Signed-off-by: Jon Mason --- .../recipes-bsp/trusted-firmware-a/trusted-firmware-a.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta-arm/recipes-bsp/trusted-firmware-a/trusted-firmware-a.inc b/meta-arm/recipes-bsp/trusted-firmware-a/trusted-firmware-a.inc index febd8ce9..4b5da7af 100644 --- a/meta-arm/recipes-bsp/trusted-firmware-a/trusted-firmware-a.inc +++ b/meta-arm/recipes-bsp/trusted-firmware-a/trusted-firmware-a.inc @@ -110,9 +110,9 @@ do_install() { echo "Install $atfbin.bin" install -m 0644 $BUILD_PLAT/$atfbin.bin \ ${D}/firmware/$atfbin-${TFA_PLATFORM}.bin - elif [ -f $BUILD_PLAT/$atfbin.elf ]; then + elif [ -f $BUILD_PLAT/$atfbin/$atfbin.elf ]; then echo "Install $atfbin.elf" - install -m 0644 $BUILD_PLAT/$atfbin.elf \ + install -m 0644 $BUILD_PLAT/$atfbin/$atfbin.elf \ ${D}/firmware/$atfbin-${TFA_PLATFORM}.elf elif [ -f $BUILD_PLAT/$atfbin ]; then echo "Install $atfbin"