[yocto] Expansion of variables inside do_package_prepend task
Iván Castell
icastell at nayarsystems.com
Wed Feb 21 07:50:04 PST 2018
Hello forum.
I have a question regarding the expansion of variables in a recipe. Suppose
I have a recipe with this "do_install" task defined:
do_install() {
BBB = ${WORKDIR}
}
Variable BBB expands to the proper working directory.
$ bitbake -e <myrecipe> | grep BBB
BBB = /path/to/working/directory
However, suppose now I have a recipe with this "do_package_prepend" task
defined:
do_package_prepend() {
AAA = ${WORKDIR}
}
Variable AAA doesn't expand to the expected working directory. In fact, it
generates an error:
$ bitbake -e <myrecipe> | grep AAA
AAA = ${WORKDIR}
^
SyntaxError: invalid syntax
It seems the expansion of variables is not working inside the
do_package_prepend task.
What is going wrong with that?
Thank you in advance! :-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180221/e02f1567/attachment.html>
More information about the yocto
mailing list