From: Tom Hochstein <tom.hochstein@oss.nxp.com>
To: openembedded-core@lists.openembedded.org
Cc: Tom Hochstein <tom.hochstein@oss.nxp.com>
Subject: [PATCH v5 5/5] meson: Allow user to override setup command options
Date: Mon, 7 Apr 2025 16:18:06 -0500 [thread overview]
Message-ID: <20250407211806.1782316-5-tom.hochstein@oss.nxp.com> (raw)
In-Reply-To: <20250407211806.1782316-1-tom.hochstein@oss.nxp.com>
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.
Signed-off-by: Tom Hochstein <tom.hochstein@oss.nxp.com>
---
meta/recipes-devtools/meson/meson/meson-wrapper | 15 +++++++++++----
1 file 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
unset CC CXX CPP LD AR NM STRIP
case "$1" in
-setup|configure|dist|install|introspect|init|test|wrap|subprojects|rewrite|compile|devenv|env2mfile|help) MESON_CMD="$1" ;;
-*) echo meson-wrapper: Implicit setup command assumed; MESON_CMD=setup ;;
+setup|configure|dist|install|introspect|init|test|wrap|subprojects|rewrite|compile|devenv|env2mfile|help)
+ MESON_CMD="$1"
+ shift
+ ;;
+*)
+ MESON_CMD=setup
+ echo meson-wrapper: Implicit setup command assumed
+ ;;
esac
if [ "$MESON_CMD" = "setup" ]; then
@@ -27,5 +33,6 @@ if [ "$MESON_CMD" = "setup" ]; then
fi
exec "$OECORE_NATIVE_SYSROOT/usr/bin/meson.real" \
- "$@" \
- $MESON_SETUP_OPTS
+ $MESON_CMD \
+ $MESON_SETUP_OPTS \
+ "$@"
--
2.34.1
prev parent reply other threads:[~2025-04-07 21:18 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-07 21:18 [PATCH v5 1/5] toolchain-scripts: Add Meson settings for Yocto build SDK Tom Hochstein
2025-04-07 21:18 ` [PATCH v5 2/5] toolchain-scripts: Export meson settings for SDK builds Tom Hochstein
2025-04-07 21:18 ` [PATCH v5 3/5] meson: Fix host_machine setting for native cross-file Tom Hochstein
2025-04-07 21:18 ` [PATCH v5 4/5] oeqa/sdk/meson: improve test to validate host/build target assignments Tom Hochstein
2025-04-08 13:37 ` [OE-core] " Mathieu Dubois-Briand
2025-04-08 15:10 ` Tom Hochstein
[not found] ` <183460753CA35884.31078@lists.openembedded.org>
2025-04-10 13:28 ` Tom Hochstein
[not found] ` <1834F816ACB44615.7383@lists.openembedded.org>
2025-04-10 15:28 ` Tom Hochstein
[not found] ` <1834FEA34534143E.27206@lists.openembedded.org>
2025-04-10 18:58 ` Tom Hochstein
2025-04-11 10:01 ` Mathieu Dubois-Briand
[not found] ` <18353B5DF2EF4BC1.27206@lists.openembedded.org>
2025-04-11 10:13 ` Mathieu Dubois-Briand
2025-04-11 15:37 ` Tom Hochstein
2025-04-15 8:29 ` Mathieu Dubois-Briand
2025-04-07 21:18 ` Tom Hochstein [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250407211806.1782316-5-tom.hochstein@oss.nxp.com \
--to=tom.hochstein@oss.nxp.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox