projects
/
openwrt
/
staging
/
yousong.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f497e4c
)
add a workaround for watchdog path changes
author
Nicolas Thill
<nico@openwrt.org>
Wed, 6 Feb 2008 07:41:04 +0000
(07:41 +0000)
committer
Nicolas Thill
<nico@openwrt.org>
Wed, 6 Feb 2008 07:41:04 +0000
(07:41 +0000)
SVN-Revision: 10403
package/kernel/modules/other.mk
patch
|
blob
|
history
diff --git
a/package/kernel/modules/other.mk
b/package/kernel/modules/other.mk
index 59d0e9208141bd46c74006dbbd96f9438ecff4b4..5f82c8a66f6e4af26741cbd59a0672e4c6130b86 100644
(file)
--- a/
package/kernel/modules/other.mk
+++ b/
package/kernel/modules/other.mk
@@
-230,21
+230,23
@@
endef
$(eval $(call KernelPackage,mmc))
$(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
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
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
define KernelPackage/softdog/description
Software watchdog driver
endef