diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-11-13 16:17:21 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-11-13 16:28:25 +0000 |
commit | c03df5283408dfd089b6317677d2b7af6fa73936 (patch) | |
tree | 8fbcc003589dd6b2a1c5ad740aa9d7e251c35843 /lib/bb/parse | |
parent | c8f1eb377ceb1fc78cbfaed976107720ad78c075 (diff) | |
download | bitbake-c03df5283408dfd089b6317677d2b7af6fa73936.tar.gz |
cookerdata: Set TOPDIR explicitly and fix broken findTopdir()
TOPDIR is set internally deep within the parser to os.getcwd(). Rather
than do that, set it explicitly if not set. Note that modern code will
almost always have a bblayers.conf file which would have already set
TOPDIR before this new code.
Also fix findTopdir since the conf/bitbake.conf codepath is just
plain incorrect, it would find build metadata, not the current
build directory that bitbake would use. Again, the use of bblayers.conf
means hitting the fallback code was unlikely.
This change makes everything clear and explicit.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/parse')
0 files changed, 0 insertions, 0 deletions