tests: mmrpc_test: Add DRM library to Linux side makefiles.
authorG Anthony <a0783926@ti.com>
Wed, 7 Aug 2013 01:25:14 +0000 (18:25 -0700)
committerRamsey Harris <ramsey@ti.com>
Wed, 7 Aug 2013 16:12:27 +0000 (09:12 -0700)
DRM library is needed for the Mx_Compute() buffer translation use case.

Add DRM_PREFIX in ipc-linux.mak and Makefile.am

Signed-off-by: G Anthony <a0783926@ti.com>
ipc-linux.mak
linux/src/tests/Makefile.am

index 3688e627603428db43aa4919078b7dfc2f50203d..788a5a254b2ebde52603a2e13e261ec375e4008d 100644 (file)
@@ -41,7 +41,9 @@ config:
             CC=$(TOOLCHAIN_PREFIX)gcc \
             PLATFORM=$(PLATFORM) \
             CMEM_INSTALL_DIR=$(CMEM_INSTALL_DIR) \
-            KERNEL_INSTALL_DIR=$(KERNEL_INSTALL_DIR)
+            KERNEL_INSTALL_DIR=$(KERNEL_INSTALL_DIR) \
+            DRM_PREFIX=$(DRM_PREFIX)
+
 
 config-static:
        @echo "Configuring Linux Ipc static only libaries ..."
@@ -49,7 +51,8 @@ config-static:
             CC=$(TOOLCHAIN_PREFIX)gcc \
             PLATFORM=$(PLATFORM) \
             CMEM_INSTALL_DIR=$(CMEM_INSTALL_DIR) \
-            KERNEL_INSTALL_DIR=$(KERNEL_INSTALL_DIR)
+            KERNEL_INSTALL_DIR=$(KERNEL_INSTALL_DIR) \
+            DRM_PREFIX=$(DRM_PREFIX)
 
 
 config-shared:
@@ -58,4 +61,5 @@ config-shared:
             CC=$(TOOLCHAIN_PREFIX)gcc \
             PLATFORM=$(PLATFORM) \
             CMEM_INSTALL_DIR=$(CMEM_INSTALL_DIR) \
-            KERNEL_INSTALL_DIR=$(KERNEL_INSTALL_DIR)
+            KERNEL_INSTALL_DIR=$(KERNEL_INSTALL_DIR) \
+            DRM_PREFIX=$(DRM_PREFIX)
index 87700a9fa22aa773612cf63b7078a4570c976ec9..7c9004a5133e52d05d86b4113ba379bfaf09cf29 100644 (file)
 # additional include paths necessary to compile the program
 AM_CFLAGS = -I$(top_srcdir)/linux/include -I$(top_srcdir)/hlos_common/include \
         -I$(top_srcdir)/packages -I$(CMEM_INSTALL_DIR)/include \
+        -I$(top_srcdir)/packages -I$(CMEM_INSTALL_DIR)/packages \
+        -I$(DRM_PREFIX)/usr/include \
+        -I$(DRM_PREFIX)/usr/include/libdrm \
+        -I$(DRM_PREFIX)/usr/include/omap \
         -D_GNU_SOURCE -Wall @AM_CFLAGS@
 VPATH = ../../../packages/ti/ipc/tests
 
@@ -129,7 +133,9 @@ NameServerApp_SOURCES = $(nameServer_common_sources)
 nano_test_SOURCES = $(common_sources) nano_test.c
 
 common_libraries = -lpthread $(top_builddir)/linux/src/api/libtiipc.la \
-                $(top_builddir)/linux/src/utils/libtiipcutils.la
+                $(top_builddir)/linux/src/utils/libtiipcutils.la \
+                $(DRM_PREFIX)/usr/lib/libdrm.la \
+                $(DRM_PREFIX)/usr/lib/libdrm_omap.la
 
 # the additional libraries to link ping_rpmsg
 ping_rpmsg_LDADD = -lrt