mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-05-06 16:48:54 +00:00
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 <ross.burton@arm.com> Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
@@ -43,25 +43,7 @@ do_install() {
|
|||||||
cd ${B}/${HAFNIUM_PLATFORM}_clang
|
cd ${B}/${HAFNIUM_PLATFORM}_clang
|
||||||
install -d -m 755 ${D}/firmware
|
install -d -m 755 ${D}/firmware
|
||||||
for bldfile in ${HAFNIUM_INSTALL_TARGET}; do
|
for bldfile in ${HAFNIUM_INSTALL_TARGET}; do
|
||||||
processed="0"
|
install -m 0755 $bldfile.bin $bldfile.elf ${D}/firmware/
|
||||||
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
|
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user