[bitbake-devel] $PWD in terminal.bbclass
Enrico Scholz
enrico.scholz at sigma-chemnitz.de
Tue Apr 30 11:20:50 UTC 2019
Hi,
terminal.bbclass exports the original environment before running the
terminal command. This environment includes the original $PWD too so
that the generated script (run.do_terminal) looks like
| #!/usr/bin/env /bin/bash
| ...
| export PWD="/srv/projects/.../build" << the directory with conf/local.conf e.g.
| ...
| do_terminal() {
| exec /bin/bash -c ...
| }
Assigning PWD works like 'cd' and changes the actual path so that
do_terminal() will be executed from the directory where bitbake has
been started from. But usually, the [dirs] directory (e.g. '${B}') is
expected.
Is this really intented? Here, this breaks kernel's '-c menuconfig' (at
least).
A trivial fix would be something like
| envdata.delVar("PS1")
|+ envdata.delVar("PWD")
in terminal.bbclass. But is there any reason to have PWD in ${BB_ORIGENV}
at all? imo, there is no reason to keep this variable and it should be
removed in bitbake already.
Enrico
More information about the bitbake-devel
mailing list