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! :-)
-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to