]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel bbclass: Recreate uImage only when KEEPUIMAGE != "yes"
authorKoen Kooi <koen@dominion.thruhere.net>
Mon, 23 Jul 2012 20:45:30 +0000 (13:45 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 26 Jul 2012 13:39:48 +0000 (14:39 +0100)
The intent of the uImage code in this class includes the following

1) be able to specify custom load addresses without needing to patch the kernel
2) add better information to the uImage description field

The current state is a NOP anyway, the kernel will always build a uImage when you tell it to 'make uImage'.

weakly Set KEEPUIMAGE to 'yes' in default-distrovars.inc which preserve the
current OE-Core behavior. Machines which are being ported from oe.dev and need to
regenerate uImage can set this to be empty

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/kernel.bbclass
meta/conf/distro/include/default-distrovars.inc

index ce4d7de01cb195ed7c78449e556a7df7285f28d4..ab984e3e88d6f2a402ef4ec6a8107c3fff1e8516 100644 (file)
@@ -507,7 +507,7 @@ KERNEL_IMAGE_SYMLINK_NAME ?= "${KERNEL_IMAGETYPE}-${MACHINE}"
 
 do_uboot_mkimage() {
        if test "x${KERNEL_IMAGETYPE}" = "xuImage" ; then 
-               if test ! -e arch/${ARCH}/boot/uImage ; then
+               if test "x${KEEPUIMAGE}" != "xyes" ; then
                        ENTRYPOINT=${UBOOT_ENTRYPOINT}
                        if test -n "${UBOOT_ENTRYSYMBOL}"; then
                                ENTRYPOINT=`${HOST_PREFIX}nm ${S}/vmlinux | \
index f7709196cb8f5ed90a26ca1be3080db305b3d592..ef8232d19c21911451045a3182f6ccf5a6e077bf 100644 (file)
@@ -2,6 +2,7 @@ QA_LOGFILE = "${TMPDIR}/qa.log"
 
 OEINCLUDELOGS ?= "yes"
 KERNEL_CONSOLE ?= "ttyS0"
+KEEPUIMAGE ??= "yes"
 
 PCMCIA_MANAGER ?= "pcmciautils"