scripts/image: create SD card image wtih amlpkg

This allows creating both images in one shot, saves time.
This commit is contained in:
kszaq 2016-04-06 21:48:53 +02:00
parent cead6d4b5f
commit 62599cd8ba

View File

@ -332,7 +332,7 @@ fi
tar cf $TARGET_IMG/$IMAGE_NAME.tar -C target $IMAGE_NAME
# create image files if requested
if [ "$1" = "mkimage" -a -n "$BOOTLOADER" ]; then
if [[ ( "$1" = "amlpkg" || "$1" = "mkimage" ) && -n "$BOOTLOADER" ]]; then
# projects can set KERNEL_NAME (kernel.img)
if [ -z "$KERNEL_NAME" ] ; then
KERNEL_NAME="KERNEL"