On Tue, Nov 19, 2013 at 12:37 PM, Mike Crowe <m...@mcrowe.com> wrote:
> Ensure that the environment variable and command line arguments that are
> used when calling make in kernel_do_compile are used in
> kernelscripts_sstate_postinst.

What issue was this causing for you ? The scripts are native, and hence
should just be using the build machines compiler, linker and don't need
the kernel args.

So I'm not convinced that we need this patch, without seeing a tangible
issue that was triggered.

Bruce

>
> Signed-off-by: Mike Crowe <m...@mcrowe.com>
> ---
>  meta/classes/kernel.bbclass |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
> index 2fad6e0..9d922d6 100644
> --- a/meta/classes/kernel.bbclass
> +++ b/meta/classes/kernel.bbclass
> @@ -304,10 +304,11 @@ do_install[prefuncs] += "package_get_auto_pr"
>
>  SSTATEPOSTINSTFUNCS += "kernelscripts_sstate_postinst"
>  kernelscripts_sstate_postinst () {
> +       unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE
>         if [ "${BB_CURRENTTASK}" = "populate_sysroot" -o "${BB_CURRENTTASK}" 
> = "populate_sysroot_setscene" ]; then
>                 (
>                   cd ${STAGING_KERNEL_DIR}
> -                 oe_runmake scripts
> +                 oe_runmake scripts CC="${KERNEL_CC}" LD="${KERNEL_LD}" 
> ${KERNEL_EXTRA_ARGS}
>                 )
>         fi
>  }
> --
> 1.7.10.4
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to