]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
oe-setup-build: fix dash support
authorYoann Congal <yoann.congal@smile.fr>
Fri, 26 Sep 2025 14:53:05 +0000 (16:53 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 1 Oct 2025 09:52:51 +0000 (10:52 +0100)
commit35c90011824845b40066b7747b256f1cd31b0dba
tree553f30805073fca027ca51548a18a908952a84bb
parent6b1833cd2eb78be55ba03da73937358fcf25d9ec
oe-setup-build: fix dash support

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 instead use:
  cd <some path>
  set <build dir>       # puts <build dir> in $1
  . ./oe-init-build-env # can only be called from its directory in dash

oe-setup-build generate a sourcable "init-build-env" script, this script
must use the above snippet to be used in dash.

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/oe-setup-build