diff mbox series

[meta-arago,master/kirkstone] vulkan-loader: alternative link for qt demos

Message ID 20230713164321.2802321-1-rs@ti.com
State Accepted
Delegated to: Ryan Eatmon
Headers show
Series [meta-arago,master/kirkstone] vulkan-loader: alternative link for qt demos | expand

Commit Message

Randolph Sapp July 13, 2023, 4:43 p.m. UTC
From: Randolph Sapp <rs@ti.com>

Some applications, like Qt's Vulkan demos, require the libvulkan.so
devlink to point at a valid Vulkan ICD loader. OE-Core has one that we
use so let's just use the alternative hooks to make sure that devlink
gets created without stomping on anything else.

To be dropped if upstream adopts something like this.

Signed-off-by: Randolph Sapp <rs@ti.com>
---
 .../recipes-graphics/vulkan/vulkan-loader_%.bbappend   | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 meta-arago-distro/recipes-graphics/vulkan/vulkan-loader_%.bbappend
diff mbox series

Patch

diff --git a/meta-arago-distro/recipes-graphics/vulkan/vulkan-loader_%.bbappend b/meta-arago-distro/recipes-graphics/vulkan/vulkan-loader_%.bbappend
new file mode 100644
index 00000000..67ece316
--- /dev/null
+++ b/meta-arago-distro/recipes-graphics/vulkan/vulkan-loader_%.bbappend
@@ -0,0 +1,10 @@ 
+# Set alternative link for applications like Qt that really need
+# ${libdir}/libvulkan.so to point to an actual ICD loader instead of using
+# libvulkan.so.1
+
+inherit update-alternatives
+
+ALTERNATIVE_PRIORITY = "10"
+ALTERNATIVE:${PN} = "vulkan-loader"
+ALTERNATIVE_LINK_NAME[vulkan-loader] = "${libdir}/libvulkan.so"
+ALTERNATIVE_TARGET[vulkan-loader] = "libvulkan.so.1"