summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeung-Woo Kim <sw0312.kim@samsung.com>2021-02-18 15:30:06 +0900
committerHoegeun Kwon <hoegeun.kwon@samsung.com>2022-12-07 18:11:21 +0900
commit0e078dc3b79014f22cadeed87409ab7f3a8d797f (patch)
tree6db5b7fe18cf94a7ca29da21b63c270f38a6c006
parentbc257662c0a10c7fe671ea67a90a11b8fc537e06 (diff)
downloadlibdrm-0e078dc3b79014f22cadeed87409ab7f3a8d797f.tar.gz
libdrm-0e078dc3b79014f22cadeed87409ab7f3a8d797f.tar.bz2
libdrm-0e078dc3b79014f22cadeed87409ab7f3a8d797f.zip
packaging: add freedreno package
To support freedreno in mesa, it is reuqired to build freedreno. Add freedreno packages. To remove build warning, add -fno-strict-aliasing to CFLAGS. Change-Id: Ia52c06a2e5ad8260e2b6534d890f7ef51b2074d6 Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
-rw-r--r--packaging/libdrm.spec32
1 files changed, 30 insertions, 2 deletions
diff --git a/packaging/libdrm.spec b/packaging/libdrm.spec
index adf44d48..61891f55 100644
--- a/packaging/libdrm.spec
+++ b/packaging/libdrm.spec
@@ -58,19 +58,36 @@ Summary: Userspace interface to intel graphics kernel DRM buffer manageme
%description intel
Userspace interface to intel graphics kernel DRM buffer management files
+%package freedreno
+Summary: Userspace interface to freedreno graphics kernel drm buffer management
+requires: libdrm = %{version}-%{release}
+
+%description freedreno
+Userspace interface to freedreno graphics kernel drm buffer management files
+
+%package freedreno-devel
+Summary: headers and developement files for freedreno drm services
+requires: libdrm = %{version}-%{release}
+requires: libdrm-devel = %{version}-%{release}
+requires: libkms = %{version}-%{release}
+
+%description freedreno-devel
+Direct rendering manager headers and development related files for freedreno.
+
%prep
%setup -q
cp %{SOURCE1001} .
%build
-export CFLAGS+=" -fPIE -Wno-format-truncation"
+export CFLAGS+=" -fPIE -Wno-format-truncation -fno-strict-aliasing"
meson setup --prefix /usr --libdir %{_libdir} \
-Dudev=true \
-Dlibkms=true \
-Dradeon=false \
-Damdgpu=false \
-Dnouveau=false \
- -Dfreedreno=false \
+ -Dfreedreno=true \
+ -Dfreedreno-kgsl=true \
%ifarch i586 i686 %ix86 x86_64
-Dintel=true \
%endif
@@ -107,6 +124,7 @@ ninja -C builddir install
%{_libdir}/libdrm_exynos.so.*
%{_libdir}/libdrm_vigs.so.*
%{_libdir}/libdrm_nexell.so.*
+%{_libdir}/libdrm_freedreno.so.*
%files tools
%manifest %{name}.manifest
@@ -163,3 +181,13 @@ ninja -C builddir install
%manifest %{name}.manifest
%{_libdir}/libdrm_intel.so.*
%endif
+
+%files freedreno
+%{_libdir}/libdrm_freedreno.so.*
+
+%files freedreno-devel
+%manifest %{name}.manifest
+%dir %{_includedir}/freedreno
+%{_includedir}/freedreno/*.h
+%{_libdir}/libdrm_freedreno.so
+%{_libdir}/pkgconfig/libdrm_freedreno.pc