summaryrefslogtreecommitdiff
path: root/packages/dsplink/files/c64xx_5.xx_linux.mk
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2008-05-15 18:13:07 +0000
committerKoen Kooi <koen@openembedded.org>2008-05-15 18:13:07 +0000
commit3f7b97b5cb3650e3559748f10c6de64b24af07f4 (patch)
tree32819041807230d897308f46b58db702e1821549 /packages/dsplink/files/c64xx_5.xx_linux.mk
parent5384da8d9f6a9323eeb30b4110b1deb277f23912 (diff)
dsplink: make files generic and use sed to make it more specific
* sed is awesome * in the future machines can set vars to control the sed'ing, e.g. DSPTYPE=davinci,DSPARCH=c64x
Diffstat (limited to 'packages/dsplink/files/c64xx_5.xx_linux.mk')
-rw-r--r--packages/dsplink/files/c64xx_5.xx_linux.mk223
1 files changed, 223 insertions, 0 deletions
diff --git a/packages/dsplink/files/c64xx_5.xx_linux.mk b/packages/dsplink/files/c64xx_5.xx_linux.mk
new file mode 100644
index 0000000000..d0b27d7a55
--- /dev/null
+++ b/packages/dsplink/files/c64xx_5.xx_linux.mk
@@ -0,0 +1,223 @@
+# ============================================================================
+# @file c64xx_5.xx_linux.mk
+#
+# @path $(DSPLINK)/make/DspBios/
+#
+# @desc This makefile defines OS specific macros used by MAKE system for
+# the DSP/BIOS version 5.xx for C64XX on Linux.
+#
+# @ver 1.50
+# ============================================================================
+# Copyright (c) Texas Instruments Incorporated 2002-2007
+#
+# Use of this software is controlled by the terms and conditions found in the
+# license agreement under which this software has been supplied or provided.
+# ============================================================================
+
+
+ifndef C64XX_5_XX_LINUX_MK
+
+define C64XX_5_XX_LINUX_MK
+endef
+
+
+# ============================================================================
+# Let the make system know that a specific distribution for the GPP OS
+# is being used.
+# ============================================================================
+USE_DISTRIBUTION := 1
+
+
+# ============================================================================
+# Set the values of necessary variables to be used for the OS.
+# ============================================================================
+
+# ----------------------------------------------------------------------------
+# Base directory for the DSP OS
+# ----------------------------------------------------------------------------
+BASE_INSTALL := /opt/ti-tools
+BASE_SABIOS := $(BASE_INSTALL)/bios
+BASE_BUILDOS := $(BASE_SABIOS)/packages/ti/bios
+
+# ----------------------------------------------------------------------------
+# Base directory for the XDC tools
+# ----------------------------------------------------------------------------
+XDCTOOLS_DIR := $(BASE_SABIOS)/xdctools
+
+# ----------------------------------------------------------------------------
+# Base for code generation tools - compiler, linker, archiver etc.
+# ----------------------------------------------------------------------------
+BASE_CGTOOLS := $(BASE_INSTALL)/c6000/cgtools
+BASE_CGTOOLSBIN := $(BASE_CGTOOLS)/bin
+
+# ----------------------------------------------------------------------------
+# Base for TCONF, platform files and dependent components
+# ----------------------------------------------------------------------------
+BASE_TCONF := $(XDCTOOLS_DIR)
+BASE_PLATFORMS := $(BASE_SABIOS)/packages
+BASE_CSL := $(BASE_INSTALL)/c6000/csl
+BASE_PSL := $(BASE_SABIOS)/packages/ti/psl
+BASE_RTDX := $(BASE_SABIOS)/packages/ti/rtdx
+
+
+# ----------------------------------------------------------------------------
+# Base directory for include files
+# ----------------------------------------------------------------------------
+BASE_OSINC := $(BASE_BUILDOS)/include
+BASE_CGTOOLSINC := $(BASE_CGTOOLS)/include
+BASE_RTDXINC := $(BASE_RTDX)/include/c6000
+BASE_PSLINC := $(BASE_PSL)/include
+BASE_CSLINC := $(BASE_CSL)/include
+
+OSINC_GENERIC := $(BASE_OSINC)
+OSINC_PLATFORM := $(BASE_CGTOOLSINC) $(BASE_CSLINC) $(BASE_RTDXINC) $(BASE_PSLINC)
+
+
+ifeq ($(PLATFORM), morpheus_dev)
+OSINC_PLATFORM += $(BASE_INSTALL)/boards/evmdm642/include
+endif # ifeq ($(PLATFORM), morpheus_dev)
+
+ifneq ("$(VARIANT)", "")
+OSINC_VARIANT := $(BASE_OSINC)
+endif
+
+
+# ----------------------------------------------------------------------------
+# Base directory for libraries
+# ----------------------------------------------------------------------------
+BASE_OSLIB := $(BASE_BUILDOS)/lib
+BASE_CGTOOLSLIB := $(BASE_CGTOOLS)/lib
+BASE_RTDXLIB := $(BASE_RTDX)/lib/c6000
+BASE_PSLLIB := $(BASE_PSL)/lib
+BASE_CSLLIB := $(BASE_CSL)/lib
+
+OSLIB_GENERIC := $(BASE_OSLIB)
+OSLIB_PLATFORM := $(BASE_CGTOOLSLIB) $(BASE_RTDXLIB) \
+ $(BASE_PSLLIB) $(BASE_CSLLIB)
+
+ifeq ($(PLATFORM), morpheus_dev)
+OSLIB_PLATFORM += $(BASE_INSTALL)/boards/evmdm642/lib
+endif # ifeq ($(PLATFORM), morpheus_dev)
+
+ifeq ($(PLATFORM), DM642_PCI)
+OSLIB_PLATFORM += $(BASE_INSTALL)/boards/evmdm642/lib
+endif # ifeq ($(PLATFORM), DM642_PCI)
+
+ifneq ("$(VARIANT)", "")
+OSLIB_VARIANT := $(BASE_OSLIB)
+endif
+
+
+# ============================================================================
+# COMPILER
+# ============================================================================
+
+# ----------------------------------------------------------------------------
+# Name of the compiler
+# ----------------------------------------------------------------------------
+COMPILER := $(BASE_CGTOOLSBIN)/cl6x
+
+# ----------------------------------------------------------------------------
+# Command line switches used by the compiler
+#
+# CC_SW_DEF Command line defines
+# CC_SW_INC Search path for header files
+# CC_SW_OBJ Object file directory
+# CC_SW_DEB Include debug information
+# CC_SW_REL Release build
+# ----------------------------------------------------------------------------
+CC_SW_DEF := -d
+CC_SW_INC := -I
+CC_SW_OBJ := -fr
+CC_SW_DEB := -g -d"_DEBUG"
+CC_SW_REL := -o3
+
+# ----------------------------------------------------------------------------
+# Standard flags for the compiler
+# ----------------------------------------------------------------------------
+STD_CC_FLAGS := -q -pdr -pdv -pden -ml3 -mv6400 -d"CHIP_DM642"
+
+# ----------------------------------------------------------------------------
+# Standard flags for the compiler when building an executable
+# ----------------------------------------------------------------------------
+EXE_CC_FLAGS :=
+
+# ----------------------------------------------------------------------------
+# Flags for the compiler when building an archive
+# ----------------------------------------------------------------------------
+ARC_CC_FLAGS :=
+
+# ----------------------------------------------------------------------------
+# Standard definitions for the compiler
+# ----------------------------------------------------------------------------
+STD_CC_DEFNS :=
+
+
+# ============================================================================
+# ARCHIVER
+# ============================================================================
+ARCHIVER := $(BASE_CGTOOLSBIN)/ar6x
+
+# ----------------------------------------------------------------------------
+# Standard flags for the archiver
+# ----------------------------------------------------------------------------
+STD_AR_FLAGS := -r
+
+# ----------------------------------------------------------------------------
+# Archiver flags for extracting object files
+# ----------------------------------------------------------------------------
+EXT_AR_FLAGS := xq
+
+
+# ============================================================================
+# LINKER
+# ============================================================================
+LINKER := $(BASE_CGTOOLSBIN)/cl6x -z
+
+# ----------------------------------------------------------------------------
+# Command line switches used by the linker
+#
+# LD_SW_INC Search path for libraries
+# LD_SW_LIB Include library name
+# LD_SW_OUT Output file name
+# LD_SW_MAP Map file name
+# LD_SW_RELOC Generate relocateable output
+# ----------------------------------------------------------------------------
+LD_SW_INC := -i
+LD_SW_LIB := -l
+LD_SW_OUT := -o
+LD_SW_MAP := -m
+LD_SW_RELOC := -r
+
+# ----------------------------------------------------------------------------
+# Standard flags for the linker
+# ----------------------------------------------------------------------------
+STD_LD_FLAGS := -c -x
+
+# ----------------------------------------------------------------------------
+# Flags for the linker when building an executable
+# ----------------------------------------------------------------------------
+EXE_LD_FLAGS :=
+
+ifeq ($(PLATFORM), morpheus_dev)
+EXE_LD_FLAGS += $(LD_SW_LIB)"cslDM642.lib"
+EXE_LD_FLAGS += $(LD_SW_LIB)"morpheus.lib"
+endif # ifeq ($(PLATFORM), morpheus_dev)
+
+ifeq ($(PLATFORM), DM642_PCI)
+EXE_LD_FLAGS += $(LD_SW_LIB)"cslDM642.lib"
+endif # ifeq ($(PLATFORM), DM642_PCI)
+
+# ============================================================================
+# TCONF
+# ============================================================================
+TCONF := $(BASE_TCONF)/tconf
+
+
+# ----------------------------------------------------------------------------
+# Standard flags for TCONF
+# ----------------------------------------------------------------------------
+STD_TCF_FLAGS :=
+
+
+endif # ifndef C64XX_5_XX_LINUX_MK