[OE-core] [PATCH V2] kernel.bbclass: move in addtask kernel_link_images statement from linux-yocto.inc

Andrea Adami andrea.adami at gmail.com
Wed Apr 5 06:47:51 UTC 2017


On Thu, Mar 30, 2017 at 3:20 PM,  <liu.ming50 at gmail.com> wrote:
> From: Ming Liu <peter.x.liu at external.atlascopco.com>
>
> Add kernel_link_images task in kernel.bbclass instead of adding it in
> linux-yocto.inc, or else the recipes inheriting kernel.bbclass might
> run into implicit dependency issues.
>
> Signed-off-by: Ming Liu <peter.x.liu at external.atlascopco.com>
> ---
>  meta/classes/kernel.bbclass               | 1 +
>  meta/recipes-kernel/linux/linux-yocto.inc | 1 -
>  2 files changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
> index 244087a..bc09fba 100644
> --- a/meta/classes/kernel.bbclass
> +++ b/meta/classes/kernel.bbclass
> @@ -538,6 +538,7 @@ do_kernel_link_images() {
>                 ln -sf ../../../vmlinuz.bin
>         fi
>  }
> +addtask kernel_link_images after do_compile before do_strip
>
>  do_strip() {
>         if [ -n "${KERNEL_IMAGE_STRIP_EXTRA_SECTIONS}" ]; then
> diff --git a/meta/recipes-kernel/linux/linux-yocto.inc b/meta/recipes-kernel/linux/linux-yocto.inc
> index 556546f..637506a 100644
> --- a/meta/recipes-kernel/linux/linux-yocto.inc
> +++ b/meta/recipes-kernel/linux/linux-yocto.inc
> @@ -65,6 +65,5 @@ do_install_append(){
>
>  # extra tasks
>  addtask kernel_version_sanity_check after do_kernel_metadata do_kernel_checkout before do_compile
> -addtask kernel_link_images after do_compile before do_strip
>  addtask validate_branches before do_patch after do_kernel_checkout
>  addtask kernel_configcheck after do_configure before do_compile
> --
> 2.7.4
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


Hello,

this patch is useful i.e. when building non-yocto kernels for mips.
In our recipe we add exactly that task.

Cheers
Andrea



More information about the Openembedded-core mailing list