cpb- / yocto-cooker

Meta buildtool for Yocto Project based Linux embedded systems
GNU General Public License v2.0
43 stars 22 forks source link

[FIX] Protect directories variables when outputing the `--dry-run` shell script #104

Closed cpb- closed 2 years ago

cpb- commented 2 years ago

The standard output of cooker --dry-run cook <menu> is a ready-to-run shell script.

Without this patch the TOPDIR variable (and some others) was evaluated (as empty string) by the shell script and local.conf and bblayers.conf contains invalid lines.

This patch ensures that the ${TOPDIR} string (and the others) appears in the local.conf and bblayers.conf files and is evaluated later by bitbake.