1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-23 23:46:16 +02:00

kernel: speed up building kernel packages by getting rid of unnecessary CompareKernelPatchVer calls

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22724 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2010-08-19 12:49:56 +00:00
parent dc74adf445
commit 67dac5cad6
3 changed files with 5 additions and 3 deletions

View File

@ -552,7 +552,7 @@ define KernelPackage/rfkill
CONFIG_RFKILL \
CONFIG_RFKILL_INPUT=y \
CONFIG_RFKILL_LEDS=y
ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.31)),1)
ifeq ($(CONFIG_LINUX_2_6_30),)
FILES:= \
$(LINUX_DIR)/net/rfkill/rfkill.ko
AUTOLOAD:=$(call AutoLoad,20,rfkill)

View File

@ -54,7 +54,8 @@ define KernelPackage/pcmcia-yenta
KCONFIG:= \
CONFIG_PCCARD_NONSTATIC \
CONFIG_YENTA
ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.35)),1)
# For Linux 2.6.35+
ifneq ($(wildcard $(LINUX_DIR)/drivers/pcmcia/pcmcia_rsrc.ko),)
FILES:= \
$(LINUX_DIR)/drivers/pcmcia/pcmcia_rsrc.ko \
$(LINUX_DIR)/drivers/pcmcia/yenta_socket.ko

View File

@ -145,7 +145,8 @@ define KernelPackage/usb-audio
CONFIG_SND_USB_AUDIO
$(call AddDepends/usb)
$(call AddDepends/sound)
ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.35)),1)
# For Linux 2.6.35+
ifneq ($(wildcard $(LINUX_DIR)/sound/usb/snd-usbmidi-lib.ko),)
FILES:= \
$(LINUX_DIR)/sound/usb/snd-usbmidi-lib.ko \
$(LINUX_DIR)/sound/usb/snd-usb-audio.ko