[OE-core] [PATCH 2/2] kernel.bbclass: Call make with correct variables in kernelscripts_sstate_postinst

Mike Crowe mac at mcrowe.com
Tue Nov 19 17:49:44 UTC 2013


On Tuesday 19 November 2013 at 12:41:40 -0500, Bruce Ashfield wrote:
> On Tue, Nov 19, 2013 at 12:37 PM, Mike Crowe <mac at 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.

Well, for us v2.6.39 appears to be using the target compiler for
something. At least, I get a lot of:

 DEBUG: Executing shell function kernelscripts_sstate_postinst
 NOTE: make scripts
 /bin/sh: mipsel-oe-linux-gcc: command not found
 /bin/sh: mipsel-oe-linux-gcc: command not found
 /bin/sh: mipsel-oe-linux-gcc: command not found
 /bin/sh: mipsel-oe-linux-gcc: command not found
 make: mipsel-oe-linux-gcc: Command not found
 /bin/sh: mipsel-oe-linux-gcc: command not found
 /bin/sh: mipsel-oe-linux-gcc: command not found

which led me to the previous patch to ensure that the compiler is
available.

Thanks.

Mike.



More information about the Openembedded-core mailing list