bitbake: how to add package depending on MACHINE?

匆匆过客 提交于 2019-12-01 01:35:05

I believe the function you are looking for is base_contains

This functions is used to set a variable to one of two values based on the definition of a third variable.

${@base_contains('variable-name', 'value', 'true-result', 'false-result',d)}" where:

variable-name This is the name of a variable to check.

value This is the value to compare the variable against.

true-result If the variable equals the value then this is what is returned by the function.

false-result If the variable does not equal the value then this is what is returned by the function.

One more thing, you could use ??= to provide a default value. The differences between ?= and ??= is that with ??= the assignment does not occur until the end of the parsing process.

You could take a look at one of the example here for image recipe

http://www.embeddedlinux.org.cn/OEManual/recipes_advanced_python.html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!