move brcm-2.4 specific kmod to new module layout
authorNicolas Thill <nico@openwrt.org>
Fri, 13 Oct 2006 10:02:12 +0000 (10:02 +0000)
committerNicolas Thill <nico@openwrt.org>
Fri, 13 Oct 2006 10:02:12 +0000 (10:02 +0000)
SVN-Revision: 5058

openwrt/package/kernel/modules.mk
openwrt/target/linux/brcm-2.4/Makefile

index 2ce3ba91edbdab74f5c36adb7e6d3731210723e9..7449cb3e1b5eb877889f0df288bc82aec4fc3898 100644 (file)
@@ -60,6 +60,24 @@ define KernelPackage/ide-pdc202xx
 endef
 $(eval $(call KernelPackage,ide-pdc202xx))
 
+
+define KernelPackage/lp
+  TITLE:=Parallel port and line printer support
+  KCONFIG:=$(CONFIG_PARPORT)
+  FILES:= \
+       $(MODULES_DIR)/kernel/drivers/parport/parport.o \
+       $(MODULES_DIR)/kernel/drivers/parport/parport_splink.o \
+       $(MODULES_DIR)/kernel/drivers/char/lp.o \
+       $(MODULES_DIR)/kernel/drivers/char/ppdev.o
+  AUTOLOAD:=$(call AutoLoad,50, \
+       parport \
+       parport_splink \
+       lp \
+  )
+endef
+$(eval $(call KernelPackage,lp))
+
+
 define KernelPackage/ieee80211softmac
   TITLE:=802.11 Networking stack
   DESCRIPTION:=\\\
index f0bf67a64994922a9485e30e0e6c22af2b647d5f..33cb47cf5076d6cdbbc6d1ccd300587ff373688b 100644 (file)
@@ -12,18 +12,8 @@ LINUX_KERNEL_MD5SUM:=38f4d0830e95a20f4bfed17622d5557c
 
 include ./config
 include $(INCLUDE_DIR)/kernel.mk
-
-# broadcom specific kmod packages
-$(eval $(call KMOD_template,LP,lp,\
-       $(MODULES_DIR)/kernel/drivers/parport/parport.o \
-       $(MODULES_DIR)/kernel/drivers/parport/parport_splink.o \
-       $(MODULES_DIR)/kernel/drivers/char/lp.o \
-       $(MODULES_DIR)/kernel/drivers/char/ppdev.o \
-,CONFIG_PARPORT,,50,parport parport_splink lp))
-
 include $(INCLUDE_DIR)/kernel-build.mk
 
-
 $(LINUX_DIR)/.patched: $(LINUX_DIR)/.unpacked
        [ -d ../generic-$(KERNEL)/patches ] && $(PATCH) $(LINUX_DIR) ../generic-$(KERNEL)/patches
        [ -d ./patches ] && $(PATCH) $(LINUX_DIR) ./patches