summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2008-02-06 07:41:04 +0000
committerNicolas Thill <nico@openwrt.org>2008-02-06 07:41:04 +0000
commit78be22e32d594fe0a54da0fdb78ee9898c45145b (patch)
tree4e558582413f107b13bec199ec865baed01030de /package
parentf497e4c1c744d530b4e1a414043821c8b7391ba0 (diff)
downloadmtk-20170518-78be22e32d594fe0a54da0fdb78ee9898c45145b.zip
mtk-20170518-78be22e32d594fe0a54da0fdb78ee9898c45145b.tar.gz
mtk-20170518-78be22e32d594fe0a54da0fdb78ee9898c45145b.tar.bz2
add a workaround for watchdog path changes
SVN-Revision: 10403
Diffstat (limited to 'package')
-rw-r--r--package/kernel/modules/other.mk18
1 files changed, 10 insertions, 8 deletions
diff --git a/package/kernel/modules/other.mk b/package/kernel/modules/other.mk
index 59d0e92..5f82c8a 100644
--- a/package/kernel/modules/other.mk
+++ b/package/kernel/modules/other.mk
@@ -230,21 +230,23 @@ endef
$(eval $(call KernelPackage,mmc))
+# XXX: added a workaround for watchdog path changes
+ifeq ($(KERNEL),2.4)
+ WATCHDOG_DIR=char
+endif
+ifeq ($(KERNEL_PATCHVER),2.6.24)
+ WATCHDOG_DIR=watchdog
+endif
+WATCHDOG_DIR?=char/watchdog
+
define KernelPackage/softdog
SUBMENU:=$(OTHER_MENU)
TITLE:=Software watchdog driver
KCONFIG:=CONFIG_SOFT_WATCHDOG
+ FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/softdog.$(LINUX_KMOD_SUFFIX)
AUTOLOAD:=$(call AutoLoad,50,softdog)
endef
-define KernelPackage/softdog/2.4
- FILES:=$(LINUX_DIR)/drivers/char/softdog.o
-endef
-
-define KernelPackage/softdog/2.6
- FILES:=$(LINUX_DIR)/drivers/char/watchdog/softdog.ko
-endef
-
define KernelPackage/softdog/description
Software watchdog driver
endef