summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeung-Woo Kim <sw0312.kim@samsung.com>2021-02-18 15:30:06 +0900
committerSeung-Woo Kim <sw0312.kim@samsung.com>2021-02-23 10:16:54 +0900
commit8a590ef40b95e006fba79634247c91a45f1c8671 (patch)
tree12bca23b574dca31088b67be0ccb84c9493d79a4
parente6877af0340d04293d6de43d9b859f0efa5eb3cc (diff)
downloadlibdrm-accepted/tizen_unified.tar.gz
libdrm-accepted/tizen_unified.tar.bz2
libdrm-accepted/tizen_unified.zip
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 cd3cc145..496b1505 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