Default name for ramdisks to image.

If you build a ramdisk with ramdisk-image-create and forget to specify
-o, you end up with a .kernel and .initramfs file as the image outputs.
This commit defaults the $IMAGE_NAME value to image so you'd end up
with image.kernel and image.initramfs

Change-Id: I10f3ac9ad178c32119523e4da930070e3ade4f73
This commit is contained in:
James Slagle 2013-12-04 13:45:29 -05:00
parent d7e43c0861
commit 6b220a044f

View File

@ -3,5 +3,7 @@
set -e
set -x
IMAGE_NAME=${IMAGE_NAME:-'image'}
cp $TMP_MOUNT_PATH/tmp/ramdisk $IMAGE_NAME.initramfs
cp $TMP_MOUNT_PATH/tmp/kernel $IMAGE_NAME.kernel