summaryrefslogtreecommitdiffstats
path: root/meta-ti-bsp/recipes-graphics
diff options
context:
space:
mode:
authorDaniel Schultz <d.schultz@phytec.de>2023-05-04 05:37:36 -0700
committerRyan Eatmon <reatmon@ti.com>2023-05-08 08:58:29 -0500
commita82e0e3955a9fc811b9a4ec0a24ed080003ee723 (patch)
tree0534a6baa7abc75b8529ef8c0f2bdf6de22bca06 /meta-ti-bsp/recipes-graphics
parent5c5ca8205b83838fe859b2ccf89f7f7c90fcdea0 (diff)
downloadmeta-ti-a82e0e3955a9fc811b9a4ec0a24ed080003ee723.tar.gz
recipes-graphics: ti-img-rogue-umlibs: Make -vulkan optional
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> Tested-by: Denys Dmytriyenko <denys@konsulko.com> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
Diffstat (limited to 'meta-ti-bsp/recipes-graphics')
-rw-r--r--meta-ti-bsp/recipes-graphics/libgles/ti-img-rogue-umlibs_23.1.6404501.bb15
1 files 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..f22cd1d1 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() {
29 mv ${D}/lib/firmware ${D}${nonarch_base_libdir} 29 mv ${D}/lib/firmware ${D}${nonarch_base_libdir}
30 rmdir ${D}/lib 30 rmdir ${D}/lib
31 fi 31 fi
32 if ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'false', 'true', d)}; then
33 rm -rf ${D}${libdir}/libVK_IMG.so*
34 fi
32 rm -rf "${D}/etc/init.d" 35 rm -rf "${D}/etc/init.d"
33} 36}
34 37
35PACKAGES = "${PN}-vulkan ${PN}-tools ${PN}-firmware ${PN}" 38PACKAGES = " \
39 ${@bb.utils.contains("DISTRO_FEATURES", "x11", "${PN}-vulkan", "", d)} \
40 ${PN}-tools \
41 ${PN}-firmware \
42 ${PN} \
43"
36 44
37FILES:${PN}-vulkan = " \ 45FILES:${PN}-vulkan = " \
38 ${datadir}/vulkan \ 46 ${datadir}/vulkan \
@@ -56,7 +64,10 @@ RDEPENDS:${PN}-tools = "python3-core"
56FILES:${PN}-firmware = "${base_libdir}/firmware/*" 64FILES:${PN}-firmware = "${base_libdir}/firmware/*"
57INSANE_SKIP:${PN}-firmware += "arch" 65INSANE_SKIP:${PN}-firmware += "arch"
58 66
59RRECOMMENDS:${PN} += "${PN}-vulkan ${PN}-tools" 67RRECOMMENDS:${PN} += " \
68 ${@bb.utils.contains("DISTRO_FEATURES", "x11", "${PN}-vulkan", "", d)} \
69 ${PN}-tools \
70"
60RDEPENDS:${PN} += " ${PN}-firmware" 71RDEPENDS:${PN} += " ${PN}-firmware"
61 72
62INSANE_SKIP:${PN} += "already-stripped dev-so" 73INSANE_SKIP:${PN} += "already-stripped dev-so"