From: uvv.mail@gmail.com
To: Openembedded-core@lists.openembedded.org
Cc: Vyacheslav Yurkov <uvv.mail@gmail.com>
Subject: [PATCH 2/3] meson.bbclass: Add an option to specify install tags
Date: Sun, 2 Feb 2025 21:03:18 +0100 [thread overview]
Message-ID: <20250202200319.82231-2-uvv.mail@gmail.com> (raw)
In-Reply-To: <20250202200319.82231-1-uvv.mail@gmail.com>
From: Vyacheslav Yurkov <uvv.mail@gmail.com>
The feature is available since meson 0.60.0. You can specify
comma-separated list of install tags (not targets).
Signed-off-by: Vyacheslav Yurkov <uvv.mail@gmail.com>
---
meta/classes-recipe/meson.bbclass | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/meta/classes-recipe/meson.bbclass b/meta/classes-recipe/meson.bbclass
index b343480f9a..cbfc45b94b 100644
--- a/meta/classes-recipe/meson.bbclass
+++ b/meta/classes-recipe/meson.bbclass
@@ -22,6 +22,9 @@ MESON_SOURCEPATH = "${S}"
# The target to build in do_compile. If unset the default targets are built.
MESON_TARGET ?= ""
+# Since 0.60.0 you can specify custom tags to install
+MESON_INSTALL_TAGS ?= ""
+
def noprefix(var, d):
return d.getVar(var).replace(d.getVar('prefix') + '/', '', 1)
@@ -182,7 +185,10 @@ meson_do_compile() {
}
meson_do_install() {
- meson install --destdir ${D} --no-rebuild
+ if [ "x${MESON_INSTALL_TAGS}" != "x" ] ; then
+ meson_install_tags="--tags ${MESON_INSTALL_TAGS}"
+ fi
+ meson install --destdir ${D} --no-rebuild $meson_install_tags
}
EXPORT_FUNCTIONS do_configure do_compile do_install
next prev parent reply other threads:[~2025-02-02 20:04 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-02 20:03 [PATCH 1/3] bitbake.conf: Add conditional host tool getent uvv.mail
2025-02-02 20:03 ` uvv.mail [this message]
2025-02-02 20:03 ` [PATCH 3/3] systemd: Build the systemctl executable uvv.mail
2025-02-02 20:17 ` Patchtest results for " patchtest
2025-02-03 7:54 ` [OE-core] " Mikko Rapeli
2025-02-03 11:07 ` Alexander Kanavin
2025-02-03 11:27 ` Mikko Rapeli
2025-02-03 11:32 ` Alexander Kanavin
2025-02-03 11:37 ` Mikko Rapeli
2025-02-03 8:53 ` Ross Burton
2025-02-03 9:35 ` Alex Kiernan
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=20250202200319.82231-2-uvv.mail@gmail.com \
--to=uvv.mail@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.