make rdc321-wdt become a package, saves some space in the kernel
authorFlorian Fainelli <florian@openwrt.org>
Wed, 4 Nov 2009 22:43:05 +0000 (22:43 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Wed, 4 Nov 2009 22:43:05 +0000 (22:43 +0000)
SVN-Revision: 18298

package/kernel/modules/other.mk
target/linux/rdc/config-2.6.28

index 28ba41469dc9c72f160f08b182e9028ba7843b60..bf26beffa9f10b340fdccc7a06d021aec69d1834 100644 (file)
@@ -419,6 +419,21 @@ endef
 
 $(eval $(call KernelPackage,softdog))
 
+define KernelPackage/rdc321x-wdt
+  SUBMENU:=$(OTHER_MENU)
+  TITLE:=RDC321x watchdog
+  DEPENDS:=@TARGET_rdc
+  KCONFIG:=CONFIG_RDC321X_WDT
+  FILES:=$(LINUX_DIR)/drivers/$(WATCHDOG_DIR)/rdc321x_wdt.$(LINUX_KMOD_SUFFIX)
+  AUTOLOAD:=$(call AutoLoad,50,rdc321_wdt)
+endef
+
+define KernelPackage/rdc321x-wdt/description
+  RDC-321x watchdog driver
+endef
+
+$(eval $(call KernelPackage,rdc321x-wdt))
+
 
 define KernelPackage/leds-gpio
   SUBMENU:=$(OTHER_MENU)
index 7fec13148f510e42962c785b4f390fb7e716ef21..a8561b7871ae7623bdac4f08e4f8d990dd859cd8 100644 (file)
@@ -217,7 +217,6 @@ CONFIG_PHYSICAL_START=0x100000
 # CONFIG_PROCESSOR_SELECT is not set
 # CONFIG_PROVIDE_OHCI1394_DMA_INIT is not set
 # CONFIG_R6040 is not set
-CONFIG_RDC321X_WDT=y
 # CONFIG_RD_BZIP2 is not set
 CONFIG_RD_GZIP=y
 # CONFIG_RD_LZMA is not set