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?


Drew



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#148607): 
https://lists.openembedded.org/g/openembedded-core/message/148607
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]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to