add a workaround for watchdog path changes
SVN-Revision: 10403
This commit is contained in:
parent
f497e4c1c7
commit
78be22e32d
1 changed files with 10 additions and 8 deletions
|
@ -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
|
define KernelPackage/softdog
|
||||||
SUBMENU:=$(OTHER_MENU)
|
SUBMENU:=$(OTHER_MENU)
|
||||||
TITLE:=Software watchdog driver
|
TITLE:=Software watchdog driver
|
||||||
KCONFIG:=CONFIG_SOFT_WATCHDOG
|
KCONFIG:=CONFIG_SOFT_WATCHDOG
|
||||||
|
FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/softdog.$(LINUX_KMOD_SUFFIX)
|
||||||
AUTOLOAD:=$(call AutoLoad,50,softdog)
|
AUTOLOAD:=$(call AutoLoad,50,softdog)
|
||||||
endef
|
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
|
define KernelPackage/softdog/description
|
||||||
Software watchdog driver
|
Software watchdog driver
|
||||||
endef
|
endef
|
||||||
|
|
Loading…
Reference in a new issue