简体   繁体   English

Yocto 机器特定变量前置

[英]Yocto Machine specific variable prepend

Trying to port some of our recipes to a later version of Yocto (thud).试图将我们的一些食谱移植到更高版本的 Yocto(砰)。 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:如果我针对“mymachine”构建它,我会得到以下信息:

DDD C3 B2 A1 DDD C3 B2 A1

However in thud it's not prepending the machine specific variable:然而,在 thud 中它没有预先添加机器特定的变量:

DDD B2 A1 DDD B2 A1

What changed and what am I missing?什么改变了,我错过了什么?

Thanks!谢谢!

-Steve -史蒂夫

Okay, found it.好的,找到了。 The recipe that was having the issue had the following line:有问题的配方有以下几行:

    OVERRIDES = "machine:local"

MACHINEOVERRIDES is setting the machine config: MACHINEOVERRIDES 正在设置机器配置:

    MACHINEOVERRIDES =. "mymachine:

Commenting the OVERRIDES line out in the recipe fixed the issue.注释配方中的 OVERRIDES 行解决了该问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM