From: Daniel Schultz <d.schultz@phytec.de>
To: <meta-ti@lists.yoctoproject.org>
Cc: Daniel Schultz <d.schultz@phytec.de>
Subject: [PATCH kirkstone+ 2/2] recipes-graphics: ti-img-rogue-umlibs: Make -vulkan optional
Date: Thu, 4 May 2023 05:37:36 -0700 [thread overview]
Message-ID: <20230504123736.1475746-2-d.schultz@phytec.de> (raw)
In-Reply-To: <20230504123736.1475746-1-d.schultz@phytec.de>
Only include the ti-img-rogue-umlibs-vulkan package if the
DISTRO_FEATURES x11 is enabled. Right now, this recipe has a failed
build dependency on images without x11.
Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
---
.../libgles/ti-img-rogue-umlibs_23.1.6404501.bb | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/meta-ti-bsp/recipes-graphics/libgles/ti-img-rogue-umlibs_23.1.6404501.bb b/meta-ti-bsp/recipes-graphics/libgles/ti-img-rogue-umlibs_23.1.6404501.bb
index c33f8ae0..a6ed57f4 100644
--- a/meta-ti-bsp/recipes-graphics/libgles/ti-img-rogue-umlibs_23.1.6404501.bb
+++ b/meta-ti-bsp/recipes-graphics/libgles/ti-img-rogue-umlibs_23.1.6404501.bb
@@ -29,10 +29,18 @@ do_install:append() {
mv ${D}/lib/firmware ${D}${nonarch_base_libdir}
rmdir ${D}/lib
fi
+ if ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'false', 'true', d)}; then
+ rm -rf ${D}${libdir}/libVK_IMG.so*
+ fi
rm -rf "${D}/etc/init.d"
}
-PACKAGES = "${PN}-vulkan ${PN}-tools ${PN}-firmware ${PN}"
+PACKAGES = " \
+ ${@bb.utils.contains("DISTRO_FEATURES", "x11", "${PN}-vulkan", "", d)} \
+ ${PN}-tools \
+ ${PN}-firmware \
+ ${PN} \
+"
FILES:${PN}-vulkan = " \
${datadir}/vulkan \
@@ -56,7 +64,10 @@ RDEPENDS:${PN}-tools = "python3-core"
FILES:${PN}-firmware = "${base_libdir}/firmware/*"
INSANE_SKIP:${PN}-firmware += "arch"
-RRECOMMENDS:${PN} += "${PN}-vulkan ${PN}-tools"
+RRECOMMENDS:${PN} += " \
+ ${@bb.utils.contains("DISTRO_FEATURES", "x11", "${PN}-vulkan", "", d)} \
+ ${PN}-tools \
+"
RDEPENDS:${PN} += " ${PN}-firmware"
INSANE_SKIP:${PN} += "already-stripped dev-so"
--
2.25.1
next prev parent reply other threads:[~2023-05-04 12:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-04 12:37 [PATCH kirkstone+ 1/2] conf: machine: include: k3: Select correct WKS file Daniel Schultz
2023-05-04 12:37 ` Daniel Schultz [this message]
2023-05-07 16:08 ` [meta-ti] [PATCH kirkstone+ 2/2] recipes-graphics: ti-img-rogue-umlibs: Make -vulkan optional Denys Dmytriyenko
2023-05-06 1:47 ` [meta-ti] [PATCH kirkstone+ 1/2] conf: machine: include: k3: Select correct WKS file Denys Dmytriyenko
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=20230504123736.1475746-2-d.schultz@phytec.de \
--to=d.schultz@phytec.de \
--cc=meta-ti@lists.yoctoproject.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.