Moved mmrpc_test.c to common directory, it's used by both Linux and QNX.
authorRamsey Harris <ramsey@ti.com>
Wed, 20 Mar 2013 05:50:15 +0000 (22:50 -0700)
committerRamsey Harris <ramsey@ti.com>
Wed, 20 Mar 2013 05:50:15 +0000 (22:50 -0700)
In order to minimize duplicate code, I moved the mmrpc_test.c source
file from a Linux folder to a common location in packages/ti/ipc/tests.
The Linux and QNX makefiles live in their respective linux and qnx
folders.

linux/src/tests/Makefile.am
packages/ti/ipc/tests/mmrpc_test.c [moved from linux/src/tests/mmrpc_test.c with 100% similarity]
packages/ti/ipc/tests/package.bld
qnx/src/tests/mmrpc_test/common.mk

index 00c0c88fda923b2d54801cac29f0b7e4475d9196..d24dbd596fabca8e0d83f2928c47cb377f19f0c2 100644 (file)
@@ -34,6 +34,7 @@
 # additional include paths necessary to compile the program
 AM_CFLAGS = -I$(top_srcdir)/linux/include -I$(top_srcdir)/packages  \
         -I$(CMEM_INSTALL_DIR)/packages -D_GNU_SOURCE -Wall @AM_CFLAGS@
+VPATH = ../../../packages/ti/ipc/tests
 
 ###############################################################################
 # THE PROGRAMS TO BUILD
index 221550a2665b81589d9f9d738c7aef979018dae0..f70b9b983dc0a7bce25f984f2d9a8a8d81a10d99 100644 (file)
@@ -37,6 +37,8 @@
 var Build = xdc.useModule('xdc.bld.BuildEnvironment');
 var Pkg = xdc.useModule('xdc.bld.PackageContents');
 
+Pkg.otherFiles = [ "mmrpc_test.c" ];
+
 /* when constructing a release, release everything */
 Pkg.attrs.exportAll = true;
 
index dd67b19722141b29900606b2641232288b3160e6..007b57e9736900acfa790fd1c74d03ecba485f51 100644 (file)
@@ -47,7 +47,7 @@ INSTALLDIR = /dev/null
 CCOPTS += -DSYSLINK_BUILDOS_QNX
 
 # source path
-EXTRA_SRCVPATH = $(IPC_REPO)/linux/src/tests
+EXTRA_SRCVPATH = $(IPC_REPO)/packages/ti/ipc/tests
 SRCS = mmrpc_test.c
 
 EXCLUDE_OBJS =