[bitbake-devel] How to prevent expansion of bitbake variables inside tasks?

Andre McCurdy armccurdy at gmail.com
Tue Aug 30 02:12:19 UTC 2016


Say I want to create a do_install() task which does:

  do_install() {
    echo '${BP} was ${BP}' > ${D}/test
  }

but I don't want first ${BP} bitbake variable to be expanded. ie after
the task has run I want ${D}/test to contain the string "${BP} was
foo-1.0".

What's the recommended way to escape the first ${BP} in do_install()?



More information about the bitbake-devel mailing list