Added cify script and test dts files to yocto install
[keystone-rtos/rm-lld.git] / makefile_armv7
index b6730fdef3ca87c786a98faf9b08175525bf2e26..cef69f900c94116b74aa1f7fa248bcb4443b51df 100644 (file)
@@ -20,11 +20,6 @@ export ARMV7BINDIR ?= ./bin/$(DEVICE)
 # ROOT Directory
 export ROOTDIR := ../../..
 
-# INSTALL default paths
-export INSTALL_BIN_BASE_DIR ?= ./install/bin
-export INSTALL_INC_BASE_DIR ?= ./install/include
-export INSTALL_LIB_BASE_DIR ?= ./install/lib
-
 # INCLUDE Directory
 export INCDIR := ../../..;$(PDK_INSTALL_PATH);$(ROOTDIR)
 
@@ -53,20 +48,18 @@ export MAKE = make
 endif
 
 # PHONY Targets
-#.PHONY: all clean lib tests install installbin
-.PHONY: all clean lib install installbin
+.PHONY: all examples clean lib tests install installbin
 
 # all rule
-all: .executables install installbin
-#.executables: lib tests
-.executables: lib
+all: .executables 
+.executables: lib tests
 
 # Libraries
 lib: .libraries
 
 # tests Stub to add tests
-#tests: 
-#      @$(MAKE) -f ./test/$(DEVICE)/armv7/linux/build/makefile all
+tests: 
+       @$(MAKE) -f ./test/$(DEVICE)/armv7/linux/build/makefile all
 
 # examples Stub to add Examples
 #examples: 
@@ -75,22 +68,22 @@ lib: .libraries
 # Make rule to create $(ARMV7LIBDIR)/librm.a library
 .libraries: $(ARMV7LIBDIR)/librm.a
 
-$(ARMV7LIBDIR)/librm.a:
+$(ARMV7LIBDIR)/librm.a::
        @$(MAKE) -f ./build/armv7/librm_aearmv7.mk $@
 
 # Rule to clean $(ARMV7LIBDIR)/librm.a library
 clean:
        @$(MAKE) -f ./build/armv7/librm_aearmv7.mk $@
-#      @$(MAKE) -f ./test/$(DEVICE)/armv7/linux/build/makefile $@
+       @$(MAKE) -f ./test/$(DEVICE)/armv7/linux/build/makefile $@
        @$(RMDIR) $(ARMV7OBJDIR)/rm
        @$(RMDIR) $(ARMV7BINDIR)/rm
        @$(RM) $(ARMV7LIBDIR)/librm.a
 
 installbin:
        install -d $(INSTALL_BIN_BASE_DIR)
-#      install -c -m 755 $(ARMV7BINDIR)/rm/test/rmTest.out    $(INSTALL_BIN_BASE_DIR)/rmTest_$(DEVICE).out
-#      install -c -m 755 $(ARMV7BINDIR)/rm/test/rmMemTest.out    $(INSTALL_BIN_BASE_DIR)/rmMemTest_$(DEVICE).out       
-#      install -c -m 755 $(ARMV7BINDIR)/rm/test/rmSharedTest.out    $(INSTALL_BIN_BASE_DIR)/rmSharedTest_$(DEVICE).out
+       install -c -m 755 $(ARMV7BINDIR)/rm/test/rmServer.out    $(INSTALL_BIN_BASE_DIR)/rmServer_$(DEVICE).out
+       install -c -m 755 $(ARMV7BINDIR)/rm/test/rmLinuxClientTest.out    $(INSTALL_BIN_BASE_DIR)/rmLinuxClientTest_$(DEVICE).out
+       install -c -m 755 $(ARMV7BINDIR)/rm/test/rmDspClientTest.out    $(INSTALL_BIN_BASE_DIR)/rmDspClientTest_$(DEVICE).out   
 
 install:
        install -d $(INSTALL_INC_BASE_DIR)/ti/drv/rm/include
@@ -102,11 +95,17 @@ install:
        $(CP) ./*.h                $(INSTALL_INC_BASE_DIR)/ti/drv/rm
        $(CP) ./include/*.h        $(INSTALL_INC_BASE_DIR)/ti/drv/rm/include
        $(CP) ./util/*.h        $(INSTALL_INC_BASE_DIR)/ti/drv/rm/util
+       $(CP) ./util/*.sh        $(INSTALL_INC_BASE_DIR)/ti/drv/rm/util 
        $(CP) ./util/libfdt/*.h $(INSTALL_INC_BASE_DIR)/ti/drv/rm/util/libfdt   
        $(CP) ./device/k2h/*.c $(INSTALL_INC_BASE_DIR)/ti/drv/rm/device/k2h
        $(CP) ./device/k2h/*.dtb $(INSTALL_INC_BASE_DIR)/ti/drv/rm/device/k2h
        $(CP) ./device/k2h/*.dts $(INSTALL_INC_BASE_DIR)/ti/drv/rm/device/k2h           
        $(CP) ./device/k2k/*.c $(INSTALL_INC_BASE_DIR)/ti/drv/rm/device/k2k     
        $(CP) ./device/k2k/*.dtb $(INSTALL_INC_BASE_DIR)/ti/drv/rm/device/k2k   
-       $(CP) ./device/k2k/*.dts $(INSTALL_INC_BASE_DIR)/ti/drv/rm/device/k2k           
-       @$(CP) -r $(ARMV7LIBDIR)/*.a         $(INSTALL_LIB_BASE_DIR)
\ No newline at end of file
+       $(CP) ./device/k2k/*.dts $(INSTALL_INC_BASE_DIR)/ti/drv/rm/device/k2k   
+       $(CP) ./test/dts_files/*.c $(INSTALL_INC_BASE_DIR)/ti/drv/rm/test/dts_files     
+       $(CP) ./test/dts_files/*.dtb $(INSTALL_INC_BASE_DIR)/ti/drv/rm/test/dts_files   
+       $(CP) ./test/dts_files/*.dts $(INSTALL_INC_BASE_DIR)/ti/drv/rm/test/dts_files           
+       @$(CP) -r $(ARMV7LIBDIR)/*.a         $(INSTALL_LIB_BASE_DIR)
+# Make rule to create examples Stub
+examples: