Hi Drew,
On Thu, Feb 25, 2021 at 12:00:47PM -0500, Drew Moseley wrote:
> Hello,
>
> I'm having difficulty using "bitbake -c devshell virtual/kernel" to
> build dtb files properly. In our case, we set "DTC_FLAGS=-@" in recipe
> metadata to ensure device tree overlay support is available. It all
> works fine when run as a standard build. In the devshell, that variable
> is not respected by default. I do see that there is an EXTRA_OEMAKE
> environment variable with HOSTCC, HOSTCPP and DTC_FLAGS set but when I
> try to invoke "make ${EXTRA_OEMAKE} dtbs" it gets a weird argument
> parsing error presumably due to shell globbing, quotation mark
> processing etc:
>
> # make ${EXTRA_OEMAKE} dtbs
> make: invalid option -- 'y'
> make: invalid option -- '/'
> make: invalid option -- '/'
> make: invalid option -- '/'
> make: invalid option -- 'E'
> make: invalid option -- '"'
> Usage: make [options] [target] ...
>
> If I manually copy/paste the value of EXTRA_OEMAKE onto my make
> invocation it works. If I just add the DTC_FLAGS it also works (ie "make
> DTC_FLAGS=-@ dtbs").
>
> Is there a better mechanism for handling this?
>
There's a recent patch for this:
https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/meta/classes/kernel-devicetree.bbclass?id=ff036cbb77124867a6c6f97ca206b4fd3ee00c70
Reading the commit log, it seems you could use KERNEL_EXTRA_ARGS right
now.
Cheers,
Quentin
--
StreamUnlimited Engineering GmbH
High Tech Campus Vienna, Gutheil-Schoder-Gasse 10, 1100 Vienna, Austria
Fax: +43 1 667 20 02 4401
[email protected], www.streamunlimited.com
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#148608):
https://lists.openembedded.org/g/openembedded-core/message/148608
Mute This Topic: https://lists.openembedded.org/mt/80906597/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-