From 97018bfcf611bc5b4892fdb5d8b87051cb199ab1 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Thu, 11 Dec 2008 12:11:09 +0100 Subject: dsplink: start adding tweaks to build against a post-header move kernel as well --- packages/dsplink/dsplink.inc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'packages/dsplink/dsplink.inc') 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 = "" -- cgit v1.2.3