Added missing platform files.
authorJianzhong Xu <xuj@ti.com>
Mon, 21 Mar 2016 21:33:26 +0000 (17:33 -0400)
committerJianzhong Xu <xuj@ti.com>
Mon, 21 Mar 2016 21:33:26 +0000 (17:33 -0400)
build/Makefile

index 7358e2c69a085b9e6a26f65d94cad03de3825c3a..2d925b4212231aacb70c978ec93f4f14b30b14c9 100644 (file)
@@ -50,12 +50,10 @@ ifeq ($(LIBOS),LIB_RTOS)
 BUILD_MESSAGE = "building linalg for TI-RTOS"
 MAKE_TARGET = DSPlibs
 CLEAN_TARGET = cleanDSPlibs
-EXAMPLES = examples/dsponly
 else ifeq ($(LIBOS),LIB_OPENCL)
 BUILD_MESSAGE = "building linalg for TI-OpenCL"
 MAKE_TARGET = ARMplusDSP
 CLEAN_TARGET = cleanARMplusDSP
-EXAMPLES = examples/arm+dsp
 else
 $(call error, ERROR - LIBOS NOT DEFINED. Must specify one of: LIBOS=LIB_RTOS, or LIBOS=LIB_OPENCL)
 endif
@@ -79,6 +77,8 @@ all: package
        @echo "making platform directories ..."
        $(XDC) clean --xdcpath="$(BIOS_DIR)/packages" -PR $(SRC_PATH)/platforms
        $(XDC) --xdcpath "$(XDCPATH)" -PR $(SRC_PATH)/platforms
+       @cp -R $(LINALG_BASE_DIR)/src/ti/linalg/platforms/evm6678/package exports/$(PACKAGE_NAME)/packages/ti/linalg/platforms/evm6678/
+       @cp    $(LINALG_BASE_DIR)/src/ti/linalg/platforms/evm6678/package.mak exports/$(PACKAGE_NAME)/packages/ti/linalg/platforms/evm6678/
 
 .eclipse: .exports
        @echo creating product plugin
@@ -100,13 +100,16 @@ all: package
        @echo "generating Doxygen document"
        cd $(LINALG_BASE_DIR)/src/ti/linalg; doxygen ./docs/doxygen/doxycfg.txt
 
-#.product: .libs_c6678 .exports .docs .platforms .examples
+ifeq ($(LIBOS),LIB_RTOS)
 package: .exports .lib .docs .platforms .eclipse
+else
+package: .exports .lib .docs
+endif
        @echo "copying files ..."
        @cp -R $(LINALG_BASE_DIR)/src/ti/linalg/lib exports/$(PACKAGE_NAME)/packages/ti/linalg
        @cp    $(LINALG_BASE_DIR)/src/ti/linalg/include/* exports/$(PACKAGE_NAME)/packages/ti/linalg
        @cp -R $(LINALG_BASE_DIR)/src/ti/linalg/docs exports/$(PACKAGE_NAME)
-       @cp -R $(LINALG_BASE_DIR)/$(EXAMPLES)/* exports/$(PACKAGE_NAME)/examples/
+       @cp -R $(LINALG_BASE_DIR)/examples/* exports/$(PACKAGE_NAME)/examples/
        @echo "archive files to tar ball ..."
        @cd exports; zip -q -r $(PACKAGE_NAME).zip $(PACKAGE_NAME)