From 2a3a34f1001222ccccf3a352cc20c47e69c55878 Mon Sep 17 00:00:00 2001 From: Roman Marchenko Date: Fri, 23 Oct 2015 11:50:17 +0300 Subject: [SPRD] add supporting sprd to "modeprint" Change-Id: I2c2b5e287353d3be004426c4e42b343db24beff4 Signed-off-by: Roman Marchenko --- tests/modeprint/Makefile.am | 5 ++++- tests/modeprint/modeprint.c | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) 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"); -- cgit v1.2.3