summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonbum Ko <joonbum.ko@samsung.com>2021-07-26 15:58:36 +0900
committerXuelian Bai <xuelian.bai@samsung.com>2024-01-18 09:31:55 +0800
commit5b9c8efa2666004ee323b49de14cd195fea8b44b (patch)
treef1d92a158a4b5a77f4d8bb325e18d2dc42dc20b1
parentd7403250c9e17bb9e7b38237613e44d796787930 (diff)
downloadmesa-5b9c8efa2666004ee323b49de14cd195fea8b44b.tar.gz
mesa-5b9c8efa2666004ee323b49de14cd195fea8b44b.tar.bz2
mesa-5b9c8efa2666004ee323b49de14cd195fea8b44b.zip
Add a symbolic link of libvulkan_broadcom.so to /usr/lib
Change-Id: I7728385f6f00dad1e0f262e057a022175672968c Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
-rw-r--r--packaging/mesa.spec14
1 files changed, 8 insertions, 6 deletions
diff --git a/packaging/mesa.spec b/packaging/mesa.spec
index e082d9f9202..2f2140da063 100644
--- a/packaging/mesa.spec
+++ b/packaging/mesa.spec
@@ -37,6 +37,7 @@ ExclusiveArch:
%endif
%define USE_VULKAN 0
+%define VULKAN_DRIVER broadcom
%description
Mesa is a 3-D graphics library with an API which is very similar to
@@ -79,7 +80,7 @@ meson --prefix %{_prefix} build/ \
-Dvulkan-drivers=""
%else
%if "%{USE_VULKAN}" == "1"
- -Dvulkan-drivers="broadcom" \
+ -Dvulkan-drivers="%{VULKAN_DRIVER}" \
%endif
-Dgallium-drivers="vc4,v3d,kmsro,swrast"
%endif
@@ -88,18 +89,18 @@ ninja -C build/
%install
DESTDIR=%{buildroot} ninja -C build/ install
mkdir -p %{buildroot}%{_hal_libdir}/driver
-mkdir -p %{buildroot}%{_hal_libdir}/dri
cp -a %{buildroot}%{_libdir}/libEGL* %{buildroot}%{_hal_libdir}/driver/
cp -a %{buildroot}%{_libdir}/libGLES* %{buildroot}%{_hal_libdir}/driver/
-cp -a %{buildroot}%{_libdir}/dri/* %{buildroot}%{_hal_libdir}/dri/
cp -a %{buildroot}%{_libdir}/libglapi* %{buildroot}%{_hal_libdir}/
+mv %{buildroot}%{_libdir}/dri %{buildroot}%{_hal_libdir}/dri
%if "%{USE_VULKAN}" == "1"
-cp -a %{buildroot}%{_libdir}/libvulkan* %{buildroot}%{_hal_libdir}/
+mv %{buildroot}%{_libdir}/libvulkan_%{VULKAN_DRIVER}.so %{buildroot}%{_hal_libdir}/
+ln -sf %{_hal_libdir}/libvulkan_%{VULKAN_DRIVER}.so %{buildroot}%{_libdir}/libvulkan_%{VULKAN_DRIVER}.so
%endif
ln -sf %{_hal_libdir}/dri %{buildroot}%{_libdir}/dri
-ln -sf %{_hal_libdri}/libglapi.so.0.0.0 %{buildroot}%{_libdir}/libglapi.0.0.0
+ln -sf %{_hal_libdir}/libglapi.so.0.0.0 %{buildroot}%{_libdir}/libglapi.0.0.0
mkdir -p %{buildroot}%{_udevrulesdir}
cp 99-GPU-Acceleration.rules %{buildroot}%{_udevrulesdir}
@@ -119,7 +120,8 @@ cp 99-GPU-Acceleration.rules %{buildroot}%{_udevrulesdir}
%{_libdir}/dri
%{_libdir}/libgbm*
%if "%{USE_VULKAN}" == "1"
-%{_hal_libdir}/libvulkan*
+%{_hal_libdir}/libvulkan_%{VULKAN_DRIVER}.so
+%{_libdir}/libvulkan_%{VULKAN_DRIVER}.so
/usr/share/vulkan/icd.d/*
%endif
%{_udevrulesdir}/99-GPU-Acceleration.rules