]> code.ossystems Code Review - openembedded-core.git/commitdiff
meta: classes: Add building dir to uImage creation
authorMylène Josserand <mylene.josserand@free-electrons.com>
Wed, 12 Apr 2017 20:03:08 +0000 (22:03 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 12 Apr 2017 22:55:53 +0000 (23:55 +0100)
On the do_uboot_mkimage task from kernel-uimage.bbclass, in case
KEEPUIMAGE is different than the default "yes" value, the uboot-mkimage
command fails because the path of the created uImage does not exist.

On this task, we are under the BUILDDIR so there is no folder arch/<ARCH>/boot.
Add the ${B} (for kernel build directory) as prefix to this folder fixes the problem.

Signed-off-by: Mylène Josserand <mylene.josserand@free-electrons.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel-uimage.bbclass

index e2e9b631105b5093e1da1f867d5a5412ddf96019..19c6ade507884aa68daff98d15e610f0074a3e31 100644 (file)
@@ -28,7 +28,7 @@ do_uboot_mkimage() {
                                        awk '$3=="${UBOOT_ENTRYSYMBOL}" {print $1}'`
                        fi
 
-                       uboot-mkimage -A ${UBOOT_ARCH} -O linux -T kernel -C "${linux_comp}" -a ${UBOOT_LOADADDRESS} -e $ENTRYPOINT -n "${DISTRO_NAME}/${PV}/${MACHINE}" -d linux.bin arch/${ARCH}/boot/uImage
+                       uboot-mkimage -A ${UBOOT_ARCH} -O linux -T kernel -C "${linux_comp}" -a ${UBOOT_LOADADDRESS} -e $ENTRYPOINT -n "${DISTRO_NAME}/${PV}/${MACHINE}" -d linux.bin ${B}/arch/${ARCH}/boot/uImage
                        rm -f linux.bin
                fi
        fi