summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 54713fe)
raw | patch | inline | side by side (parent: 54713fe)
author | Jianzhong Xu <a0869574@ti.com> | |
Fri, 24 Apr 2015 19:31:05 +0000 (15:31 -0400) | ||
committer | Jianzhong Xu <a0869574@ti.com> | |
Fri, 24 Apr 2015 19:31:05 +0000 (15:31 -0400) |
make.inc | patch | blob | history |
diff --git a/make.inc b/make.inc
index 0ee8cc62dff1273fffd9107c988debf65750840a..c0736992b369fb328287cff456e5731052b65df1 100644 (file)
--- a/make.inc
+++ b/make.inc
-DSP_INCLUDE = -I$(TI_OCL_CGT_INSTALL)/include
+#DSP_INCLUDE = -I$(TI_OCL_CGT_INSTALL)/include
DSP_INCLUDE += -I$(TARGET_ROOTDIR)/usr/share/ti/cgt-c6x/include
DSP_INCLUDE += -I$(TARGET_ROOTDIR)/usr/share/ti/opencl
-DSP_INCLUDE += -I$(TI_OCL_INSTALL_DIR)/include
+#DSP_INCLUDE += -I$(TI_OCL_INSTALL_DIR)/include
CPP = g++
CL6X = cl6x -mv6600 --abi=eabi $(DSP_INCLUDE)
ifeq ($(TARGET_ROOTDIR),)
$(error Environment variable TARGET_ROOTDIR must be defined. Set it to point at the EVM root file system)
endif
+ ifeq ($(OMP_DIR),)
+ $(error Environment variable OMP_DIR must be defined. Set it to point at the OpenMP for DSP Installation Directory, or run the setup_hpc_env script available in the MCSDK-HPC installation)
+ endif
endif
# gcc ARM cross compiler will not, by default, search the host's
cross: LD_FLAGS = -L$(TARGET_ROOTDIR)/lib -L$(TARGET_ROOTDIR)/usr/lib -Wl,-rpath-link,$(TARGET_ROOTDIR)/lib -Wl,-rpath-link,$(TARGET_ROOTDIR)/usr/lib
endif
+define FIND_DSP_PKG
+ export $(1)?=$$(patsubst %/$(3),%,$$(lastword $$(sort $$(wildcard $$(TI_SEARCH_PATH)/$(2)/$(3)))))
+ ifeq ($$($(1)),)
+ $$(error ERROR - $(1) is not defined and could not be found in $(TI_SEARCH_PATH)/ )
+ else
+ ifeq ($$(wildcard $$($(1))/$(3)),)
+ $$(error ERROR - "$(1) = $$($(1))" Is not valid!)
+ endif
+ endif
+ $$(info Using $(1) = $$($(1)))
+endef
+
%.o: %.cpp
@echo Compiling $<
$(CPP) -c $(CPP_FLAGS) $<
test: clean $(EXE)
@echo Running $(EXE)
@./$(EXE) >> /dev/null
- @if [ $$? -ne 0 ] ; then echo "FAILED !!!" ; fi
+ @if [ $$? -ne 0 ] ; then echo "FAILED !!!" ; fi
\ No newline at end of file