[OE-core] how to load cmake args from git?

Burton, Ross ross.burton at intel.com
Fri Jun 23 12:53:05 UTC 2017


On 23 June 2017 at 11:57, Adam Trhon <adam.trhon at tbs-biometrics.com> wrote:

> According to documentation, this is expanded during recipe parsing. At
> that time ${S}/oe_arguments.txt does not yet exits (it exists only after
> do_unpack). I tried it and the build failed with python Exception:
> FileNotFound.
>

Yes, good point. In m defence it was late. :)


> I tried
>
> python do_setup_extra_oecmake() {
>     d.appendVar("EXTRA_OECMAKE", " " + open(d.expand("${S}/oe_
> arguments.txt")).read())
>     print("adding "+d.expand("${S}/oe_arguments.txt"))
> }
>
> addtask do_setup_extra_oecmake after do_unpack before do_configure
>
> but it did not work as well. The "adding.... " line is printed
> correctly in log.do_setup_extra_oecmake, the file exists, but the
> arguments in it are not used (I checked run.do_configure).
>

Have a look at log.do_configure and verify what options are being passed.
I'm also assuming that you're using the cmake class here.

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20170623/5b60cd88/attachment-0002.html>


More information about the Openembedded-core mailing list