add chaos_calmer branch
[15.05/openwrt.git] / package / kernel / wrt55agv2-spidevs / Makefile
1 #
2 # Copyright (C) 2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=wrt55agv2-spidevs
12 PKG_RELEASE:=1
13
14 include $(INCLUDE_DIR)/package.mk
15
16 define KernelPackage/wrt55agv2-spidevs
17   SUBMENU:=Other modules
18   TITLE:=WRT55AG v2 SPI devices support
19   DEPENDS:=@TARGET_ath25 +kmod-spi-gpio-old +kmod-spi-ks8995
20   FILES:=$(PKG_BUILD_DIR)/wrt55agv2_spidevs.ko
21 endef
22
23 define KernelPackage/wrt55agv2-spidevs/description
24   Kernel module for the SPI devices on the WRT55AG v2 board.
25 endef
26
27 MAKE_OPTS:= \
28         ARCH="$(LINUX_KARCH)" \
29         CROSS_COMPILE="$(TARGET_CROSS)" \
30         SUBDIRS="$(PKG_BUILD_DIR)"
31
32 define Build/Prepare
33         mkdir -p $(PKG_BUILD_DIR)
34         $(CP) ./src/* $(PKG_BUILD_DIR)/
35 endef
36
37 define Build/Compile
38         $(MAKE) -C "$(LINUX_DIR)" \
39                 $(MAKE_OPTS) \
40                 modules
41 endef
42
43 $(eval $(call KernelPackage,wrt55agv2-spidevs))