summaryrefslogtreecommitdiff
path: root/packages/dsplink/dsplink_1.50.bb
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/dsplink_1.50.bb
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/dsplink_1.50.bb')
-rw-r--r--packages/dsplink/dsplink_1.50.bb25
1 files changed, 20 insertions, 5 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}"