diff options
author | Roman Marchenko <r.marchenko@samsung.com> | 2015-10-23 11:50:17 +0300 |
---|---|---|
committer | Sangjin Lee <lsj119@samsung.com> | 2015-11-23 22:23:36 -0800 |
commit | 4ad8a8eaaf0e7e9a0c9eb3b92c8f0e17a469d6d8 (patch) | |
tree | e27948861be12ce765561da4637a1e95ae47f303 /tests/modeprint | |
parent | 4b59e48cdfbfa1c845be270eb6068123af3a6a4e (diff) | |
download | libdrm-4ad8a8eaaf0e7e9a0c9eb3b92c8f0e17a469d6d8.tar.gz libdrm-4ad8a8eaaf0e7e9a0c9eb3b92c8f0e17a469d6d8.tar.bz2 libdrm-4ad8a8eaaf0e7e9a0c9eb3b92c8f0e17a469d6d8.zip |
[SPRD] add supporting sprd to "modeprint"
Change-Id: I2c2b5e287353d3be004426c4e42b343db24beff4
Signed-off-by: Roman Marchenko <r.marchenko@samsung.com>
Diffstat (limited to 'tests/modeprint')
-rw-r--r-- | tests/modeprint/Makefile.am | 5 | ||||
-rw-r--r-- | tests/modeprint/modeprint.c | 3 |
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"); |