diff --git a/scripts/image b/scripts/image index 31b9754345..56914defe5 100755 --- a/scripts/image +++ b/scripts/image @@ -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"