upgrade busybox to v1.11.1 and add current upstream fixes
[openwrt.git] / package / spi-ks8995 / 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:=spi-ks8995
12 PKG_RELEASE:=1
13
14 include $(INCLUDE_DIR)/package.mk
15
16 define KernelPackage/spi-ks8995
17 SUBMENU:=Other modules
18 TITLE:=Micrel/Kendin KS8995 Ethernet switch control
19 DEPENDS:=@LINUX_2_6
20 FILES:=$(PKG_BUILD_DIR)/spi_ks8995.$(LINUX_KMOD_SUFFIX)
21 KCONFIG:=CONFIG_SPI=y \
22 CONFIG_SPI_MASTER=y
23 endef
24
25 define KernelPackage/spi-ks8995/description
26 Kernel module for Micrel/Kendin KS8995 ethernet switch
27 endef
28
29 EXTRA_KCONFIG:= \
30 CONFIG_SPI_KS8995=m
31
32 EXTRA_CFLAGS:= \
33 $(patsubst CONFIG_%, -DCONFIG_%=1, $(patsubst %=m,%,$(filter %=m,$(EXTRA_KCONFIG)))) \
34 $(patsubst CONFIG_%, -DCONFIG_%=1, $(patsubst %=y,%,$(filter %=y,$(EXTRA_KCONFIG)))) \
35
36 MAKE_OPTS:= \
37 ARCH="$(LINUX_KARCH)" \
38 CROSS_COMPILE="$(TARGET_CROSS)" \
39 SUBDIRS="$(PKG_BUILD_DIR)" \
40 EXTRA_CFLAGS="$(EXTRA_CFLAGS)" \
41 LINUXINCLUDE="-I$(LINUX_DIR)/include -include linux/autoconf.h" \
42 $(EXTRA_KCONFIG)
43
44 define Build/Prepare
45 mkdir -p $(PKG_BUILD_DIR)
46 $(CP) ./src/* $(PKG_BUILD_DIR)/
47 endef
48
49 define Build/Compile
50 $(MAKE) -C "$(LINUX_DIR)" \
51 $(MAKE_OPTS) \
52 modules
53 endef
54
55 $(eval $(call KernelPackage,spi-ks8995))
This page took 0.044683 seconds and 5 git commands to generate.