Re: [OpenWrt-Devel] [PATCH] Regression on watchdog module for kernel 2.6.25 (x86 target)

2008-05-06 Thread Axel Gembe
I suggest using the snippet from here:
https://dev.openwrt.org/ticket/3402

Signed-off-by: Axel Gembe [EMAIL PROTECTED]
---
 package/kernel/modules/other.mk |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/package/kernel/modules/other.mk b/package/kernel/modules/other.mk
index bf67464..18e7b19 100644
--- a/package/kernel/modules/other.mk
+++ b/package/kernel/modules/other.mk
@@ -270,7 +270,7 @@ $(eval $(call KernelPackage,mmc-at91))
 ifeq ($(KERNEL),2.4)
   WATCHDOG_DIR=char
 endif
-ifeq ($(KERNEL_PATCHVER),2.6.24)
+ifeq ($(firstword $(sort $(KERNEL_PATCHVER) 2.6.24)),2.6.24)
   WATCHDOG_DIR=watchdog
 endif
 WATCHDOG_DIR?=char/watchdog
-- 
1.5.5.1

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] Regression on watchdog module for kernel 2.6.25 (x86 target)

2008-05-05 Thread Roberto Riggio
I'm not quite sure if this is the right approach. Probably it would be better 
to check for version greater than 2.6.24 or to
make watchdog the default value and handle the exceptions.

What do you think?

Signed-off-by: Roberto Riggio [EMAIL PROTECTED] 

--
Index: package/kernel/modules/other.mk
===
--- package/kernel/modules/other.mk (revisione 11047)
+++ package/kernel/modules/other.mk (copia locale)
@@ -273,6 +273,9 @@
 ifeq ($(KERNEL_PATCHVER),2.6.24)
   WATCHDOG_DIR=watchdog
 endif
+ifeq ($(KERNEL_PATCHVER),2.6.25)
+  WATCHDOG_DIR=watchdog
+endif
 WATCHDOG_DIR?=char/watchdog
 
 define KernelPackage/softdog
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel