]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel: Use KERNEL_IMAGETYPE_FOR_MAKE in do_bundle_initramfs
authorThomas Perrot <thomas.perrot@tupi.fr>
Wed, 17 Jan 2018 09:21:59 +0000 (10:21 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 19 Jan 2018 12:18:03 +0000 (12:18 +0000)
In the case of a fitImage the this step should be done on the
image use to assemble the fitImage.

Signed-off-by: Thomas Perrot <thomas.perrot@tupi.fr>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/kernel.bbclass

index 1ecb840caf471762cfb83e7c6ddd74c186bcfa8c..2f6eca382e99f97273b621843501dff594e57794 100644 (file)
@@ -231,7 +231,7 @@ do_bundle_initramfs () {
                copy_initramfs
                # Backing up kernel image relies on its type(regular file or symbolic link)
                tmp_path=""
-               for type in ${KERNEL_IMAGETYPES} ; do
+               for type in ${KERNEL_IMAGETYPE_FOR_MAKE} ; do
                        if [ -h ${KERNEL_OUTPUT_DIR}/$type ] ; then
                                linkpath=`readlink -n ${KERNEL_OUTPUT_DIR}/$type`
                                realpath=`readlink -fn ${KERNEL_OUTPUT_DIR}/$type`