diff options
author | Seung-Woo Kim <sw0312.kim@samsung.com> | 2021-02-18 15:30:06 +0900 |
---|---|---|
committer | Seung-Woo Kim <sw0312.kim@samsung.com> | 2021-02-23 10:16:54 +0900 |
commit | 8a590ef40b95e006fba79634247c91a45f1c8671 (patch) | |
tree | 12bca23b574dca31088b67be0ccb84c9493d79a4 | |
parent | e6877af0340d04293d6de43d9b859f0efa5eb3cc (diff) | |
download | libdrm-tizen_6.5_base.tar.gz libdrm-tizen_6.5_base.tar.bz2 libdrm-tizen_6.5_base.zip |
packaging: add freedreno packageHEADtizen_6.5.m2_releasesubmit/tizen_base/20210825.035742submit/tizen_base/20210825.031000submit/tizen_6.5_base/20211028.134101submit/tizen/20210223.111948accepted/tizen/unified/20210224.131656accepted/tizen/base/20210825.055328accepted/tizen/6.5/base/20211028.060127tizen_6.5_basetizenaccepted/tizen_unifiedaccepted/tizen_6.5_base
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.spec | 32 |
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 |