Search code examples
yoctobitbake

Yocto Machine specific variable prepend


Trying to port some of our recipes to a later version of Yocto (thud). Under the previous version we'd been able to do something like this:

DDD += " A1 "
DDD_prepend += " B2 "
DDD_prepend_mymachine += " C3 "

do_compile () {

echo "  DDD ${DDD}

[...]
}

If I built it against "mymachine" I'd get the following:

DDD C3 B2 A1

However in thud it's not prepending the machine specific variable:

DDD B2 A1

What changed and what am I missing?

Thanks!

-Steve


Solution

  • Okay, found it. The recipe that was having the issue had the following line:

        OVERRIDES = "machine:local"
    

    MACHINEOVERRIDES is setting the machine config:

        MACHINEOVERRIDES =. "mymachine:
    

    Commenting the OVERRIDES line out in the recipe fixed the issue.