From: uvv.mail@gmail.com
To: Openembedded-core@lists.openembedded.org
Cc: Vyacheslav Yurkov <uvv.mail@gmail.com>
Subject: [PATCH v2 2/3] meson.bbclass: Add an option to specify install tags
Date: Tue, 4 Feb 2025 11:53:14 +0100 [thread overview]
Message-ID: <20250204105315.84079-2-uvv.mail@gmail.com> (raw)
In-Reply-To: <20250204105315.84079-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-04 10:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-04 10:53 [PATCH v2 1/3] bitbake.conf: Add conditional host tool getent uvv.mail
2025-02-04 10:53 ` uvv.mail [this message]
2025-02-04 10:53 ` [PATCH v2 3/3] systemd: Build the systemctl executable uvv.mail
2025-02-04 11:02 ` Patchtest results for " patchtest
2025-02-04 13:18 ` [OE-core] " Mikko Rapeli
2025-02-05 7:06 ` Vyacheslav Yurkov
2025-02-05 8:30 ` Böszörményi Zoltán
2025-02-04 11:03 ` [OE-core] [PATCH v2 1/3] bitbake.conf: Add conditional host tool getent Richard Purdie
2025-02-04 11:33 ` Vyacheslav Yurkov
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=20250204105315.84079-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox