kernel: remove kernel modules and references to kernels <= 2.6.36

OpenWrt does not support kernel version <= 2.6.36 any more, remove all modules only build for those kernels and all conditions specific for those kernel versions.

SVN-Revision: 31634
owl
Hauke Mehrtens 2012-05-06 20:43:17 +00:00
parent a42570bc3e
commit 8ff6417c41
14 changed files with 26 additions and 164 deletions

View File

@ -103,11 +103,7 @@ PKG_EXTRA_CFLAGS:= \
$(patsubst CONFIG_%, -DCONFIG_%=1, $(patsubst %=m,%,$(filter %=m,$(PKG_EXTRA_KCONFIG)))) \
$(patsubst CONFIG_%, -DCONFIG_%=1, $(patsubst %=y,%,$(filter %=y,$(PKG_EXTRA_KCONFIG)))) \
ifneq ($(CONFIG_LINUX_2_6_30)$(CONFIG_LINUX_2_6_31)$(CONFIG_LINUX_2_6_32),)
LINUX_AUTOCONF_FILE:= linux/autoconf.h
else
LINUX_AUTOCONF_FILE:= generated/autoconf.h
endif
LINUX_AUTOCONF_FILE:= generated/autoconf.h
define Build/Compile
$(MAKE) -C "$(LINUX_DIR)" \

View File

@ -16,7 +16,6 @@ include $(INCLUDE_DIR)/package.mk
define KernelPackage/button-hotplug
SUBMENU:=Other modules
TITLE:=Button Hotplug driver
DEPENDS:=@!LINUX_2_6_30
FILES:=$(PKG_BUILD_DIR)/button-hotplug.ko
AUTOLOAD:=$(call AutoLoad,30,button-hotplug)
KCONFIG:=

View File

@ -16,7 +16,6 @@ include $(INCLUDE_DIR)/package.mk
define KernelPackage/gpio-button-hotplug
SUBMENU:=Other modules
TITLE:=Simple GPIO Button Hotplug driver
DEPENDS:=@!LINUX_2_6_30
FILES:=$(PKG_BUILD_DIR)/gpio-button-hotplug.ko
AUTOLOAD:=$(call AutoLoad,30,gpio-button-hotplug)
KCONFIG:=

View File

@ -34,6 +34,6 @@ endef
define AddDepends/rtc
DEPENDS+= \
+(LINUX_2_6_30||LINUX_2_6_31||LINUX_2_6_32||LINUX_2_6_36||LINUX_2_6_37||LINUX_2_6_38||LINUX_2_6_39):kmod-rtc-core-2.6 \
+!(LINUX_2_6_30||LINUX_2_6_31||LINUX_2_6_32||LINUX_2_6_36||LINUX_2_6_37||LINUX_2_6_38||LINUX_2_6_39):kmod-rtc-core-3.x
+(LINUX_2_6_37||LINUX_2_6_38||LINUX_2_6_39):kmod-rtc-core-2.6 \
+!(LINUX_2_6_37||LINUX_2_6_38||LINUX_2_6_39):kmod-rtc-core-3.x
endef

View File

@ -611,11 +611,7 @@ define KernelPackage/mvsas
KCONFIG:= \
CONFIG_SCSI_MVSAS \
CONFIG_SCSI_MVSAS_TASKLET=n
ifneq ($(CONFIG_LINUX_2_6_30),)
FILES:=$(LINUX_DIR)/drivers/scsi/mvsas.ko
else
FILES:=$(LINUX_DIR)/drivers/scsi/mvsas/mvsas.ko
endif
FILES:=$(LINUX_DIR)/drivers/scsi/mvsas/mvsas.ko
AUTOLOAD:=$(call AutoLoad,40,mvsas,1)
endef

View File

@ -64,7 +64,7 @@ $(eval $(call KernelPackage,crypto-manager))
define KernelPackage/crypto-user
TITLE:=CryptoAPI userspace interface
DEPENDS:=+kmod-crypto-hash +kmod-crypto-manager @!LINUX_2_6_30&&!LINUX_2_6_31&&!LINUX_2_6_32&&!LINUX_2_6_36&&!LINUX_2_6_37
DEPENDS:=+kmod-crypto-hash +kmod-crypto-manager @!LINUX_2_6_37
KCONFIG:= \
CONFIG_CRYPTO_USER_API \
CONFIG_CRYPTO_USER_API_HASH \

View File

@ -7,89 +7,6 @@
FIREWIRE_MENU:=FireWire support
define firewiredep
SUBMENU:=$(FIREWIRE_MENU)
DEPENDS:=kmod-ieee1394 $(1)
endef
define KernelPackage/ieee1394
SUBMENU:=$(FIREWIRE_MENU)
TITLE:=Support for FireWire (old stack)
DEPENDS:=@PCI_SUPPORT @LINUX_2_6_30||LINUX_2_6_31||LINUX_2_6_32||LINUX_2_6_36
KCONFIG:=CONFIG_IEEE1394
FILES:=$(LINUX_DIR)/drivers/ieee1394/ieee1394.ko
AUTOLOAD:=$(call AutoLoad,20,ieee1394)
endef
define KernelPackage/ieee1394/description
Kernel support for FireWire (old stack)
endef
$(eval $(call KernelPackage,ieee1394))
define KernelPackage/ohci1394
$(call firewiredep,)
TITLE:=Support for OHCI-1394 controllers
KCONFIG:= CONFIG_IEEE1394_OHCI1394
FILES:=$(LINUX_DIR)/drivers/ieee1394/ohci1394.ko
AUTOLOAD:=$(call AutoLoad,50,ohci1394)
endef
define KernelPackage/ohci1394/description
Kernel support for FireWire OHCI-1394 controllers
endef
$(eval $(call KernelPackage,ohci1394))
define KernelPackage/sbp2
$(call firewiredep,kmod-ohci1394)
TITLE:=Support for SBP-2 devices over FireWire
KCONFIG:= \
CONFIG_IEEE1394_SBP2 \
CONFIG_IEEE1394_SBP2_PHYS_DMA=n
FILES:=$(LINUX_DIR)/drivers/ieee1394/sbp2.ko
AUTOLOAD:=$(call AutoLoad,50,sbp2)
endef
define KernelPackage/sbp2/description
Kernel support for SBP-2 devices over FireWire
endef
$(eval $(call KernelPackage,sbp2))
define KernelPackage/raw1394
$(call firewiredep,kmod-ohci1394)
TITLE:=Support for Raw I/O for FireWire devices
KCONFIG:=CONFIG_IEEE1394_RAWIO
FILES:=$(LINUX_DIR)/drivers/ieee1394/raw1394.ko
AUTOLOAD:=$(call AutoLoad,50,raw1394)
endef
define KernelPackage/raw1394/description
Kernel support for FireWire Raw I/O
endef
$(eval $(call KernelPackage,raw1394))
define KernelPackage/video1394
$(call firewiredep,kmod-ohci1394)
TITLE:=Support for FireWire video
KCONFIG:=CONFIG_IEEE1394_VIDEO1394
FILES:=$(LINUX_DIR)/drivers/ieee1394/video1394.ko
AUTOLOAD:=$(call AutoLoad,50,video1394)
endef
define KernelPackage/video1394/description
Kernel support for FireWire video
endef
$(eval $(call KernelPackage,video1394))
define KernelPackage/firewire
SUBMENU:=$(FIREWIRE_MENU)
@ -146,7 +63,7 @@ $(eval $(call KernelPackage,firewire-sbp2))
define KernelPackage/firewire-net
SUBMENU:=$(FIREWIRE_MENU)
TITLE:=Support for IP networking over FireWire
DEPENDS:=kmod-firewire @!LINUX_2_6_30
DEPENDS:=kmod-firewire
KCONFIG:=CONFIG_FIREWIRE_NET
FILES:=$(LINUX_DIR)/drivers/firewire/firewire-net.ko
AUTOLOAD:=$(call AutoLoad,50,firewire-net)

View File

@ -25,7 +25,7 @@ $(eval $(call KernelPackage,fs-autofs4))
define KernelPackage/fs-btrfs
SUBMENU:=$(FS_MENU)
TITLE:=BTRFS filesystem support
DEPENDS:=+kmod-lib-crc32c +!(LINUX_2_6_30||LINUX_2_6_31||LINUX_2_6_32||LINUX_2_6_36||LINUX_2_6_37):kmod-lib-lzo +kmod-lib-zlib
DEPENDS:=+kmod-lib-crc32c +!(LINUX_2_6_37):kmod-lib-lzo +kmod-lib-zlib
KCONFIG:=\
CONFIG_BTRFS_FS \
CONFIG_BTRFS_FS_POSIX_ACL=n \
@ -53,12 +53,12 @@ define KernelPackage/fs-cifs
AUTOLOAD:=$(call AutoLoad,30,cifs)
$(call AddDepends/nls)
DEPENDS+= \
+!(LINUX_2_6_30||LINUX_2_6_31||LINUX_2_6_32||LINUX_2_6_36):kmod-crypto-arc4 \
+!(LINUX_2_6_30||LINUX_2_6_31||LINUX_2_6_32||LINUX_2_6_36):kmod-crypto-hmac \
+!(LINUX_2_6_30||LINUX_2_6_31||LINUX_2_6_32||LINUX_2_6_36):kmod-crypto-md5 \
+!(LINUX_2_6_30||LINUX_2_6_31||LINUX_2_6_32||LINUX_2_6_36||LINUX_2_6_37):kmod-crypto-md4 \
+!(LINUX_2_6_30||LINUX_2_6_31||LINUX_2_6_32||LINUX_2_6_36||LINUX_2_6_37||LINUX_2_6_38||LINUX_2_6_39):kmod-crypto-des \
+!(LINUX_2_6_30||LINUX_2_6_31||LINUX_2_6_32||LINUX_2_6_36||LINUX_2_6_37||LINUX_2_6_38||LINUX_2_6_39):kmod-crypto-ecb
+kmod-crypto-arc4 \
+kmod-crypto-hmac \
+kmod-crypto-md5 \
+!(LINUX_2_6_37):kmod-crypto-md4 \
+!(LINUX_2_6_37||LINUX_2_6_38||LINUX_2_6_39):kmod-crypto-des \
+!(LINUX_2_6_37||LINUX_2_6_38||LINUX_2_6_39):kmod-crypto-ecb
endef
define KernelPackage/fs-cifs/description
@ -83,42 +83,6 @@ endef
$(eval $(call KernelPackage,fs-exportfs))
define KernelPackage/fs-ext2
SUBMENU:=$(FS_MENU)
TITLE:=EXT2 filesystem support
KCONFIG:=CONFIG_EXT2_FS
DEPENDS:=@LINUX_2_6_30||LINUX_2_6_31
FILES:=$(LINUX_DIR)/fs/ext2/ext2.ko
AUTOLOAD:=$(call AutoLoad,32,ext2,1)
endef
define KernelPackage/fs-ext2/description
Kernel module for EXT2 filesystem support
endef
$(eval $(call KernelPackage,fs-ext2,1))
define KernelPackage/fs-ext3
SUBMENU:=$(FS_MENU)
TITLE:=EXT3 filesystem support
KCONFIG:= \
CONFIG_EXT3_FS \
CONFIG_JBD
DEPENDS:=@LINUX_2_6_30||LINUX_2_6_31
FILES:= \
$(LINUX_DIR)/fs/ext3/ext3.ko \
$(LINUX_DIR)/fs/jbd/jbd.ko
AUTOLOAD:=$(call AutoLoad,31,jbd ext3,1)
endef
define KernelPackage/fs-ext3/description
Kernel module for EXT3 filesystem support
endef
$(eval $(call KernelPackage,fs-ext3))
define KernelPackage/fs-ext4
SUBMENU:=$(FS_MENU)
TITLE:=EXT4 filesystem support

View File

@ -55,7 +55,7 @@ $(eval $(call KernelPackage,lib-crc7))
define KernelPackage/lib-crc8
SUBMENU:=$(LIB_MENU)
TITLE:=CRC8 support
DEPENDS:= @!(LINUX_2_6_30||LINUX_2_6_31||LINUX_2_6_32||LINUX_2_6_36||LINUX_2_6_37||LINUX_2_6_38||LINUX_2_6_39||LINUX_3_0)
DEPENDS:= @!(LINUX_2_6_37||LINUX_2_6_38||LINUX_2_6_39||LINUX_3_0)
KCONFIG:=CONFIG_CRC8
FILES:=$(LINUX_DIR)/lib/crc8.ko
AUTOLOAD:=$(call AutoLoad,20,crc8)
@ -150,7 +150,7 @@ $(eval $(call KernelPackage,lib-zlib))
define KernelPackage/lib-cordic
SUBMENU:=$(LIB_MENU)
TITLE:=Cordic function support
DEPENDS:= @!(LINUX_2_6_30||LINUX_2_6_31||LINUX_2_6_32||LINUX_2_6_36||LINUX_2_6_37||LINUX_2_6_38||LINUX_2_6_39||LINUX_3_0)
DEPENDS:= @!(LINUX_2_6_37||LINUX_2_6_38||LINUX_2_6_39||LINUX_3_0)
KCONFIG:=CONFIG_CORDIC
FILES:=$(LINUX_DIR)/lib/cordic.ko
AUTOLOAD:=$(call AutoLoad,20,cordic)

View File

@ -561,7 +561,7 @@ $(eval $(call KernelPackage,pppoa))
define KernelPackage/pptp
SUBMENU:=$(NETWORK_SUPPORT_MENU)
TITLE:=PPtP support
DEPENDS:=kmod-ppp +kmod-gre @!LINUX_2_6_30&&!LINUX_2_6_31&&!LINUX_2_6_32&&!LINUX_2_6_36
DEPENDS:=kmod-ppp +kmod-gre
KCONFIG:=CONFIG_PPTP
ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.2)),1)
FILES:=$(LINUX_DIR)/drivers/net/ppp/pptp.ko
@ -577,7 +577,7 @@ $(eval $(call KernelPackage,pptp))
define KernelPackage/pppol2tp
SUBMENU:=$(NETWORK_SUPPORT_MENU)
TITLE:=PPPoL2TP support
DEPENDS:=kmod-ppp +kmod-pppoe +!LINUX_2_6_30&&!LINUX_2_6_31&&!LINUX_2_6_32:kmod-l2tp
DEPENDS:=kmod-ppp +kmod-pppoe +kmod-l2tp
KCONFIG:=CONFIG_PPPOL2TP
ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.35)),1)
FILES:=$(LINUX_DIR)/net/l2tp/l2tp_ppp.ko
@ -744,7 +744,6 @@ $(eval $(call KernelPackage,pktgen))
define KernelPackage/l2tp
SUBMENU:=$(NETWORK_SUPPORT_MENU)
DEPENDS:=@!LINUX_2_6_30&&!LINUX_2_6_31&&!LINUX_2_6_32
TITLE:=Layer Two Tunneling Protocol (L2TP)
KCONFIG:=CONFIG_L2TP \
CONFIG_L2TP_V3=y \

View File

@ -142,7 +142,7 @@ $(eval $(call KernelPackage,eeprom-at25))
define KernelPackage/gpio-cs5535
SUBMENU:=$(OTHER_MENU)
TITLE:=AMD CS5535/CS5536 GPIO driver
DEPENDS:=@TARGET_x86 @LINUX_2_6_30||LINUX_2_6_31||LINUX_2_6_32||LINUX_2_6_35||LINUX_2_6_36||LINUX_2_6_37
DEPENDS:=@TARGET_x86 @LINUX_2_6_37
KCONFIG:=CONFIG_CS5535_GPIO
FILES:=$(LINUX_DIR)/drivers/char/cs5535_gpio.ko
AUTOLOAD:=$(call AutoLoad,50,cs5535_gpio)
@ -158,7 +158,7 @@ $(eval $(call KernelPackage,gpio-cs5535))
define KernelPackage/gpio-cs5535-new
SUBMENU:=$(OTHER_MENU)
TITLE:=AMD CS5535/CS5536 GPIO driver with improved sysfs support
DEPENDS:=@TARGET_x86 +kmod-cs5535-mfd @!(LINUX_2_6_30||LINUX_2_6_31||LINUX_2_6_32)
DEPENDS:=@TARGET_x86 +kmod-cs5535-mfd
KCONFIG:=CONFIG_GPIO_CS5535
ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.1.0)),1)
FILES:=$(LINUX_DIR)/drivers/gpio/gpio-cs5535.ko
@ -342,7 +342,7 @@ $(eval $(call KernelPackage,input-gpio-keys))
define KernelPackage/input-gpio-keys-polled
SUBMENU:=$(OTHER_MENU)
TITLE:=Polled GPIO key support
DEPENDS:=@GPIO_SUPPORT @!(LINUX_2_6_30||LINUX_2_6_31||LINUX_2_6_32||LINUX_2_6_34||LINUX_2_6_35||LINUX_2_6_36) +kmod-input-polldev
DEPENDS:=@GPIO_SUPPORT +kmod-input-polldev
KCONFIG:= \
CONFIG_KEYBOARD_GPIO_POLLED \
CONFIG_INPUT_KEYBOARD=y
@ -488,16 +488,9 @@ define KernelPackage/rfkill
CONFIG_RFKILL \
CONFIG_RFKILL_INPUT=y \
CONFIG_RFKILL_LEDS=y
ifeq ($(CONFIG_LINUX_2_6_30),)
FILES:= \
$(LINUX_DIR)/net/rfkill/rfkill.ko
AUTOLOAD:=$(call AutoLoad,20,rfkill)
else
FILES:= \
$(LINUX_DIR)/net/rfkill/rfkill.ko \
$(LINUX_DIR)/net/rfkill/rfkill-input.ko
AUTOLOAD:=$(call AutoLoad,20,rfkill rfkill-input)
endif
$(call SetDepends/rfkill)
endef
@ -768,7 +761,7 @@ $(eval $(call KernelPackage,pwm-gpio))
define KernelPackage/rtc-core-2.6
SUBMENU:=$(OTHER_MENU)
DEPENDS:=@LINUX_2_6_30||LINUX_2_6_31||LINUX_2_6_32||LINUX_2_6_36||LINUX_2_6_37||LINUX_2_6_38||LINUX_2_6_39
DEPENDS:=@(LINUX_2_6_37||LINUX_2_6_38||LINUX_2_6_39)
TITLE:=Real Time Clock class support
KCONFIG:=CONFIG_RTC_CLASS
FILES:=$(LINUX_DIR)/drivers/rtc/rtc-core.ko
@ -783,7 +776,7 @@ $(eval $(call KernelPackage,rtc-core-2.6))
define KernelPackage/rtc-core-3.x
SUBMENU:=$(OTHER_MENU)
DEPENDS:=@!(LINUX_2_6_30||LINUX_2_6_31||LINUX_2_6_32||LINUX_2_6_36||LINUX_2_6_37||LINUX_2_6_38||LINUX_2_6_39)
DEPENDS:=@!(LINUX_2_6_37||LINUX_2_6_38||LINUX_2_6_39)
TITLE:=Real Time Clock class support
KCONFIG:=CONFIG_RTC_CLASS=y
endef
@ -883,7 +876,7 @@ $(eval $(call KernelPackage,mtdtests))
define KernelPackage/nand
SUBMENU:=$(OTHER_MENU)
TITLE:=NAND flash support
DEPENDS:=@!(LINUX_2_6_30||LINUX_2_6_31||LINUX_2_6_32||LINUX_2_6_36||LINUX_2_6_37||LINUX_2_6_38||LINUX_2_6_39)
DEPENDS:=@!(LINUX_2_6_37||LINUX_2_6_38||LINUX_2_6_39)
KCONFIG:=CONFIG_MTD_NAND \
CONFIG_MTD_NAND_IDS \
CONFIG_MTD_NAND_ECC
@ -904,7 +897,7 @@ $(eval $(call KernelPackage,nand))
define KernelPackage/nandsim
SUBMENU:=$(OTHER_MENU)
TITLE:=NAND simulator
DEPENDS:=@!(LINUX_2_6_30||LINUX_2_6_31||LINUX_2_6_32||LINUX_2_6_36||LINUX_2_6_37||LINUX_2_6_38||LINUX_2_6_39) +kmod-nand
DEPENDS:=@!(LINUX_2_6_37||LINUX_2_6_38||LINUX_2_6_39) +kmod-nand
KCONFIG:=CONFIG_MTD_NAND_NANDSIM
FILES:=$(LINUX_DIR)/drivers/mtd/nand/nandsim.ko
endef

