summaryrefslogtreecommitdiffstats
path: root/package/ifxmips-dsl-api/patches
diff options
context:
space:
mode:
authorralph <ralph@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-04-27 14:08:38 +0000
committerralph <ralph@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-04-27 14:08:38 +0000
commit800799d0f94cd87000f2ee4e580bf7b59ba00cf4 (patch)
tree39a52869b2a8de4abedbb37ec9119ee3fb035f52 /package/ifxmips-dsl-api/patches
parent923b2ef28bf79a33b06000900a9fc521b7373641 (diff)
[ifxmips-dsl-api] fix .32 kernel, add support for .33 kernel
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21194 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/ifxmips-dsl-api/patches')
-rw-r--r--package/ifxmips-dsl-api/patches/100-dsl_compat.patch11
-rw-r--r--package/ifxmips-dsl-api/patches/500-portability.patch9
2 files changed, 20 insertions, 0 deletions
diff --git a/package/ifxmips-dsl-api/patches/100-dsl_compat.patch b/package/ifxmips-dsl-api/patches/100-dsl_compat.patch
index dea82f030..a3020d4c9 100644
--- a/package/ifxmips-dsl-api/patches/100-dsl_compat.patch
+++ b/package/ifxmips-dsl-api/patches/100-dsl_compat.patch
@@ -37,3 +37,14 @@
return 0;
}
+--- a/src/include/drv_dsl_cpe_os_linux.h
++++ b/src/include/drv_dsl_cpe_os_linux.h
+@@ -24,7 +24,7 @@
+ #include <linux/ctype.h>
+ #include <linux/version.h>
+ #include <linux/spinlock.h>
+-
++#include <linux/sched.h>
+
+ #if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,17))
+ #include <linux/utsrelease.h>
diff --git a/package/ifxmips-dsl-api/patches/500-portability.patch b/package/ifxmips-dsl-api/patches/500-portability.patch
index cbac514f2..8af264666 100644
--- a/package/ifxmips-dsl-api/patches/500-portability.patch
+++ b/package/ifxmips-dsl-api/patches/500-portability.patch
@@ -1,5 +1,14 @@
--- a/configure.in
+++ b/configure.in
+@@ -310,7 +310,7 @@ dnl Set kernel build path
+ AC_ARG_ENABLE(kernelbuild,
+ AC_HELP_STRING(--enable-kernel-build=x,Set the target kernel build path),
+ [
+- if test -e $enableval/include/linux/autoconf.h; then
++ if test -e $enableval/include/linux/autoconf.h -o -e $enableval/include/generated/autoconf.h; then
+ AC_SUBST([KERNEL_BUILD_PATH],[$enableval])
+ else
+ AC_MSG_ERROR([The kernel build directory is not valid or not configured!])
@@ -333,12 +333,12 @@ AC_ARG_ENABLE(ifxos-include,
echo Set the lib_ifxos include path $enableval
AC_SUBST([IFXOS_INCLUDE_PATH],[$enableval])