[yocto] call custom sh script in do_compile

Burton, Ross ross.burton at intel.com
Wed Dec 20 01:20:11 PST 2017


On 20 December 2017 at 09:08, Mircea Gliga <mircea.gliga at vitheia.com> wrote:

> Hello
>
> I have a build.sh script used to build outside yocto, after sourcing the
> build environment.
> I want to use the same build.sh script inside the recipe, in the
> do_compile task, something like:
>
> do_compile () {
>
>  ./build.sh ${MACHINE}
> }
>
> The build.sh script eventually calls make for several targets, release
> debug etc...
> The idea with this script is to be used both inside yocto and outside
> (after sourcing
> build/tmp/environment-setup-cortexa5hf-neon-poky-linux-gnueabi), by
> reusing the code.
>
> What is the proper way to use a custom shell script to build things ?
> How to pass info from oe_runmake/EXTRA_OEMAKE ?
>

This depends on how build.sh expects to be given extra make arguments.

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20171220/656ef7bf/attachment.html>


More information about the yocto mailing list