summaryrefslogtreecommitdiff
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
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
-rw-r--r--packages/dsplink/dsplink_1.50.bb25
-rw-r--r--packages/dsplink/files/.mtn2git_empty (renamed from packages/dsplink/davinci-dvevm/.mtn2git_empty)0
-rw-r--r--packages/dsplink/files/CURRENTCFG.MK (renamed from packages/dsplink/davinci-dvevm/CURRENTCFG.MK)14
-rw-r--r--packages/dsplink/files/c64xx_5.xx_linux.mk (renamed from packages/dsplink/davinci-dvevm/c64xx_5.xx_linux.mk)0
-rw-r--r--packages/dsplink/files/davinci_mvlpro5.0.mk (renamed from packages/dsplink/davinci-dvevm/davinci_mvlpro5.0.mk)18
5 files changed, 36 insertions, 21 deletions
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/davinci-dvevm/.mtn2git_empty b/packages/dsplink/files/.mtn2git_empty
index e69de29bb2..e69de29bb2 100644
--- a/packages/dsplink/davinci-dvevm/.mtn2git_empty
+++ b/packages/dsplink/files/.mtn2git_empty
diff --git a/packages/dsplink/davinci-dvevm/CURRENTCFG.MK b/packages/dsplink/files/CURRENTCFG.MK
index 8cc676e4ed..ff109de482 100644
--- a/packages/dsplink/davinci-dvevm/CURRENTCFG.MK
+++ b/packages/dsplink/files/CURRENTCFG.MK
@@ -17,8 +17,8 @@ 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
+export GPPROOT := SED_ME_SOURCEDIR/gpp
+export DSPROOT := SED_ME_SOURCEDIR/dsp
# =========================================================
@@ -31,17 +31,17 @@ export DSPOS := DspBios
# =========================================================
# Specific distribution of GPP and DSP OS (if any)
# =========================================================
-export GPPDISTRIBUTION := davinci_mvlpro5.0
-export GPPOSVERSION := 2.6.18
+export GPPDISTRIBUTION := SED_ME_GPPDISTRO
+export GPPOSVERSION := SED_ME_KERNELVERSION
export GPPOSVARIANT :=
-export DSPDISTRIBUTION := c64xxp_5.xx_linux
+export DSPDISTRIBUTION := SED_ME_DSPDISTRO
# =========================================================
# Target GPP and DSP platforms for DSP/BIOS LINK
# =========================================================
-export GPPPLATFORM := Davinci
-export DSPPLATFORM := Davinci
+export GPPPLATFORM := SED_ME_PLATFORM
+export DSPPLATFORM := SED_ME_PLATFORM
# =========================================================
diff --git a/packages/dsplink/davinci-dvevm/c64xx_5.xx_linux.mk b/packages/dsplink/files/c64xx_5.xx_linux.mk
index d0b27d7a55..d0b27d7a55 100644
--- a/packages/dsplink/davinci-dvevm/c64xx_5.xx_linux.mk
+++ b/packages/dsplink/files/c64xx_5.xx_linux.mk
diff --git a/packages/dsplink/davinci-dvevm/davinci_mvlpro5.0.mk b/packages/dsplink/files/davinci_mvlpro5.0.mk
index d29adc0582..b90045e547 100644
--- a/packages/dsplink/davinci-dvevm/davinci_mvlpro5.0.mk
+++ b/packages/dsplink/files/davinci_mvlpro5.0.mk
@@ -48,8 +48,8 @@ BASE_CGTOOLS := /opt/montavista/pro/devkit/arm/v5t_le/bin
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
+OSINC_PLATFORM := SED_ME_CROSS/4.2.0/include
+OSINC_TARGET := SED_ME_STAGINGDIR/usr/include
ifneq ("$(VARIANT)", "")
OSINC_VARIANT := $(BASE_OSINC)
@@ -59,7 +59,7 @@ endif
# ----------------------------------------------------------------------------
# Base directory for libraries provided by GPP OS
# ----------------------------------------------------------------------------
-BASE_OSLIB := /opt/montavista/pro/devkit/arm/v5t_le/lib
+BASE_OSLIB := SED_ME_STAGINGDIR/lib
OSLIB_GENERIC := $(BASE_OSLIB)
OSLIB_PLATFORM := $(BASE_OSLIB)
@@ -77,10 +77,10 @@ endif
# ----------------------------------------------------------------------------
# Name of the compiler
# ----------------------------------------------------------------------------
-COMPILER := $(BASE_CGTOOLS)/arm_v5t_le-gcc
-LD := $(BASE_CGTOOLS)/arm_v5t_le-ld
+COMPILER := SED_ME_TARGET_PREFIXgcc
+LD := SED_ME_TARGET_PREFIXDIR-ld
-CROSS_COMPILE := arm_v5t_le-
+CROSS_COMPILE := SED_ME_TARGET_PREFIX
export CROSS_COMPILE
# ----------------------------------------------------------------------------
@@ -135,7 +135,7 @@ STD_CC_DEFNS := -D_REENTRANT
# ============================================================================
# ARCHIVER1 - This denotes the linker.
# ============================================================================
-ARCHIVER1 := $(BASE_CGTOOLS)/arm_v5t_le-ld
+ARCHIVER1 := SED_ME_TARGET_PREFIX-ld
# ----------------------------------------------------------------------------
# Standard flags for the archiver
@@ -146,7 +146,7 @@ STD_AR_FLAGS1 := -EL -r
# ============================================================================
# ARCHIVER2 - This denotes the archiver.
# ============================================================================
-ARCHIVER2 := $(BASE_CGTOOLS)/arm_v5t_le-ar
+ARCHIVER2 := SED_ME_TARGET_PREFIX-ar
# ----------------------------------------------------------------------------
# Standard flags for the archiver
@@ -157,7 +157,7 @@ STD_AR_FLAGS2 := -r
# ============================================================================
# LINKER - The compiler is used for linking purpose as well.
# ============================================================================
-LINKER := $(BASE_CGTOOLS)/arm_v5t_le-gcc
+LINKER := SED_ME_TARGET_PREFIXgcc
# ----------------------------------------------------------------------------
# Command line switches used by the linker