]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
kernel-uimage.bbclass: Fix up generation of uImage from vmlinux
authorNathan Rossi <nathan@nathanrossi.com>
Fri, 16 Jun 2017 12:38:49 +0000 (22:38 +1000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 23 Jun 2017 10:43:38 +0000 (11:43 +0100)
commite0b4f018d1c2a65e66c81e5be1da8894e9a6c132
treeff3f1913262cf25bb2e3a27c8e28d341aa813ded
parentb3b768536322f3a79fe7f46f62d949fc976a12c7
kernel-uimage.bbclass: Fix up generation of uImage from vmlinux

Fix up the generation of uImage from vmlinux when KEEPUIMAGE != 'yes'.
This fixes up the working directory that do_uboot_mkimage is run from,
such that it is run from the ${B} directory to access built artefacts.

Simplify the logic in the task so that the parse step either adds the
task or not if the conditions are met. This reduces the need for the
task to run in cases when it is not used. The task is also changed to
depend on the kernel_link_images task as arch/<arch>/boot/* is not
available until after kernel_link_images in certain cases (e.g.
vmlinux/uImage only KERNEL_IMAGETYPES).

Fix up the use of ${S}/vmlinux when pulling the entry symbols
address so that it accesses the vmlinux in ${B}.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/kernel-uimage.bbclass