]> code.ossystems Code Review - openembedded-core.git/commitdiff
boot-directdisk: Make kernel image inclusion conditional.
authorChristian Ziethén <christian.ziethen@linaro.org>
Thu, 23 Jul 2015 14:32:29 +0000 (16:32 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 24 Jul 2015 22:29:41 +0000 (23:29 +0100)
When building for qcow2 and a dummy kernel, avoid installing
a non existing bzImage.

Signed-off-by: Christian Ziethén <christian.ziethen@linaro.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/boot-directdisk.bbclass

index c5765233acc00c8449a745e64ea8c6e4a23ddd0a..e1ec1be53439077b0f5195df69a57073c3ed9d21 100644 (file)
@@ -70,7 +70,9 @@ boot_direct_populate() {
        install -d $dest
 
        # Install bzImage, initrd, and rootfs.img in DEST for all loaders to use.
-       install -m 0644 ${DEPLOY_DIR_IMAGE}/bzImage $dest/vmlinuz
+       if [ -e ${DEPLOY_DIR_IMAGE}/bzImage ]; then
+               install -m 0644 ${DEPLOY_DIR_IMAGE}/bzImage $dest/vmlinuz
+       fi
 
        # initrd is made of concatenation of multiple filesystem images
        if [ -n "${INITRD}" ]; then