aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/modules/spi.mk
diff options
context:
space:
mode:
authorJonas Gorski <jogo@openwrt.org>2011-11-09 21:16:52 +0000
committerJonas Gorski <jogo@openwrt.org>2011-11-09 21:16:52 +0000
commit7cdbaef39d2068aacc8fd06582a18591eac859ea (patch)
treec53834093241bc4d12dc1d6874d58e3d3d875b12 /package/kernel/modules/spi.mk
parent04fd1b5e8c944dc4431061dc49c552cf942fff62 (diff)
downloadupstream-7cdbaef39d2068aacc8fd06582a18591eac859ea.tar.gz
upstream-7cdbaef39d2068aacc8fd06582a18591eac859ea.tar.bz2
upstream-7cdbaef39d2068aacc8fd06582a18591eac859ea.zip
package: kernel: add handling for 3.2 renames (and some missed ones for 3.1)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28897 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/modules/spi.mk')
-rw-r--r--package/kernel/modules/spi.mk23
1 files changed, 14 insertions, 9 deletions
diff --git a/package/kernel/modules/spi.mk b/package/kernel/modules/spi.mk
index 0c187b3a2f..ff24d9f663 100644
--- a/package/kernel/modules/spi.mk
+++ b/package/kernel/modules/spi.mk
@@ -31,8 +31,13 @@ define KernelPackage/spi-bitbang
KCONFIG:=CONFIG_SPI_BITBANG \
CONFIG_SPI=y \
CONFIG_SPI_MASTER=y
- FILES:=$(LINUX_DIR)/drivers/spi/spi_bitbang.ko
- AUTOLOAD:=$(call AutoLoad,91,spi_bitbang)
+ ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.1)),1)
+ FILES:=$(LINUX_DIR)/drivers/spi/spi-bitbang.ko
+ AUTOLOAD:=$(call AutoLoad,91,spi-bitbang)
+ else
+ FILES:=$(LINUX_DIR)/drivers/spi/spi_bitbang.ko
+ AUTOLOAD:=$(call AutoLoad,91,spi_bitbang)
+ endif
endef
define KernelPackage/spi-bitbang/description
@@ -62,13 +67,13 @@ define KernelPackage/spi-gpio
TITLE:=GPIO-based bitbanging SPI Master
DEPENDS:=@GPIO_SUPPORT +kmod-spi-bitbang
KCONFIG:=CONFIG_SPI_GPIO
-ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.1.0)),1)
- FILES:=$(LINUX_DIR)/drivers/spi/spi-gpio.ko
- AUTOLOAD:=$(call AutoLoad,92,spi-gpio)
-else
- FILES:=$(LINUX_DIR)/drivers/spi/spi_gpio.ko
- AUTOLOAD:=$(call AutoLoad,92,spi_gpio)
-endif
+ ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.1)),1)
+ FILES:=$(LINUX_DIR)/drivers/spi/spi-gpio.ko
+ AUTOLOAD:=$(call AutoLoad,92,spi-gpio)
+ else
+ FILES:=$(LINUX_DIR)/drivers/spi/spi_gpio.ko
+ AUTOLOAD:=$(call AutoLoad,92,spi_gpio)
+ endif
endef
define KernelPackage/spi-gpio/description