X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/58b9ace7c4d2898f2bb4bccef95ea505713f3b51..1546e3e7d3d7aa9cedfe9dbd5c9784ef1b81759f:/package/ifxos/patches/100-portability.patch?ds=inline diff --git a/package/ifxos/patches/100-portability.patch b/package/ifxos/patches/100-portability.patch index 92b0ea01c..1316888d6 100644 --- a/package/ifxos/patches/100-portability.patch +++ b/package/ifxos/patches/100-portability.patch @@ -1,23 +1,6 @@ ---- a/configure.in -+++ b/configure.in -@@ -149,12 +149,12 @@ AC_ARG_ENABLE(targetincl, - echo Set the target image include path $enableval - AC_SUBST([TARGET_INCL_PATH],[$enableval]) - else -- echo -e Set the default target image include path $DEFAULT_TARGET_INCL_PATH -+ echo Set the default target image include path $DEFAULT_TARGET_INCL_PATH - AC_SUBST([TARGET_INCL_PATH],[$DEFAULT_TARGET_INCL_PATH]) - fi - ], - [ -- echo -e Set the default target image include path $DEFAULT_TARGET_INCL_PATH -+ echo Set the default target image include path $DEFAULT_TARGET_INCL_PATH - AC_SUBST([TARGET_INCL_PATH],[$DEFAULT_TARGET_INCL_PATH]) - ] - ) --- a/src/Makefile.am +++ b/src/Makefile.am -@@ -610,7 +610,7 @@ if KERNEL_2_6 +@@ -639,7 +639,7 @@ if KERNEL_2_6 drv_ifxos_OBJS = "$(subst .c,.o,$(filter %.c,$(drv_ifxos_SOURCES)))" drv_ifxos.ko: $(drv_ifxos_SOURCES) @@ -26,7 +9,7 @@ if test ! -e common/ifxos_debug.c ; then \ echo "copy source files (as links only!)"; \ for f in $(filter %.c,$(drv_ifxos_SOURCES)); do \ -@@ -618,10 +618,10 @@ drv_ifxos.ko: $(drv_ifxos_SOURCES) +@@ -647,10 +647,10 @@ drv_ifxos.ko: $(drv_ifxos_SOURCES) cp -s $(addprefix @abs_srcdir@/,$$f) $(PWD)/`dirname $$f`/ ; \ done \ fi @@ -41,3 +24,14 @@ $(MAKE) ARCH=@KERNEL_ARCH@ -C @KERNEL_BUILD_PATH@ O=@KERNEL_BUILD_PATH@ M=$(PWD) modules clean-generic: +--- a/configure.in ++++ b/configure.in +@@ -64,7 +64,7 @@ dnl Set kernel build path + AC_ARG_ENABLE(kernelbuild, + AS_HELP_STRING(--enable-kernelbuild=x,Set the target kernel build path (only for kernel 2.6.x)), + [ +- 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!])