diff options
author | Yoann Congal <yoann.congal@smile.fr> | 2025-10-02 12:09:24 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-10-09 22:05:17 +0100 |
commit | fdb08c6da3fc7f6a02037b51404a6060cfed7b2b (patch) | |
tree | c1a53c2ef420b357cbc06811830948ed3c30fcc2 /meta/lib/patchtest/repo.py | |
parent | f3aa72ddb22f566346cc6b59ee06d1842f35a75d (diff) | |
download | poky-fdb08c6da3fc7f6a02037b51404a6060cfed7b2b.tar.gz |
bitbake: bitbake-setup: dash support for init-build-env script
Being minimalist, dash does not support the (non-POSIX) feature of
passing an argument while sourcing a script. Like in
. <some path>/oe-init-build-env <build dir>
With dash, one must use:
set <build dir> # puts <build dir> in $1
cd <some path>
. ./oe-init-build-env # can only be called from its directory in dash
To do this:
* Instead of a symlink to oe-init-build-env, keep a symlink to the
directory containing it (called "oe-init-build-env-dir")
* Generate a init-build-env script that dash can source using the above
snippet.
(Bitbake rev: c0adccefd0f74ada0370028026485a171167a28e)
Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/patchtest/repo.py')
0 files changed, 0 insertions, 0 deletions