[yocto] Inline Python function name define
Xi Zhou Zhou
joel.zhou at broadcom.com
Wed Feb 10 11:02:23 PST 2016
Hi,
I want to manipulate a variable with inline python function in a recipe.
The code is something like this.
python newpv() {
return 999
}
PV = "${@newpv()}"
The error is "name 'newpv' is not defined"
ERROR: ExpansionError during parsing /home/joelz/poky/build/
../meta-test/recipes-bsp/mytest/mytest.bb: Failure expanding variable PV,
expression was ${@newpv()} which triggered exception NameError: name 'newpv'
is not defined
What's the right way to create inline python function in Yocto recipe?
Thanks,
Joel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160210/15872ea7/attachment.html>
More information about the yocto
mailing list