我在BitBake配方中使用匿名Python函数来设置变量。现在我想知道是否可以检查特定的变量是否设置。如果没有设置,则我想生成一个BitBake错误,停止构建过程。
以下是我想要创建的伪代码:
以下是我想要创建的伪代码:
python __anonymous () {
if d.getVar('MY_VARIABLE', True) == "":
<BITBAKE ERROR with custom message "MY_VARIABLE not found">
}