diff options
author | Koen Kooi <koen@openembedded.org> | 2008-12-11 12:11:09 +0100 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2008-12-11 12:11:09 +0100 |
commit | 97018bfcf611bc5b4892fdb5d8b87051cb199ab1 (patch) | |
tree | 15bddf3de4dc8e5802129f2d8217ff99df4c2422 /packages/dsplink | |
parent | e59e2fc47fc0c03e14c8e33cf63477de244f1ac5 (diff) |
dsplink: start adding tweaks to build against a post-header move kernel as well
Diffstat (limited to 'packages/dsplink')
-rw-r--r-- | packages/dsplink/dsplink-module_1.60.bb | 5 | ||||
-rw-r--r-- | packages/dsplink/dsplink.inc | 5 | ||||
-rw-r--r-- | packages/dsplink/lpm.inc | 1 |
3 files changed, 11 insertions, 0 deletions
diff --git a/packages/dsplink/dsplink-module_1.60.bb b/packages/dsplink/dsplink-module_1.60.bb index 4b9051a693..3cfdf308bd 100644 --- a/packages/dsplink/dsplink-module_1.60.bb +++ b/packages/dsplink/dsplink-module_1.60.bb @@ -26,6 +26,11 @@ do_configure() { mkdir -p ${S}/dsplink-kbuild-test cp ${WORKDIR}/Makefile-dsplink-kbuild ${S}/dsplink-kbuild-test/Makefile + + if [ $(echo ${KERNEL_VERSION} | cut -c5,6) -gt 26 ] ; then + sed -i -e s:asm/semaphore:linux/semaphore: ${S}/gpp/src/osal/Linux/user.c + sed -i -e s:asm/semaphore:linux/semaphore: ${S}/gpp/src/osal/Linux/2.6.18/sync.c + fi } do_compile_prepend() { diff --git a/packages/dsplink/dsplink.inc b/packages/dsplink/dsplink.inc index 506b34b21a..bae948c2fd 100644 --- a/packages/dsplink/dsplink.inc +++ b/packages/dsplink/dsplink.inc @@ -19,6 +19,11 @@ do_configure () { cd ${DSPLINK} perl config/bin/dsplinkcfg.pl --platform=${DSPLINKPLATFORM} --nodsp=1 --dspcfg_0=${DSPCFG} --dspos_0=DSPBIOS5XX --gppos=${GPPOS} --comps=ponslrm ) + + if [ $(echo ${KERNEL_VERSION} | cut -c5,6) -gt 26 ] ; then + sed -i -e s:asm/semaphore:linux/semaphore: ${S}/gpp/src/osal/Linux/user.c + sed -i -e s:asm/semaphore:linux/semaphore: ${S}/gpp/src/osal/Linux/2.6.18/sync.c + fi } PARALLEL_MAKE = "" diff --git a/packages/dsplink/lpm.inc b/packages/dsplink/lpm.inc index 7938268c52..ed8d868462 100644 --- a/packages/dsplink/lpm.inc +++ b/packages/dsplink/lpm.inc @@ -32,6 +32,7 @@ do_compile_append() { do_install() { install -d ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp cp ${S}/cetools/packages/ti/bios/power/${DSPPOWERSOC}/lpm/*.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp || true + cp ${S}/cetools/packages/ti/bios/power/modules/${DSPPOWERSOC}/lpm/*.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp || true } INHIBIT_PACKAGE_STRIP = "1" |