From: Randolph Sapp <[email protected]> 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 <[email protected]> --- .../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 --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" -- 2.41.0 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14801): https://lists.yoctoproject.org/g/meta-arago/message/14801 Mute This Topic: https://lists.yoctoproject.org/mt/100124324/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/meta-arago/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
