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:53:02 +0900
commit54b302f44578a0b185f8f8963add359006b07ea7 (patch)
tree0b2fac6f6e56a06478a73e13b3e83c4c2b7e3814
parentcf3887b4f080727d9d399352c77e54f966b183c0 (diff)
downloadlibdrm-54b302f44578a0b185f8f8963add359006b07ea7.tar.gz
libdrm-54b302f44578a0b185f8f8963add359006b07ea7.tar.bz2
libdrm-54b302f44578a0b185f8f8963add359006b07ea7.zip
[SPRD] Build libdrm_sprd only tm1submit/tizen_mobile/20151124.075947
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