6b220a044f
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
10 lines
165 B
Bash
Executable File
10 lines
165 B
Bash
Executable File
#!/bin/bash
|
|
|
|
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
|