View File

@ -166,7 +166,7 @@ $(eval $(call KernelPackage,xen-netdev))
define KernelPackage/xen-pcidev
SUBMENU:=$(VIRTUAL_MENU)
TITLE:=Xen PCI device frontend
DEPENDS:=@TARGET_x86_xen_domu @!LINUX_2_6_30&&!LINUX_2_6_31&&!LINUX_2_6_32&&!LINUX_2_6_36
DEPENDS:=@TARGET_x86_xen_domu
KCONFIG:=CONFIG_XEN_PCIDEV_FRONTEND
FILES:=$(LINUX_DIR)/drivers/xen/platform-pci.ko
AUTOLOAD:=$(call AutoLoad,10,xen-pcifront)

View File

@ -15,7 +15,7 @@ include $(INCLUDE_DIR)/package.mk
define KernelPackage/usb-sierrawireless-directip
SUBMENU:=USB Support
DEPENDS:=+kmod-usb-serial +kmod-usb-net @!(LINUX_2_6_30||LINUX_2_6_31||LINUX_2_6_32)
DEPENDS:=+kmod-usb-serial +kmod-usb-net
TITLE:=Updated Sierra Wireless drivers for DirectIP
FILES:= \
$(PKG_BUILD_DIR)/sierra.ko \

View File

@ -17,7 +17,6 @@ include $(INCLUDE_DIR)/package.mk
define KernelPackage/trelay
SUBMENU:=Network Support
TITLE:=Trivial Ethernet Relay
DEPENDS:=@!LINUX_2_6_30 @!LINUX_2_6_31 @!LINUX_2_6_32
FILES:=$(PKG_BUILD_DIR)/trelay.ko
AUTOLOAD:=$(call AutoLoad,50,trelay)
endef