On 20 December 2017 at 12:19, Mircea Gliga <[email protected]> wrote:

>
> Let's put it the other way around. Does anyone know a recipe that uses an
> shell script to build something (which must set the environment correctly
> and call make itself) ?
>

I can't see the difficulty.  Tasks are shell scripts by default, and you've
an external script that needs to be passed arguments to build correctly.
Pass those arguments in your do_compile when running the script.

Almost every recipe contains this pattern at some point. Concrete example:
in autotools.bbclass, do_configure sets a number of environment variables
(eg CC_FOR_BUILD and CACHED_CONFIGUREVARS) and then calls an external shell
script (configure) with arguments set in bitbake variables (such as
EXTRA_OECONF).

Ross
-- 
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to