[yocto] call custom sh script in do_compile
Burton, Ross
ross.burton at intel.com
Wed Dec 20 04:24:50 PST 2017
On 20 December 2017 at 12:19, Mircea Gliga <mircea.gliga at vitheia.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20171220/266063d4/attachment.html>
More information about the yocto
mailing list