summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorTom Hochstein <tom.hochstein@oss.nxp.com>2025-04-17 13:08:28 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-05-01 14:22:53 +0100
commit75436b4047b160ff1810253a83e52a07303e2103 (patch)
tree472c4eefc8f97bc752c44e536889e889f0cc9fc4 /meta/recipes-devtools
parent0a4d64647d3bbbaf861e3c50692faba85a241b8b (diff)
downloadpoky-75436b4047b160ff1810253a83e52a07303e2103.tar.gz
meson: Allow user to override setup command options
The user cannot override the setup command options --cross-file and --native-file because the meson-wrapper places these options on the command line after the user options. This problem was noticed when trying to build with an SDK using a custom cross-file. (From OE-Core rev: 045a53349a5c00b318feb7029470d3fb084b61c8) Signed-off-by: Tom Hochstein <tom.hochstein@oss.nxp.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rwxr-xr-xmeta/recipes-devtools/meson/meson/meson-wrapper15
1 files changed, 11 insertions, 4 deletions
diff --git a/meta/recipes-devtools/meson/meson/meson-wrapper b/meta/recipes-devtools/meson/meson/meson-wrapper
index 7455985297..3aa1a93520 100755
--- a/meta/recipes-devtools/meson/meson/meson-wrapper
+++ b/meta/recipes-devtools/meson/meson/meson-wrapper
@@ -14,8 +14,14 @@ fi
14unset CC CXX CPP LD AR NM STRIP 14unset CC CXX CPP LD AR NM STRIP
15 15
16case "$1" in 16case "$1" in
17setup|configure|dist|install|introspect|init|test|wrap|subprojects|rewrite|compile|devenv|env2mfile|help) MESON_CMD="$1" ;; 17setup|configure|dist|install|introspect|init|test|wrap|subprojects|rewrite|compile|devenv|env2mfile|help)
18*) echo meson-wrapper: Implicit setup command assumed; MESON_CMD=setup ;; 18 MESON_CMD="$1"
19 shift
20 ;;
21*)
22 MESON_CMD=setup
23 echo meson-wrapper: Implicit setup command assumed
24 ;;
19esac 25esac
20 26
21if [ "$MESON_CMD" = "setup" ]; then 27if [ "$MESON_CMD" = "setup" ]; then
@@ -27,5 +33,6 @@ if [ "$MESON_CMD" = "setup" ]; then
27fi 33fi
28 34
29exec "$OECORE_NATIVE_SYSROOT/usr/bin/meson.real" \ 35exec "$OECORE_NATIVE_SYSROOT/usr/bin/meson.real" \
30 "$@" \ 36 $MESON_CMD \
31 $MESON_SETUP_OPTS 37 $MESON_SETUP_OPTS \
38 "$@"