1
0
mirror of https://git.yoctoproject.org/meta-ti synced 2026-04-20 19:53:43 +00:00

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>
This commit is contained in:
Daniel Schultz
2023-05-04 05:37:36 -07:00
committed by Ryan Eatmon
parent ab92e0322d
commit d3c2c6e809

View File

@@ -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"