summaryrefslogtreecommitdiff
path: root/packages/dsplink/dsplink-module_1.60.bb
diff options
context:
space:
mode:
Diffstat (limited to 'packages/dsplink/dsplink-module_1.60.bb')
-rw-r--r--packages/dsplink/dsplink-module_1.60.bb5
1 files changed, 5 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() {