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:
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