Fix a "No such file or directory" error when $BOOTLOADER = "u-boot" and there are no arch/arm/boot/dts/*.dtb files in Linux kernel build directory

This commit is contained in:
Alex Deryskyba 2014-12-14 10:27:10 +01:00
parent 4801044f3c
commit bdd6412797
2 changed files with 2 additions and 2 deletions

View File

@ -180,7 +180,7 @@ makeinstall_target() {
if [ "$BOOTLOADER" = "u-boot" ]; then
mkdir -p $INSTALL/usr/share/bootloader
for dtb in arch/arm/boot/dts/*.dtb; do
cp $dtb $INSTALL/usr/share/bootloader
cp $dtb $INSTALL/usr/share/bootloader 2>/dev/null || :
done
fi

View File

@ -44,7 +44,7 @@ mkdir -p $RELEASE_DIR/3rdparty/bootloader
fi
for dtb in $BUILD/linux-*/arch/arm/boot/dts/*.dtb; do
cp -PR $dtb $RELEASE_DIR/3rdparty/bootloader
cp -PR $dtb $RELEASE_DIR/3rdparty/bootloader 2>/dev/null || :
done
if [ -f "$PROJECT_DIR/$PROJECT/bootloader/uEnv.txt" ]; then