diff options
| author | Tom Hochstein <tom.hochstein@oss.nxp.com> | 2025-04-17 13:08:28 -0500 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-05-01 14:22:53 +0100 |
| commit | 75436b4047b160ff1810253a83e52a07303e2103 (patch) | |
| tree | 472c4eefc8f97bc752c44e536889e889f0cc9fc4 /meta/recipes-devtools | |
| parent | 0a4d64647d3bbbaf861e3c50692faba85a241b8b (diff) | |
| download | poky-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-x | meta/recipes-devtools/meson/meson/meson-wrapper | 15 |
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 | |||
| 14 | unset CC CXX CPP LD AR NM STRIP | 14 | unset CC CXX CPP LD AR NM STRIP |
| 15 | 15 | ||
| 16 | case "$1" in | 16 | case "$1" in |
| 17 | setup|configure|dist|install|introspect|init|test|wrap|subprojects|rewrite|compile|devenv|env2mfile|help) MESON_CMD="$1" ;; | 17 | setup|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 | ;; | ||
| 19 | esac | 25 | esac |
| 20 | 26 | ||
| 21 | if [ "$MESON_CMD" = "setup" ]; then | 27 | if [ "$MESON_CMD" = "setup" ]; then |
| @@ -27,5 +33,6 @@ if [ "$MESON_CMD" = "setup" ]; then | |||
| 27 | fi | 33 | fi |
| 28 | 34 | ||
| 29 | exec "$OECORE_NATIVE_SYSROOT/usr/bin/meson.real" \ | 35 | exec "$OECORE_NATIVE_SYSROOT/usr/bin/meson.real" \ |
| 30 | "$@" \ | 36 | $MESON_CMD \ |
| 31 | $MESON_SETUP_OPTS | 37 | $MESON_SETUP_OPTS \ |
| 38 | "$@" | ||
