From 3f7b97b5cb3650e3559748f10c6de64b24af07f4 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Thu, 15 May 2008 18:13:07 +0000 Subject: 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 --- packages/dsplink/davinci-dvevm/.mtn2git_empty | 0 packages/dsplink/davinci-dvevm/CURRENTCFG.MK | 99 --------- packages/dsplink/davinci-dvevm/c64xx_5.xx_linux.mk | 223 --------------------- .../dsplink/davinci-dvevm/davinci_mvlpro5.0.mk | 201 ------------------- packages/dsplink/dsplink_1.50.bb | 25 ++- packages/dsplink/files/.mtn2git_empty | 0 packages/dsplink/files/CURRENTCFG.MK | 99 +++++++++ packages/dsplink/files/c64xx_5.xx_linux.mk | 223 +++++++++++++++++++++ packages/dsplink/files/davinci_mvlpro5.0.mk | 201 +++++++++++++++++++ 9 files changed, 543 insertions(+), 528 deletions(-) delete mode 100644 packages/dsplink/davinci-dvevm/.mtn2git_empty delete mode 100644 packages/dsplink/davinci-dvevm/CURRENTCFG.MK delete mode 100644 packages/dsplink/davinci-dvevm/c64xx_5.xx_linux.mk delete mode 100644 packages/dsplink/davinci-dvevm/davinci_mvlpro5.0.mk create mode 100644 packages/dsplink/files/.mtn2git_empty create mode 100644 packages/dsplink/files/CURRENTCFG.MK create mode 100644 packages/dsplink/files/c64xx_5.xx_linux.mk create mode 100644 packages/dsplink/files/davinci_mvlpro5.0.mk (limited to 'packages') diff --git a/packages/dsplink/davinci-dvevm/.mtn2git_empty b/packages/dsplink/davinci-dvevm/.mtn2git_empty deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/packages/dsplink/davinci-dvevm/CURRENTCFG.MK b/packages/dsplink/davinci-dvevm/CURRENTCFG.MK deleted file mode 100644 index 8cc676e4ed..0000000000 --- a/packages/dsplink/davinci-dvevm/CURRENTCFG.MK +++ /dev/null @@ -1,99 +0,0 @@ -# ========================================================= -# DSP/BIOS LINK Configuration file. -# -# CAUTION! This is a generated file. -# All changes will be lost. -# -# This file was generated on MAY 14, 2008 11:53:09 -# ========================================================= - - -# ========================================================= -# When this file was created. -# ========================================================= -export CFGDATE := MAY 14, 2008 11:53:09 - - -# ========================================================= -# DSP/BIOS LINK GPP side root directory. -# ========================================================= -export GPPROOT := /home/balister/src/dsplink_1_50/dsplink/gpp -export DSPROOT := /home/balister/src/dsplink_1_50/dsplink/dsp - - -# ========================================================= -# GPP and DSP OS for which DSP/BIOS LINK is being built -# ========================================================= -export GPPOS := Linux -export DSPOS := DspBios - - -# ========================================================= -# Specific distribution of GPP and DSP OS (if any) -# ========================================================= -export GPPDISTRIBUTION := davinci_mvlpro5.0 -export GPPOSVERSION := 2.6.18 -export GPPOSVARIANT := -export DSPDISTRIBUTION := c64xxp_5.xx_linux - - -# ========================================================= -# Target GPP and DSP platforms for DSP/BIOS LINK -# ========================================================= -export GPPPLATFORM := Davinci -export DSPPLATFORM := Davinci - - -# ========================================================= -# Target GPP and DSP devices -# ========================================================= -export GPPDEVICE := Davinci -export DSPDEVICE := C64XX - - -# ========================================================= -# Compile time scalability options for DSP/BIOS LINK -# ========================================================= -export USE_PROC := 1 -export USE_POOL := 1 -export USE_NOTIFY := 1 -export USE_MPCS := 1 -export USE_RINGIO := 1 -export USE_MPLIST := 0 -export USE_MSGQ := 0 -export USE_CHNL := 0 - - -# ========================================================= -# Compile time physical link scalability options for device -# ========================================================= -export USE_CHNL_ZCPY_LINK := 0 -export USE_CHNL_PCPY_LINK := 0 -export USE_MSGQ_ZCPY_LINK := 0 -export USE_MSGQ_PCPY_LINK := 0 - - -# ========================================================= -# Enable/ Disable trace -# ========================================================= -export TRACE := 1 - - -# ========================================================= -# Enable/ Disable profiling -# ========================================================= -export PROFILE := 1 - - -# ========================================================= -# Enable/ Disable probe -# ========================================================= -export PROBE := 0 - - -# ========================================================= -# Platform Variant -# ========================================================= -export VARIANT := DM6446 - - diff --git a/packages/dsplink/davinci-dvevm/c64xx_5.xx_linux.mk b/packages/dsplink/davinci-dvevm/c64xx_5.xx_linux.mk deleted file mode 100644 index d0b27d7a55..0000000000 --- a/packages/dsplink/davinci-dvevm/c64xx_5.xx_linux.mk +++ /dev/null @@ -1,223 +0,0 @@ -# ============================================================================ -# @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 diff --git a/packages/dsplink/davinci-dvevm/davinci_mvlpro5.0.mk b/packages/dsplink/davinci-dvevm/davinci_mvlpro5.0.mk deleted file mode 100644 index d29adc0582..0000000000 --- a/packages/dsplink/davinci-dvevm/davinci_mvlpro5.0.mk +++ /dev/null @@ -1,201 +0,0 @@ -# ============================================================================ -# @file davinci_mvlpro5.0.mk -# -# @path $(DSPLINK)/make/Linux/ -# -# @desc This makefile defines OS specific macros used by MAKE system for -# the Montavista Pro 5.0 Linux distribution. -# -# @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 DAVINCI_MVLPRO5_0_MK - -define DAVINCI_MVLPRO5_0_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 GPP OS -# ---------------------------------------------------------------------------- -BASE_BUILDOS := ${HOME}/montavista/kernel/Linux - -# ---------------------------------------------------------------------------- -# Base for code generation tools - compiler, linker, archiver etc. -# ---------------------------------------------------------------------------- -BASE_CGTOOLS := /opt/montavista/pro/devkit/arm/v5t_le/bin - -# ---------------------------------------------------------------------------- -# Base directory for include files provided by GPP OS -# ---------------------------------------------------------------------------- -BASE_OSINC := $(BASE_BUILDOS)/include - -OSINC_GENERIC := $(BASE_OSINC) -OSINC_PLATFORM := /opt/montavista/pro/devkit/arm/v5t_le/lib/gcc/armv5tl-montavista-linux-gnueabi/4.2.0/include -OSINC_TARGET := /opt/montavista/pro/devkit/arm/v5t_le/target/usr/include - -ifneq ("$(VARIANT)", "") -OSINC_VARIANT := $(BASE_OSINC) -endif - - -# ---------------------------------------------------------------------------- -# Base directory for libraries provided by GPP OS -# ---------------------------------------------------------------------------- -BASE_OSLIB := /opt/montavista/pro/devkit/arm/v5t_le/lib - -OSLIB_GENERIC := $(BASE_OSLIB) -OSLIB_PLATFORM := $(BASE_OSLIB) - - -ifneq ("$(VARIANT)", "") -OSLIB_VARIANT := $(BASE_OSLIB) -endif - - -# ============================================================================ -# COMPILER -# ============================================================================ - -# ---------------------------------------------------------------------------- -# Name of the compiler -# ---------------------------------------------------------------------------- -COMPILER := $(BASE_CGTOOLS)/arm_v5t_le-gcc -LD := $(BASE_CGTOOLS)/arm_v5t_le-ld - -CROSS_COMPILE := arm_v5t_le- -export CROSS_COMPILE - -# ---------------------------------------------------------------------------- -# Command line switches used by the compiler -# -# CC_SW_DEF Command line defines -# CC_SW_INC Search path for header files -# CC_SW_OBJ Create object file -# CC_SW_DEB Include debug information -# ---------------------------------------------------------------------------- -CC_SW_DEF := -D -CC_SW_INC := -I -CC_SW_OBJ := -o -CC_SW_DEB := -g - -# ---------------------------------------------------------------------------- -# Standard flags for the compiler -# ---------------------------------------------------------------------------- -STD_KRNL_FLAGS := -c -iwithprefix include -Iinclude -Wall -Wstrict-prototypes\ - -Wno-trigraphs -fno-strict-aliasing -fno-common \ - -fno-omit-frame-pointer -mapcs -mno-sched-prolog \ - -mlittle-endian -D__LINUX_ARM_ARCH__=5 -march=armv5t \ - -mtune=arm9tdmi -msoft-float -Uarm -mapcs \ - -Wdeclaration-after-statement -Os -marm -mabi=aapcs-linux -STD_USER_FLAGS := -mlittle-endian -march=armv5t -mtune=arm9tdmi -msoft-float \ - -Uarm -Wdeclaration-after-statement -marm -Wall \ - -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing \ - -fno-common -fno-omit-frame-pointer -mapcs -c \ - -mabi=aapcs-linux - -# ---------------------------------------------------------------------------- -# Standard flags for the compiler when building an executable -# ---------------------------------------------------------------------------- -EXE_CC_FLAGS := - -# ---------------------------------------------------------------------------- -# Flags for the compiler when building a driver -# ---------------------------------------------------------------------------- -DRV_CC_FLAGS := -nostdinc - -# ---------------------------------------------------------------------------- -# Flags for the compiler when building a library -# ---------------------------------------------------------------------------- -LIB_CC_FLAGS := - -# ---------------------------------------------------------------------------- -# Standard definitions for the compiler -# ---------------------------------------------------------------------------- -STD_CC_DEFNS := -D_REENTRANT - - -# ============================================================================ -# ARCHIVER1 - This denotes the linker. -# ============================================================================ -ARCHIVER1 := $(BASE_CGTOOLS)/arm_v5t_le-ld - -# ---------------------------------------------------------------------------- -# Standard flags for the archiver -# ---------------------------------------------------------------------------- -STD_AR_FLAGS1 := -EL -r - - -# ============================================================================ -# ARCHIVER2 - This denotes the archiver. -# ============================================================================ -ARCHIVER2 := $(BASE_CGTOOLS)/arm_v5t_le-ar - -# ---------------------------------------------------------------------------- -# Standard flags for the archiver -# ---------------------------------------------------------------------------- -STD_AR_FLAGS2 := -r - - -# ============================================================================ -# LINKER - The compiler is used for linking purpose as well. -# ============================================================================ -LINKER := $(BASE_CGTOOLS)/arm_v5t_le-gcc - -# ---------------------------------------------------------------------------- -# Command line switches used by the linker -# -# LD_SW_LIB Search path for libraries -# LD_SW_OUT Output filename -# LD_SW_RELOC Generate relocateable output -# ---------------------------------------------------------------------------- -LD_SW_LIB := -L -LD_SW_OUT := -o -LD_SW_RELOC := -r - -# ---------------------------------------------------------------------------- -# Standard flags for the linker -# ---------------------------------------------------------------------------- -STD_LD_FLAGS := - -# ---------------------------------------------------------------------------- -# Specific flags for the linker if linking and module generating utility are -# different -# ---------------------------------------------------------------------------- -SPECIFIC_LD_FLAGS := -lpthread - -# ---------------------------------------------------------------------------- -# Flags for the linker when building an executable -# ---------------------------------------------------------------------------- -EXE_LD_FLAGS := -lc - -# ---------------------------------------------------------------------------- -# Flags for the linker when building a driver -# ---------------------------------------------------------------------------- -DRV_LD_FLAGS := - - -# ============================================================================ -# Post processing utilities for Linux 2.6 -# ============================================================================ -CMD_MODPOST := $(BASE_BUILDOS)/scripts/mod/modpost -i $(BASE_BUILDOS)/Module.symvers $(BASE_BUILDOS)/vmlinux - - -endif # ifndef DAVINCI_MVLPRO5_0_MK diff --git a/packages/dsplink/dsplink_1.50.bb b/packages/dsplink/dsplink_1.50.bb index 9d0e1134d8..1c5b2676b2 100644 --- a/packages/dsplink/dsplink_1.50.bb +++ b/packages/dsplink/dsplink_1.50.bb @@ -2,16 +2,18 @@ DESCRIPTION = "DSP Link for TI ARM/DSP processors" DEPENDS = "virtual/kernel" +inherit module-base + PR = "r0" # Get dsplink tarball from TI website, place in sources and calculate # md5sum # Look for tarball at https://www-a.ti.com/downloads/sds_support/targetcontent/link/index.html -SRC_URI ="http://install.tarball.in.source.dir/dsplink_1_50.tar.gz \ -file://CURRENTCFG.MK \ -file://c64xx_5.xx_linux.mk \ -file://davinci_mvlpro5.0.mk \ +SRC_URI = "http://install.tarball.in.source.dir/dsplink_1_50.tar.gz \ + file://CURRENTCFG.MK \ + file://c64xx_5.xx_linux.mk \ + file://davinci_mvlpro5.0.mk \ " S = "${WORKDIR}/dsplink_1_50/dsplink" @@ -23,10 +25,23 @@ do_configure () { cp ${WORKDIR}/CURRENTCFG.MK ${S}/config cp ${WORKDIR}/davinci_mvlpro5.0.mk ${S}/make/Linux cp ${WORKDIR}/c64xx_5.xx_linux.mk ${S}/make/DspBios + + sed -i -e s:SED_ME_SOURCEDIR:${S}:g \ + -e s:SED_ME_GPPDISTRO:davinci_mvlpro5\.0:g \ + -e s:SED_ME_KERNELVERSION:${KERNEL_VERSION}:g \ + -e s:SED_ME_DSPDISTRO:davinci_mvlpro5\.0:g \ + -e s:SED_ME_PLATFORM:Davinci:g \ + ${S}/config/CURRENTCFG.MK + + sed -i -e s:SED_ME_CROSS:${STAGING_INCDIR}:g \ + -e s:SED_ME_STAGINGDIR:${STAGING_DIR_TARGET}:g \ + -e s:SED_ME_TARGET_PREFIX:${TARGET_PREFIX}:g \ + ${S}/make/Linux/davinci_mvlpro5.0.mk + } do_compile () { - make -C ${S}/dsplink/gpp/src + make -C ${S}/gpp/src } PACKAGE_ARCH = "${MACHINE_ARCH}" diff --git a/packages/dsplink/files/.mtn2git_empty b/packages/dsplink/files/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/dsplink/files/CURRENTCFG.MK b/packages/dsplink/files/CURRENTCFG.MK new file mode 100644 index 0000000000..ff109de482 --- /dev/null +++ b/packages/dsplink/files/CURRENTCFG.MK @@ -0,0 +1,99 @@ +# ========================================================= +# DSP/BIOS LINK Configuration file. +# +# CAUTION! This is a generated file. +# All changes will be lost. +# +# This file was generated on MAY 14, 2008 11:53:09 +# ========================================================= + + +# ========================================================= +# When this file was created. +# ========================================================= +export CFGDATE := MAY 14, 2008 11:53:09 + + +# ========================================================= +# DSP/BIOS LINK GPP side root directory. +# ========================================================= +export GPPROOT := SED_ME_SOURCEDIR/gpp +export DSPROOT := SED_ME_SOURCEDIR/dsp + + +# ========================================================= +# GPP and DSP OS for which DSP/BIOS LINK is being built +# ========================================================= +export GPPOS := Linux +export DSPOS := DspBios + + +# ========================================================= +# Specific distribution of GPP and DSP OS (if any) +# ========================================================= +export GPPDISTRIBUTION := SED_ME_GPPDISTRO +export GPPOSVERSION := SED_ME_KERNELVERSION +export GPPOSVARIANT := +export DSPDISTRIBUTION := SED_ME_DSPDISTRO + + +# ========================================================= +# Target GPP and DSP platforms for DSP/BIOS LINK +# ========================================================= +export GPPPLATFORM := SED_ME_PLATFORM +export DSPPLATFORM := SED_ME_PLATFORM + + +# ========================================================= +# Target GPP and DSP devices +# ========================================================= +export GPPDEVICE := Davinci +export DSPDEVICE := C64XX + + +# ========================================================= +# Compile time scalability options for DSP/BIOS LINK +# ========================================================= +export USE_PROC := 1 +export USE_POOL := 1 +export USE_NOTIFY := 1 +export USE_MPCS := 1 +export USE_RINGIO := 1 +export USE_MPLIST := 0 +export USE_MSGQ := 0 +export USE_CHNL := 0 + + +# ========================================================= +# Compile time physical link scalability options for device +# ========================================================= +export USE_CHNL_ZCPY_LINK := 0 +export USE_CHNL_PCPY_LINK := 0 +export USE_MSGQ_ZCPY_LINK := 0 +export USE_MSGQ_PCPY_LINK := 0 + + +# ========================================================= +# Enable/ Disable trace +# ========================================================= +export TRACE := 1 + + +# ========================================================= +# Enable/ Disable profiling +# ========================================================= +export PROFILE := 1 + + +# ========================================================= +# Enable/ Disable probe +# ========================================================= +export PROBE := 0 + + +# ========================================================= +# Platform Variant +# ========================================================= +export VARIANT := DM6446 + + 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 diff --git a/packages/dsplink/files/davinci_mvlpro5.0.mk b/packages/dsplink/files/davinci_mvlpro5.0.mk new file mode 100644 index 0000000000..b90045e547 --- /dev/null +++ b/packages/dsplink/files/davinci_mvlpro5.0.mk @@ -0,0 +1,201 @@ +# ============================================================================ +# @file davinci_mvlpro5.0.mk +# +# @path $(DSPLINK)/make/Linux/ +# +# @desc This makefile defines OS specific macros used by MAKE system for +# the Montavista Pro 5.0 Linux distribution. +# +# @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 DAVINCI_MVLPRO5_0_MK + +define DAVINCI_MVLPRO5_0_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 GPP OS +# ---------------------------------------------------------------------------- +BASE_BUILDOS := ${HOME}/montavista/kernel/Linux + +# ---------------------------------------------------------------------------- +# Base for code generation tools - compiler, linker, archiver etc. +# ---------------------------------------------------------------------------- +BASE_CGTOOLS := /opt/montavista/pro/devkit/arm/v5t_le/bin + +# ---------------------------------------------------------------------------- +# Base directory for include files provided by GPP OS +# ---------------------------------------------------------------------------- +BASE_OSINC := $(BASE_BUILDOS)/include + +OSINC_GENERIC := $(BASE_OSINC) +OSINC_PLATFORM := SED_ME_CROSS/4.2.0/include +OSINC_TARGET := SED_ME_STAGINGDIR/usr/include + +ifneq ("$(VARIANT)", "") +OSINC_VARIANT := $(BASE_OSINC) +endif + + +# ---------------------------------------------------------------------------- +# Base directory for libraries provided by GPP OS +# ---------------------------------------------------------------------------- +BASE_OSLIB := SED_ME_STAGINGDIR/lib + +OSLIB_GENERIC := $(BASE_OSLIB) +OSLIB_PLATFORM := $(BASE_OSLIB) + + +ifneq ("$(VARIANT)", "") +OSLIB_VARIANT := $(BASE_OSLIB) +endif + + +# ============================================================================ +# COMPILER +# ============================================================================ + +# ---------------------------------------------------------------------------- +# Name of the compiler +# ---------------------------------------------------------------------------- +COMPILER := SED_ME_TARGET_PREFIXgcc +LD := SED_ME_TARGET_PREFIXDIR-ld + +CROSS_COMPILE := SED_ME_TARGET_PREFIX +export CROSS_COMPILE + +# ---------------------------------------------------------------------------- +# Command line switches used by the compiler +# +# CC_SW_DEF Command line defines +# CC_SW_INC Search path for header files +# CC_SW_OBJ Create object file +# CC_SW_DEB Include debug information +# ---------------------------------------------------------------------------- +CC_SW_DEF := -D +CC_SW_INC := -I +CC_SW_OBJ := -o +CC_SW_DEB := -g + +# ---------------------------------------------------------------------------- +# Standard flags for the compiler +# ---------------------------------------------------------------------------- +STD_KRNL_FLAGS := -c -iwithprefix include -Iinclude -Wall -Wstrict-prototypes\ + -Wno-trigraphs -fno-strict-aliasing -fno-common \ + -fno-omit-frame-pointer -mapcs -mno-sched-prolog \ + -mlittle-endian -D__LINUX_ARM_ARCH__=5 -march=armv5t \ + -mtune=arm9tdmi -msoft-float -Uarm -mapcs \ + -Wdeclaration-after-statement -Os -marm -mabi=aapcs-linux +STD_USER_FLAGS := -mlittle-endian -march=armv5t -mtune=arm9tdmi -msoft-float \ + -Uarm -Wdeclaration-after-statement -marm -Wall \ + -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing \ + -fno-common -fno-omit-frame-pointer -mapcs -c \ + -mabi=aapcs-linux + +# ---------------------------------------------------------------------------- +# Standard flags for the compiler when building an executable +# ---------------------------------------------------------------------------- +EXE_CC_FLAGS := + +# ---------------------------------------------------------------------------- +# Flags for the compiler when building a driver +# ---------------------------------------------------------------------------- +DRV_CC_FLAGS := -nostdinc + +# ---------------------------------------------------------------------------- +# Flags for the compiler when building a library +# ---------------------------------------------------------------------------- +LIB_CC_FLAGS := + +# ---------------------------------------------------------------------------- +# Standard definitions for the compiler +# ---------------------------------------------------------------------------- +STD_CC_DEFNS := -D_REENTRANT + + +# ============================================================================ +# ARCHIVER1 - This denotes the linker. +# ============================================================================ +ARCHIVER1 := SED_ME_TARGET_PREFIX-ld + +# ---------------------------------------------------------------------------- +# Standard flags for the archiver +# ---------------------------------------------------------------------------- +STD_AR_FLAGS1 := -EL -r + + +# ============================================================================ +# ARCHIVER2 - This denotes the archiver. +# ============================================================================ +ARCHIVER2 := SED_ME_TARGET_PREFIX-ar + +# ---------------------------------------------------------------------------- +# Standard flags for the archiver +# ---------------------------------------------------------------------------- +STD_AR_FLAGS2 := -r + + +# ============================================================================ +# LINKER - The compiler is used for linking purpose as well. +# ============================================================================ +LINKER := SED_ME_TARGET_PREFIXgcc + +# ---------------------------------------------------------------------------- +# Command line switches used by the linker +# +# LD_SW_LIB Search path for libraries +# LD_SW_OUT Output filename +# LD_SW_RELOC Generate relocateable output +# ---------------------------------------------------------------------------- +LD_SW_LIB := -L +LD_SW_OUT := -o +LD_SW_RELOC := -r + +# ---------------------------------------------------------------------------- +# Standard flags for the linker +# ---------------------------------------------------------------------------- +STD_LD_FLAGS := + +# ---------------------------------------------------------------------------- +# Specific flags for the linker if linking and module generating utility are +# different +# ---------------------------------------------------------------------------- +SPECIFIC_LD_FLAGS := -lpthread + +# ---------------------------------------------------------------------------- +# Flags for the linker when building an executable +# ---------------------------------------------------------------------------- +EXE_LD_FLAGS := -lc + +# ---------------------------------------------------------------------------- +# Flags for the linker when building a driver +# ---------------------------------------------------------------------------- +DRV_LD_FLAGS := + + +# ============================================================================ +# Post processing utilities for Linux 2.6 +# ============================================================================ +CMD_MODPOST := $(BASE_BUILDOS)/scripts/mod/modpost -i $(BASE_BUILDOS)/Module.symvers $(BASE_BUILDOS)/vmlinux + + +endif # ifndef DAVINCI_MVLPRO5_0_MK -- cgit v1.2.3 From d157d168cebd735347bef6a4f921565cdadd17d7 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Thu, 15 May 2008 18:45:44 +0000 Subject: dsplink: get first part to build, need to sort out more includes, since someone though it would be a good idea to (not) pass includes using gcc instead of using #include in the source file --- packages/dsplink/dsplink_1.50.bb | 12 +++++++++--- packages/dsplink/files/davinci_mvlpro5.0.mk | 2 +- packages/dsplink/files/prcs-fix-include.patch | 10 ++++++++++ 3 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 packages/dsplink/files/prcs-fix-include.patch (limited to 'packages') diff --git a/packages/dsplink/dsplink_1.50.bb b/packages/dsplink/dsplink_1.50.bb index 1c5b2676b2..7051966ffc 100644 --- a/packages/dsplink/dsplink_1.50.bb +++ b/packages/dsplink/dsplink_1.50.bb @@ -1,6 +1,6 @@ DESCRIPTION = "DSP Link for TI ARM/DSP processors" -DEPENDS = "virtual/kernel" +DEPENDS = "virtual/kernel perl-native" inherit module-base @@ -13,7 +13,8 @@ PR = "r0" SRC_URI = "http://install.tarball.in.source.dir/dsplink_1_50.tar.gz \ file://CURRENTCFG.MK \ file://c64xx_5.xx_linux.mk \ - file://davinci_mvlpro5.0.mk \ + file://davinci_mvlpro5.0.mk \ + file://prcs-fix-include.patch;patch=1 \ " S = "${WORKDIR}/dsplink_1_50/dsplink" @@ -36,12 +37,17 @@ do_configure () { sed -i -e s:SED_ME_CROSS:${STAGING_INCDIR}:g \ -e s:SED_ME_STAGINGDIR:${STAGING_DIR_TARGET}:g \ -e s:SED_ME_TARGET_PREFIX:${TARGET_PREFIX}:g \ + -e s:SED_ME_KERNELDIR:${STAGING_KERNEL_DIR}:g \ ${S}/make/Linux/davinci_mvlpro5.0.mk } +PARALLEL_MAKE = "" + do_compile () { - make -C ${S}/gpp/src + ln -sf ${S}/gpp/src/api/*h ${S}/gpp/inc/ + ln -sf ${S}/gpp/src/pmgr/Linux/2.6.18 ${S}/gpp/src/pmgr/Linux/2.6.26-rc2-omap1 + oe_runmake -C ${S}/gpp/src } PACKAGE_ARCH = "${MACHINE_ARCH}" diff --git a/packages/dsplink/files/davinci_mvlpro5.0.mk b/packages/dsplink/files/davinci_mvlpro5.0.mk index b90045e547..2ea2fd8915 100644 --- a/packages/dsplink/files/davinci_mvlpro5.0.mk +++ b/packages/dsplink/files/davinci_mvlpro5.0.mk @@ -35,7 +35,7 @@ USE_DISTRIBUTION := 1 # ---------------------------------------------------------------------------- # Base directory for the GPP OS # ---------------------------------------------------------------------------- -BASE_BUILDOS := ${HOME}/montavista/kernel/Linux +BASE_BUILDOS := SED_ME_KERNELDIR # ---------------------------------------------------------------------------- # Base for code generation tools - compiler, linker, archiver etc. diff --git a/packages/dsplink/files/prcs-fix-include.patch b/packages/dsplink/files/prcs-fix-include.patch new file mode 100644 index 0000000000..12fcd5ec5d --- /dev/null +++ b/packages/dsplink/files/prcs-fix-include.patch @@ -0,0 +1,10 @@ +--- /tmp/prcs.c 2008-05-15 20:35:49.946802023 +0200 ++++ dsplink_1_50/dsplink/gpp/src/osal/Linux/prcs.c 2008-05-15 20:36:01.386858569 +0200 +@@ -17,6 +17,7 @@ + + /* ----------------------------------- OS Specific Headers */ + #include ++#include + #include + #include + #include -- cgit v1.2.3 From ce30bf7848ff9e9c5feac72fd19df1190990c3ab Mon Sep 17 00:00:00 2001 From: Robert Schuster Date: Thu, 15 May 2008 19:30:18 +0000 Subject: batmand: New recipe. --- packages/batmand/.mtn2git_empty | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 packages/batmand/.mtn2git_empty (limited to 'packages') diff --git a/packages/batmand/.mtn2git_empty b/packages/batmand/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 -- cgit v1.2.3