mkimage: dont copy missing files

This commit is contained in:
Stefan Saraev 2015-01-13 12:00:20 +02:00 committed by Stephan Raue
parent 4efcece54f
commit d815596348

View File

@ -242,10 +242,14 @@ elif [ "$BOOTLOADER" = "u-boot" ]; then
echo "image: copying files to part1..."
cp $TARGET_IMG/$IMAGE_NAME.kernel "$OE_TMP/KERNEL"
cp $TARGET_IMG/$IMAGE_NAME.system "$OE_TMP/SYSTEM"
cp $RELEASE_DIR/3rdparty/bootloader/u-boot.img "$OE_TMP"
if [ -f $RELEASE_DIR/3rdparty/bootloader/u-boot.img ] ; then
cp $RELEASE_DIR/3rdparty/bootloader/u-boot.img "$OE_TMP"
fi
for dtb in $(ls $RELEASE_DIR/3rdparty/bootloader/*.dtb) ; do
cp "$dtb" "$OE_TMP"
for dtb in $RELEASE_DIR/3rdparty/bootloader/*.dtb ; do
if [ -f $dtb ] ; then
cp "$dtb" "$OE_TMP"
fi
done
fi # bootloader