From dc1a435f007d660e3068703e787c83767525d693 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Mon, 4 Oct 2021 20:56:08 +0100 Subject: [PATCH] arm/hafnium: clean up install Hafnium hard-codes a lot of this logic, so do_install can be simplified. Change-Id: If4f941dff392a6e8d0b7ee9fff68a9836a7fd806 Signed-off-by: Ross Burton Signed-off-by: Jon Mason --- meta-arm/recipes-bsp/hafnium/hafnium_2.5.bb | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/meta-arm/recipes-bsp/hafnium/hafnium_2.5.bb b/meta-arm/recipes-bsp/hafnium/hafnium_2.5.bb index 8b4184b5..bacf684d 100644 --- a/meta-arm/recipes-bsp/hafnium/hafnium_2.5.bb +++ b/meta-arm/recipes-bsp/hafnium/hafnium_2.5.bb @@ -43,25 +43,7 @@ do_install() { cd ${B}/${HAFNIUM_PLATFORM}_clang install -d -m 755 ${D}/firmware for bldfile in ${HAFNIUM_INSTALL_TARGET}; do - processed="0" - if [ -f $bldfile.bin ]; then - echo "Install $bldfile.bin" - install -m 0755 $bldfile.bin \ - ${D}/firmware/$bldfile-${HAFNIUM_PLATFORM}.bin - ln -sf $bldfile-${HAFNIUM_PLATFORM}.bin ${D}/firmware/$bldfile.bin - processed="1" - fi - if [ -f $bldfile.elf ]; then - echo "Install $bldfile.elf" - install -m 0755 $bldfile.elf \ - ${D}/firmware/$bldfile-${HAFNIUM_PLATFORM}.elf - ln -sf $bldfile-${HAFNIUM_PLATFORM}.elf ${D}/firmware/$bldfile.elf - processed="1" - fi - if [ "$processed" = "0" ]; then - bberror "Unsupported HAFNIUM_INSTALL_TARGET target $bldfile" - exit 1 - fi + install -m 0755 $bldfile.bin $bldfile.elf ${D}/firmware/ done }