diff options
-rw-r--r-- | packaging/libdrm.spec | 12 | ||||
-rw-r--r-- | tests/modeprint/Makefile.am | 16 |
2 files changed, 25 insertions, 3 deletions
diff --git a/packaging/libdrm.spec b/packaging/libdrm.spec index 794f5a1c..d418ba6f 100644 --- a/packaging/libdrm.spec +++ b/packaging/libdrm.spec @@ -10,8 +10,12 @@ Source1001: %name.manifest BuildRequires: pkgconfig(pciaccess) BuildRequires: pkgconfig(pthread-stubs) +%if ("%{?tizen_target_name}" == "TM1") BuildRequires: kernel-headers-tizen-dev BuildConflicts: linux-glibc-devel +%else +BuildRequires: kernel-headers +%endif %description Direct Rendering Manager headers and kernel modules. @@ -73,7 +77,9 @@ cp %{SOURCE1001} . --disable-radeon \ --disable-nouveau \ --enable-exynos-experimental-api \ +%if ("%{?tizen_target_name}" == "TM1") --enable-sprd-experimental-api \ +%endif --enable-install-test-programs \ --disable-cairo-tests @@ -106,7 +112,9 @@ rm -f %{buildroot}%{_bindir}/kmstest %manifest %{name}.manifest %{_libdir}/libdrm.so.* %{_libdir}/libdrm_exynos.so.* +%if ("%{?tizen_target_name}" == "TM1") %{_libdir}/libdrm_sprd.so.* +%endif %{_libdir}/libdrm_vigs.so.* %files tools @@ -131,8 +139,10 @@ rm -f %{buildroot}%{_bindir}/kmstest %{_includedir}/libkms/*.h %dir %{_includedir}/exynos %{_includedir}/exynos/*.h +%if ("%{?tizen_target_name}" == "TM1") %dir %{_includedir}/sprd %{_includedir}/sprd/*.h +%endif %{_includedir}/*.h %{_libdir}/libdrm.so %ifarch i586 i686 %ix86 x86_64 @@ -140,7 +150,9 @@ rm -f %{buildroot}%{_bindir}/kmstest %endif %{_libdir}/libkms.so %{_libdir}/libdrm_exynos.so +%if ("%{?tizen_target_name}" == "TM1") %{_libdir}/libdrm_sprd.so +%endif %{_libdir}/libdrm_vigs.so %{_libdir}/pkgconfig/* diff --git a/tests/modeprint/Makefile.am b/tests/modeprint/Makefile.am index 1f9179e3..45fc5001 100644 --- a/tests/modeprint/Makefile.am +++ b/tests/modeprint/Makefile.am @@ -1,7 +1,13 @@ +if HAVE_SPRD AM_CFLAGS = \ -I$(top_srcdir)/include/drm \ -I$(top_srcdir)/sprd/ \ -I$(top_srcdir) +else +AM_CFLAGS = \ + -I$(top_srcdir)/include/drm \ + -I$(top_srcdir) +endif if HAVE_INSTALL_TESTS bin_PROGRAMS = \ @@ -13,7 +19,11 @@ endif modeprint_SOURCES = \ modeprint.c +if HAVE_SPRD +modeprint_LDADD = \ + $(top_builddir)/sprd/libdrm_sprd.la \ + $(top_builddir)/libdrm.la +else modeprint_LDADD = \ - $(top_builddir)/libdrm.la \ - $(top_builddir)/sprd/libdrm_sprd.la - + $(top_builddir)/libdrm.la +endif |