linux: fix copying device tree image for multi-dtb Amlogic targets

After multi-dtb support was introduced, device tree blob name is always dtb.img. We can copy that file to SD card image.
This commit is contained in:
kszaq 2018-01-20 23:11:52 +01:00
parent 55df7f9e1c
commit cd1509ea91

View File

@ -223,8 +223,8 @@ makeinstall_target() {
cp -v $dtb $INSTALL/usr/share/bootloader
fi
done
if [ -d arch/$TARGET_KERNEL_ARCH/boot/dts/amlogic -a -f "arch/$TARGET_KERNEL_ARCH/boot/dts/amlogic/$KERNEL_UBOOT_EXTRA_TARGET" ]; then
cp "arch/$TARGET_KERNEL_ARCH/boot/dts/amlogic/$KERNEL_UBOOT_EXTRA_TARGET" $INSTALL/usr/share/bootloader/dtb.img 2>/dev/null || :
if [ -d arch/$TARGET_KERNEL_ARCH/boot/dts/amlogic -a -f arch/$TARGET_KERNEL_ARCH/boot/dtb.img ]; then
cp arch/$TARGET_KERNEL_ARCH/boot/dtb.img $INSTALL/usr/share/bootloader/dtb.img 2>/dev/null || :
fi
elif [ "$BOOTLOADER" = "bcm2835-bootloader" ]; then
mkdir -p $INSTALL/usr/share/bootloader/overlays