summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChangyeon Lee <cyeon.lee@samsung.com>2015-11-24 13:26:24 +0900
committerSooChan Lim <sc1.lim@samsung.com>2015-11-24 16:38:43 +0900
commit731240f32d48d0435cc329679441fb01ac78cdd9 (patch)
tree2e053df5f09d82fcebc97c0922a5de83092474a7
parent3f9dbf6ab651f1f9d756fedad40f0b78d435e5c0 (diff)
downloadlibdrm-731240f32d48d0435cc329679441fb01ac78cdd9.tar.gz
libdrm-731240f32d48d0435cc329679441fb01ac78cdd9.tar.bz2
libdrm-731240f32d48d0435cc329679441fb01ac78cdd9.zip
Build libdrm_sprd only tm1
Change-Id: Icbd4e47fa3467d0ff8314f6afa72ff7d9aad0454
-rw-r--r--packaging/libdrm.spec12
-rw-r--r--tests/modeprint/Makefile.am16
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