define KernelPackage/ata-ahci
TITLE:=AHCI Serial ATA support
KCONFIG:=CONFIG_SATA_AHCI
- FILES:=$(LINUX_DIR)/drivers/ata/ahci.ko
- ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.35)),1)
- FILES += $(LINUX_DIR)/drivers/ata/libahci.ko
- AUTOLOAD:=$(call AutoLoad,41,libahci ahci,1)
- else
- AUTOLOAD:=$(call AutoLoad,41,ahci,1)
- endif
+ FILES:= \
+ $(LINUX_DIR)/drivers/ata/ahci.ko \
+ $(LINUX_DIR)/drivers/ata/libahci.ko
+ AUTOLOAD:=$(call AutoLoad,41,libahci ahci,1)
$(call AddDepends/ata)
endef
$(LINUX_DIR)/crypto/async_tx/async_xor.ko \
$(LINUX_DIR)/crypto/async_tx/async_pq.ko \
$(LINUX_DIR)/crypto/async_tx/async_raid6_recov.ko \
- $(LINUX_DIR)/drivers/md/raid456.ko
- # Additional files with kernel-dependent locations or presence
- # For Linux >= 2.6.36
- ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.36)), 1)
- FILES+= \
+ $(LINUX_DIR)/drivers/md/raid456.ko \
$(LINUX_DIR)/lib/raid6/raid6_pq.ko
- # For Linux < 2.6.36
- else
- FILES+= \
- $(LINUX_DIR)/drivers/md/raid6_pq.ko
- endif
AUTOLOAD:=$(call AutoLoad,28, xor async_tx async_memcpy async_xor raid6_pq async_pq async_raid6_recov raid456)
endef
$(LINUX_DIR)/crypto/tea.ko \
$(LINUX_DIR)/crypto/tgr192.ko \
$(LINUX_DIR)/crypto/twofish_common.ko \
- $(LINUX_DIR)/crypto/wp512.ko
- ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),le,2.6.35)),1)
- FILES += $(LINUX_DIR)/crypto/twofish.ko
- else
- FILES += $(LINUX_DIR)/crypto/twofish_generic.ko
- endif
+ $(LINUX_DIR)/crypto/wp512.ko \
+ $(LINUX_DIR)/crypto/twofish_generic.ko
ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),le,3.1)),1)
FILES += $(LINUX_DIR)/crypto/blowfish.ko
else
CONFIG_JBD2
FILES:= \
$(LINUX_DIR)/fs/ext4/ext4.ko \
- $(LINUX_DIR)/fs/jbd2/jbd2.ko
- ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.37)),1)
- FILES+= \
+ $(LINUX_DIR)/fs/jbd2/jbd2.ko \
$(LINUX_DIR)/fs/mbcache.ko
- AUTOLOAD:=$(call AutoLoad,30,mbcache jbd2 ext4,1)
- else
- AUTOLOAD:=$(call AutoLoad,30,jbd2 ext4,1)
- endif
+ AUTOLOAD:=$(call AutoLoad,30,mbcache jbd2 ext4,1)
$(call AddDepends/crc16)
endef
TITLE:=GRE support
DEPENDS:=+PACKAGE_kmod-ipv6:kmod-ipv6
KCONFIG:=CONFIG_NET_IPGRE CONFIG_NET_IPGRE_DEMUX
- ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.37)),1)
FILES:=$(LINUX_DIR)/net/ipv4/ip_gre.ko $(LINUX_DIR)/net/ipv4/gre.ko
AUTOLOAD:=$(call AutoLoad,39,gre ip_gre)
- else
- FILES:=$(LINUX_DIR)/net/ipv4/ip_gre.ko
- AUTOLOAD:=$(call AutoLoad,39,ip_gre)
- endif
endef
define KernelPackage/gre/description
endef
$(eval $(call KernelPackage,pptp))
-
+
define KernelPackage/pppol2tp
SUBMENU:=$(NETWORK_SUPPORT_MENU)
TITLE:=PPPoL2TP support
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
- AUTOLOAD:=$(call AutoLoad,40,l2tp_ppp)
- else
- FILES:=$(LINUX_DIR)/drivers/net/pppol2tp.ko
- AUTOLOAD:=$(call AutoLoad,40,pppol2tp)
- endif
+ FILES:=$(LINUX_DIR)/net/l2tp/l2tp_ppp.ko
+ AUTOLOAD:=$(call AutoLoad,40,l2tp_ppp)
endef
define KernelPackage/pppol2tp/description
$(LINUX_DIR)/net/bluetooth/hidp/hidp.ko \
$(LINUX_DIR)/drivers/bluetooth/hci_uart.ko \
$(LINUX_DIR)/drivers/bluetooth/btusb.ko
- ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.39)),1)
- AUTOLOAD:=$(call AutoLoad,90,bluetooth rfcomm bnep hidp hci_uart btusb)
- else
- FILES+= \
- $(LINUX_DIR)/net/bluetooth/l2cap.ko \
- $(LINUX_DIR)/net/bluetooth/sco.ko
- AUTOLOAD:=$(call AutoLoad,90,bluetooth l2cap sco rfcomm bnep hidp hci_uart btusb)
- endif
+ AUTOLOAD:=$(call AutoLoad,90,bluetooth rfcomm bnep hidp hci_uart btusb)
endef
define KernelPackage/bluetooth/description
ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.3)),1)
FILES:=$(LINUX_DIR)/drivers/tty/serial/8250/8250.ko
else
- ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.38)),1)
FILES:=$(LINUX_DIR)/drivers/tty/serial/8250.ko
- else
- FILES:=$(LINUX_DIR)/drivers/serial/8250.ko
- endif
endif
endef
KCONFIG:= \
CONFIG_PCMCIA_SERIAL_CS \
CONFIG_SERIAL_8250_CS
- ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.38)),1)
- ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.3)),1)
- FILES:=$(LINUX_DIR)/drivers/tty/serial/8250/serial_cs.ko
- else
- FILES:=$(LINUX_DIR)/drivers/tty/serial/serial_cs.ko
- endif
+ ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.3)),1)
+ FILES:=$(LINUX_DIR)/drivers/tty/serial/8250/serial_cs.ko
else
- FILES:=$(LINUX_DIR)/drivers/serial/serial_cs.ko
+ FILES:=$(LINUX_DIR)/drivers/tty/serial/serial_cs.ko
endif
AUTOLOAD:=$(call AutoLoad,45,serial_cs)
endef
CONFIG_V4L_PCI_DRIVERS=y \
CONFIG_V4L_PLATFORM_DRIVERS=y \
CONFIG_V4L_ISA_PARPORT_DRIVERS=y
-ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.38)),1)
FILES:= \
$(LINUX_DIR)/drivers/media/video/v4l2-common.ko \
$(LINUX_DIR)/drivers/media/video/videodev.ko
AUTOLOAD:=$(call AutoLoad,60, videodev v4l2-common)
-else
- FILES:= \
- $(LINUX_DIR)/drivers/media/video/v4l2-common.ko \
- $(LINUX_DIR)/drivers/media/video/v4l1-compat.ko \
- $(LINUX_DIR)/drivers/media/video/videodev.ko
- AUTOLOAD:=$(call AutoLoad,60, v4l1-compat videodev v4l2-common)
-endif
endef
define KernelPackage/video-core/description
TITLE:=Xen event channels
DEPENDS:=@TARGET_x86_xen_domu
KCONFIG:=CONFIG_XEN_DEV_EVTCHN
- ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.37)),1)
- FILES:=$(LINUX_DIR)/drivers/xen/xen-evtchn.ko
- AUTOLOAD:=$(call AutoLoad,06,xen-evtchn)
- else
- FILES:=$(LINUX_DIR)/drivers/xen/evtchn.ko
- AUTOLOAD:=$(call AutoLoad,06,evtchn)
- endif
+ FILES:=$(LINUX_DIR)/drivers/xen/xen-evtchn.ko
+ AUTOLOAD:=$(call AutoLoad,06,xen-evtchn)
endef
define KernelPackage/xen-evtchn/description