Patchwork [1/2] kernel.bbclass: Ensure compiler is available for do_populate_sysroot_setscene

login
register
mail settings
Submitter Mike Crowe
Date Nov. 19, 2013, 5:37 p.m.
Message ID <1384882665-26840-1-git-send-email-mac@mcrowe.com>
Download mbox | patch
Permalink /patch/61979/
State New
Headers show

Comments

Mike Crowe - Nov. 19, 2013, 5:37 p.m.
kernelscripts_sstate_postinst uses the compiler (and therefore binutils) to
generate the kernel scripts so it must declare a dependency on them. The
ones in DEPENDS don't apply to do_populate_sysroot_setscene.

Signed-off-by: Mike Crowe <mac@mcrowe.com>
---
 meta/classes/kernel.bbclass |    2 ++
 1 file changed, 2 insertions(+)
Bruce Ashfield - Nov. 19, 2013, 5:47 p.m.
On Tue, Nov 19, 2013 at 12:37 PM, Mike Crowe <mac@mcrowe.com> wrote:
> kernelscripts_sstate_postinst uses the compiler (and therefore binutils) to
> generate the kernel scripts so it must declare a dependency on them. The
> ones in DEPENDS don't apply to do_populate_sysroot_setscene.
>
> Signed-off-by: Mike Crowe <mac@mcrowe.com>
> ---
>  meta/classes/kernel.bbclass |    2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
> index 6959aa1..2fad6e0 100644
> --- a/meta/classes/kernel.bbclass
> +++ b/meta/classes/kernel.bbclass
> @@ -312,6 +312,8 @@ kernelscripts_sstate_postinst () {
>         fi
>  }
>
> +do_populate_sysroot_setscene[depends] += "virtual/${TARGET_PREFIX}gcc:do_populate_sysroot virtual/${TARGET_PREFIX}binutils:do_populate_sysroot"

This makes sense, we have a bug about this that I was never able to
reproduce:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=5390

Bruce

> +
>  python sysroot_stage_all () {
>      oe.path.copyhardlinktree(d.expand("${D}${KERNEL_SRC_PATH}"), d.expand("${SYSROOT_DESTDIR}${KERNEL_SRC_PATH}"))
>  }
> --
> 1.7.10.4
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core

Patch

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 6959aa1..2fad6e0 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -312,6 +312,8 @@  kernelscripts_sstate_postinst () {
 	fi
 }
 
+do_populate_sysroot_setscene[depends] += "virtual/${TARGET_PREFIX}gcc:do_populate_sysroot virtual/${TARGET_PREFIX}binutils:do_populate_sysroot"
+
 python sysroot_stage_all () {
     oe.path.copyhardlinktree(d.expand("${D}${KERNEL_SRC_PATH}"), d.expand("${SYSROOT_DESTDIR}${KERNEL_SRC_PATH}"))
 }