All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] meta: classes: Add building dir to uImage creation
@ 2017-04-12 20:03 Mylène Josserand
  0 siblings, 0 replies; only message in thread
From: Mylène Josserand @ 2017-04-12 20:03 UTC (permalink / raw)
  To: openembedded-core

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>

diff --git a/meta/classes/kernel-uimage.bbclass b/meta/classes/kernel-uimage.bbclass
index e2e9b63..19c6ade 100644
--- a/meta/classes/kernel-uimage.bbclass
+++ b/meta/classes/kernel-uimage.bbclass
@@ -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
-- 
2.7.4



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-04-12 20:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-12 20:03 [PATCH] meta: classes: Add building dir to uImage creation Mylène Josserand

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.