.gitignore left out k2e/k2l makefile
authorJohn Dowdal <jdowdal@ti.com>
Thu, 12 Dec 2013 15:28:41 +0000 (10:28 -0500)
committerJohn Dowdal <jdowdal@ti.com>
Thu, 12 Dec 2013 15:28:41 +0000 (10:28 -0500)
.gitignore [changed mode: 0644->0755]
test/k2e/armv7/linux/build/makefile [new file with mode: 0755]
test/k2l/armv7/linux/build/makefile [new file with mode: 0755]

old mode 100644 (file)
new mode 100755 (executable)
index ce1c359..f97d631
@@ -14,8 +14,8 @@ docs/Doxyfile
 docs/doxygen/
 docs/rmDocs.chm
 lib/
+/makefile
 package.mak
 package/
 packages/
 install/
-makefile
diff --git a/test/k2e/armv7/linux/build/makefile b/test/k2e/armv7/linux/build/makefile
new file mode 100755 (executable)
index 0000000..74867ff
--- /dev/null
@@ -0,0 +1,127 @@
+#
+# Macro definitions referenced below
+#
+
+empty =
+space =$(empty) $(empty)
+
+PDK_INSTALL_PATH ?= ../../..
+# IPC_DEVKIT_INSTALL_PATH ?= need/to/set/path
+# export IPC_DEVKIT_INSTALL_PATH if IPC is not in /usr/lib
+# Currently requiring IPC from linux-devkit because that package is compiled with Linaro tools
+
+ARMV7OBJDIR ?= ./obj/$(DEVICE)
+ARMV7BINDIR ?= ./bin/$(DEVICE)
+ARMV7LIBDIR ?= ./lib
+
+ARMV7OBJDIR := $(ARMV7OBJDIR)/rm/test
+ARMV7BINDIR := $(ARMV7BINDIR)/rm/test
+
+#Cross tools
+ifdef CROSS_TOOL_INSTALL_PATH
+# Support backwards compatibility with KeyStone1 approach
+ CC = $(CROSS_TOOL_INSTALL_PATH)/$(CROSS_TOOL_PRFX)gcc
+ AC = $(CROSS_TOOL_INSTALL_PATH)/$(CROSS_TOOL_PRFX)as
+ AR = $(CROSS_TOOL_INSTALL_PATH)/$(CROSS_TOOL_PRFX)ar
+ LD = $(CROSS_TOOL_INSTALL_PATH)/$(CROSS_TOOL_PRFX)gcc
+endif
+
+ifdef IPC_DEVKIT_INSTALL_PATH
+  IPCLIBDIRS := -L$(IPC_DEVKIT_INSTALL_PATH)/lib/
+else
+  IPCLIBDIRS :=
+endif
+
+# INCLUDE Directories
+RM_INC_DIR = $(PDK_INSTALL_PATH)/ti/drv/rm
+
+RM_SRC_DIR ?= $(PDK_INSTALL_PATH)/ti/drv/rm
+RM_TEST_DIR = $(RM_SRC_DIR)/test
+RM_ARM_LIN_TEST_DIR = $(RM_TEST_DIR)/$(DEVICE)/armv7/linux
+
+INCDIR := $(PDK_INSTALL_PATH);$(RM_INC_DIR);$(RM_ARM_LIN_TEST_DIR);$(IPC_DEVKIT_INSTALL_PATH)/include
+
+# Libraries
+RM_LIB = -lrm
+IPC_LIBS = -ltiipc -ltiipcutils
+
+ifeq ($(USEDYNAMIC_LIB), yes)
+#presuming ARM executable would depend on dynamic library dependency
+EXE_EXTN = _so
+LIBS     = $(RM_LIB)
+else
+#forcing ARM executable to depend on static LLD libraries
+EXE_EXTN =
+LIBS     = -static $(RM_LIB) -Wl,-Bdynamic
+endif
+
+# Compiler options
+INTERNALDEFS = $(DEBUG_FLAG) -D__ARMv7 -DDEVICE_K2E -D_VIRTUAL_ADDR_SUPPORT -D__LINUX_USER_SPACE -D_LITTLE_ENDIAN=1 -DMAKEFILE_BUILD
+
+# Linker options
+INTERNALLINKDEFS = -Wl,--start-group -L $(ARMV7LIBDIR) $(LIBS) -lrt -Wl,--end-group -pthread $(LDFLAGS)
+IPC_INTERNALLINKDEFS = -Wl,--start-group -L $(ARMV7LIBDIR) $(IPCLIBDIRS) $(IPC_LIBS) -lrt -Wl,--end-group -pthread $(LDFLAGS)
+
+RM_SERVER_EXE=rmServer$(EXE_EXTN).out
+RM_LINUX_CLIENT_TEST_EXE=rmLinuxClientTest$(EXE_EXTN).out
+RM_DSP_CLIENT_TEST_EXE=rmDspClientTest$(EXE_EXTN).out
+
+OBJEXT = o 
+
+SRCDIR = $(RM_ARM_LIN_TEST_DIR)
+
+INCS = -I. -I$(strip $(subst ;, -I,$(INCDIR)))
+
+VPATH=$(SRCDIR)
+
+#List the Source Files
+RM_SERVER_SRC =     \
+    rm_server.c     \
+    rm_linux_osal.c \
+    sockutils.c
+    
+RM_LINUX_CLIENT_TEST_SRC = \
+    rm_linux_client_test.c \
+    rm_linux_osal.c        \
+    sockutils.c
+
+RM_DSP_CLIENT_TEST_SRC = \
+    rm_dsp_client_test.c \
+    sockutils.c    
+
+# FLAGS for the SourceFiles
+SRC_CFLAGS = -I. $(CFLAGS)
+
+# Make Rule for the SRC Files
+RM_SERVER_SRC_OBJS = $(patsubst %.c, $(ARMV7OBJDIR)/%.$(OBJEXT), $(RM_SERVER_SRC))
+RM_LINUX_CLIENT_TEST_SRC_OBJS = $(patsubst %.c, $(ARMV7OBJDIR)/%.$(OBJEXT), $(RM_LINUX_CLIENT_TEST_SRC))
+RM_DSP_CLIENT_TEST_SRC_OBJS = $(patsubst %.c, $(ARMV7OBJDIR)/%.$(OBJEXT), $(RM_DSP_CLIENT_TEST_SRC))
+
+all:$(ARMV7BINDIR)/$(RM_SERVER_EXE) $(ARMV7BINDIR)/$(RM_LINUX_CLIENT_TEST_EXE) $(ARMV7BINDIR)/$(RM_DSP_CLIENT_TEST_EXE)
+
+$(ARMV7BINDIR)/$(RM_SERVER_EXE): $(RM_SERVER_SRC_OBJS) $(ARMV7BINDIR)/.created
+       @echo linking $(RM_SERVER_SRC_OBJS) into $@ ...
+       @$(CC) $(RM_SERVER_SRC_OBJS) $(INTERNALLINKDEFS) -o $@
+$(ARMV7BINDIR)/$(RM_LINUX_CLIENT_TEST_EXE): $(RM_LINUX_CLIENT_TEST_SRC_OBJS) $(ARMV7BINDIR)/.created
+       @echo linking $(RM_LINUX_CLIENT_TEST_SRC_OBJS) into $@ ...
+       @$(CC) $(RM_LINUX_CLIENT_TEST_SRC_OBJS) $(INTERNALLINKDEFS) -o $@
+$(ARMV7BINDIR)/$(RM_DSP_CLIENT_TEST_EXE): $(RM_DSP_CLIENT_TEST_SRC_OBJS) $(ARMV7BINDIR)/.created
+       @echo linking $(RM_DSP_CLIENT_TEST_SRC_OBJS) into $@ ...
+       @$(CC) $(RM_DSP_CLIENT_TEST_SRC_OBJS) $(IPC_INTERNALLINKDEFS) -o $@     
+
+$(ARMV7OBJDIR)/%.$(OBJEXT): %.c $(ARMV7OBJDIR)/.created
+       @echo compiling $< ...
+       @$(CC) -c $(SRC_CFLAGS) $(INTERNALDEFS) $(INCS)  $< -o $@
+
+$(ARMV7OBJDIR)/.created:
+       @mkdir -p $(ARMV7OBJDIR)
+       @touch $(ARMV7OBJDIR)/.created
+
+$(ARMV7BINDIR)/.created:
+       @mkdir -p $(ARMV7BINDIR)
+       @touch $(ARMV7BINDIR)/.created
+
+clean:
+       @rm -fr $(ARMV7OBJDIR)
+       @rm -fr $(ARMV7BINDIR)
+
diff --git a/test/k2l/armv7/linux/build/makefile b/test/k2l/armv7/linux/build/makefile
new file mode 100755 (executable)
index 0000000..d906dfa
--- /dev/null
@@ -0,0 +1,127 @@
+#
+# Macro definitions referenced below
+#
+
+empty =
+space =$(empty) $(empty)
+
+PDK_INSTALL_PATH ?= ../../..
+# IPC_DEVKIT_INSTALL_PATH ?= need/to/set/path
+# export IPC_DEVKIT_INSTALL_PATH if IPC is not in /usr/lib
+# Currently requiring IPC from linux-devkit because that package is compiled with Linaro tools
+
+ARMV7OBJDIR ?= ./obj/$(DEVICE)
+ARMV7BINDIR ?= ./bin/$(DEVICE)
+ARMV7LIBDIR ?= ./lib
+
+ARMV7OBJDIR := $(ARMV7OBJDIR)/rm/test
+ARMV7BINDIR := $(ARMV7BINDIR)/rm/test
+
+#Cross tools
+ifdef CROSS_TOOL_INSTALL_PATH
+# Support backwards compatibility with KeyStone1 approach
+ CC = $(CROSS_TOOL_INSTALL_PATH)/$(CROSS_TOOL_PRFX)gcc
+ AC = $(CROSS_TOOL_INSTALL_PATH)/$(CROSS_TOOL_PRFX)as
+ AR = $(CROSS_TOOL_INSTALL_PATH)/$(CROSS_TOOL_PRFX)ar
+ LD = $(CROSS_TOOL_INSTALL_PATH)/$(CROSS_TOOL_PRFX)gcc
+endif
+
+ifdef IPC_DEVKIT_INSTALL_PATH
+  IPCLIBDIRS := -L$(IPC_DEVKIT_INSTALL_PATH)/lib/
+else
+  IPCLIBDIRS :=
+endif
+
+# INCLUDE Directories
+RM_INC_DIR = $(PDK_INSTALL_PATH)/ti/drv/rm
+
+RM_SRC_DIR ?= $(PDK_INSTALL_PATH)/ti/drv/rm
+RM_TEST_DIR = $(RM_SRC_DIR)/test
+RM_ARM_LIN_TEST_DIR = $(RM_TEST_DIR)/$(DEVICE)/armv7/linux
+
+INCDIR := $(PDK_INSTALL_PATH);$(RM_INC_DIR);$(RM_ARM_LIN_TEST_DIR);$(IPC_DEVKIT_INSTALL_PATH)/include
+
+# Libraries
+RM_LIB = -lrm
+IPC_LIBS = -ltiipc -ltiipcutils
+
+ifeq ($(USEDYNAMIC_LIB), yes)
+#presuming ARM executable would depend on dynamic library dependency
+EXE_EXTN = _so
+LIBS     = $(RM_LIB)
+else
+#forcing ARM executable to depend on static LLD libraries
+EXE_EXTN =
+LIBS     = -static $(RM_LIB) -Wl,-Bdynamic
+endif
+
+# Compiler options
+INTERNALDEFS = $(DEBUG_FLAG) -D__ARMv7 -DDEVICE_K2L -D_VIRTUAL_ADDR_SUPPORT -D__LINUX_USER_SPACE -D_LITTLE_ENDIAN=1 -DMAKEFILE_BUILD
+
+# Linker options
+INTERNALLINKDEFS = -Wl,--start-group -L $(ARMV7LIBDIR) $(LIBS) -lrt -Wl,--end-group -pthread $(LDFLAGS)
+IPC_INTERNALLINKDEFS = -Wl,--start-group -L $(ARMV7LIBDIR) $(IPCLIBDIRS) $(IPC_LIBS) -lrt -Wl,--end-group -pthread $(LDFLAGS)
+
+RM_SERVER_EXE=rmServer$(EXE_EXTN).out
+RM_LINUX_CLIENT_TEST_EXE=rmLinuxClientTest$(EXE_EXTN).out
+RM_DSP_CLIENT_TEST_EXE=rmDspClientTest$(EXE_EXTN).out
+
+OBJEXT = o 
+
+SRCDIR = $(RM_ARM_LIN_TEST_DIR)
+
+INCS = -I. -I$(strip $(subst ;, -I,$(INCDIR)))
+
+VPATH=$(SRCDIR)
+
+#List the Source Files
+RM_SERVER_SRC =     \
+    rm_server.c     \
+    rm_linux_osal.c \
+    sockutils.c
+    
+RM_LINUX_CLIENT_TEST_SRC = \
+    rm_linux_client_test.c \
+    rm_linux_osal.c        \
+    sockutils.c
+
+RM_DSP_CLIENT_TEST_SRC = \
+    rm_dsp_client_test.c \
+    sockutils.c    
+
+# FLAGS for the SourceFiles
+SRC_CFLAGS = -I. $(CFLAGS)
+
+# Make Rule for the SRC Files
+RM_SERVER_SRC_OBJS = $(patsubst %.c, $(ARMV7OBJDIR)/%.$(OBJEXT), $(RM_SERVER_SRC))
+RM_LINUX_CLIENT_TEST_SRC_OBJS = $(patsubst %.c, $(ARMV7OBJDIR)/%.$(OBJEXT), $(RM_LINUX_CLIENT_TEST_SRC))
+RM_DSP_CLIENT_TEST_SRC_OBJS = $(patsubst %.c, $(ARMV7OBJDIR)/%.$(OBJEXT), $(RM_DSP_CLIENT_TEST_SRC))
+
+all:$(ARMV7BINDIR)/$(RM_SERVER_EXE) $(ARMV7BINDIR)/$(RM_LINUX_CLIENT_TEST_EXE) $(ARMV7BINDIR)/$(RM_DSP_CLIENT_TEST_EXE)
+
+$(ARMV7BINDIR)/$(RM_SERVER_EXE): $(RM_SERVER_SRC_OBJS) $(ARMV7BINDIR)/.created
+       @echo linking $(RM_SERVER_SRC_OBJS) into $@ ...
+       @$(CC) $(RM_SERVER_SRC_OBJS) $(INTERNALLINKDEFS) -o $@
+$(ARMV7BINDIR)/$(RM_LINUX_CLIENT_TEST_EXE): $(RM_LINUX_CLIENT_TEST_SRC_OBJS) $(ARMV7BINDIR)/.created
+       @echo linking $(RM_LINUX_CLIENT_TEST_SRC_OBJS) into $@ ...
+       @$(CC) $(RM_LINUX_CLIENT_TEST_SRC_OBJS) $(INTERNALLINKDEFS) -o $@
+$(ARMV7BINDIR)/$(RM_DSP_CLIENT_TEST_EXE): $(RM_DSP_CLIENT_TEST_SRC_OBJS) $(ARMV7BINDIR)/.created
+       @echo linking $(RM_DSP_CLIENT_TEST_SRC_OBJS) into $@ ...
+       @$(CC) $(RM_DSP_CLIENT_TEST_SRC_OBJS) $(IPC_INTERNALLINKDEFS) -o $@     
+
+$(ARMV7OBJDIR)/%.$(OBJEXT): %.c $(ARMV7OBJDIR)/.created
+       @echo compiling $< ...
+       @$(CC) -c $(SRC_CFLAGS) $(INTERNALDEFS) $(INCS)  $< -o $@
+
+$(ARMV7OBJDIR)/.created:
+       @mkdir -p $(ARMV7OBJDIR)
+       @touch $(ARMV7OBJDIR)/.created
+
+$(ARMV7BINDIR)/.created:
+       @mkdir -p $(ARMV7BINDIR)
+       @touch $(ARMV7BINDIR)/.created
+
+clean:
+       @rm -fr $(ARMV7OBJDIR)
+       @rm -fr $(ARMV7BINDIR)
+