INSTALL: drop $ROOT, convert to absolute path

This commit is contained in:
MilhouseVH 2017-02-17 06:40:16 +00:00
parent 7c98d2b83c
commit 310e937a08

View File

@ -423,8 +423,8 @@ if [ "$1" = "release" -o "$1" = "mkimage" -o "$1" = "amlpkg" -o "$1" = "noobs" ]
fi
# copy device tree image if any
if [ -f "$ROOT/$INSTALL/usr/share/bootloader/dtb.img" ]; then
cp "$ROOT/$INSTALL/usr/share/bootloader/dtb.img" .
if [ -f "$INSTALL/usr/share/bootloader/dtb.img" ]; then
cp "$INSTALL/usr/share/bootloader/dtb.img" .
fi
zip -q $TARGET_IMG/$IMAGE_NAME.zip *