summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Marchenko <r.marchenko@samsung.com>2015-10-23 11:50:17 +0300
committerSooChan Lim <sc1.lim@samsung.com>2015-11-17 23:22:00 +0900
commit2a3a34f1001222ccccf3a352cc20c47e69c55878 (patch)
treefad054adc83d8ff27bb938cb95e694aebc58d560
parentc9343d1e839dd94972e2eb9e0314fcaebb61cfdc (diff)
downloadlibdrm-2a3a34f1001222ccccf3a352cc20c47e69c55878.tar.gz
libdrm-2a3a34f1001222ccccf3a352cc20c47e69c55878.tar.bz2
libdrm-2a3a34f1001222ccccf3a352cc20c47e69c55878.zip
[SPRD] add supporting sprd to "modeprint"
Change-Id: I2c2b5e287353d3be004426c4e42b343db24beff4 Signed-off-by: Roman Marchenko <r.marchenko@samsung.com>
-rw-r--r--tests/modeprint/Makefile.am5
-rw-r--r--tests/modeprint/modeprint.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/tests/modeprint/Makefile.am b/tests/modeprint/Makefile.am
index 6420ef33..1f9179e3 100644
--- a/tests/modeprint/Makefile.am
+++ b/tests/modeprint/Makefile.am
@@ -1,5 +1,6 @@
AM_CFLAGS = \
-I$(top_srcdir)/include/drm \
+ -I$(top_srcdir)/sprd/ \
-I$(top_srcdir)
if HAVE_INSTALL_TESTS
@@ -13,4 +14,6 @@ endif
modeprint_SOURCES = \
modeprint.c
modeprint_LDADD = \
- $(top_builddir)/libdrm.la
+ $(top_builddir)/libdrm.la \
+ $(top_builddir)/sprd/libdrm_sprd.la
+
diff --git a/tests/modeprint/modeprint.c b/tests/modeprint/modeprint.c
index 6f0d0390..c1fc0798 100644
--- a/tests/modeprint/modeprint.c
+++ b/tests/modeprint/modeprint.c
@@ -412,6 +412,9 @@ int main(int argc, char **argv)
return 1;
}
+ if (strcmp(module_name,"sprd") == 0)
+ sprd_device_create(fd);
+
res = drmModeGetResources(fd);
if (res == 0) {
printf("Failed to get resources from card\n");