2 # Copyright (C) 2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
9 include $(INCLUDE_DIR
)/kernel.mk
14 include $(INCLUDE_DIR
)/package.mk
16 define KernelPackage
/spi-ks8995
18 TITLE
:=Micrel
/Kendin KS8995 Ethernet switch control
19 FILES
:=$(PKG_BUILD_DIR
)/spi_ks8995.ko
20 KCONFIG
:=CONFIG_SPI
=y \
22 AUTOLOAD
:=$(call AutoLoad
,50,spi_ks8995
)
25 define KernelPackage
/spi-ks8995
/description
26 Kernel module for Micrel
/Kendin KS8995 ethernet switch
33 $(patsubst CONFIG_
%, -DCONFIG_
%=1, $(patsubst %=m
,%,$(filter %=m
,$(EXTRA_KCONFIG
)))) \
34 $(patsubst CONFIG_
%, -DCONFIG_
%=1, $(patsubst %=y
,%,$(filter %=y
,$(EXTRA_KCONFIG
)))) \
37 ARCH
="$(LINUX_KARCH)" \
38 CROSS_COMPILE
="$(TARGET_CROSS)" \
39 SUBDIRS
="$(PKG_BUILD_DIR)" \
40 EXTRA_CFLAGS
="$(EXTRA_CFLAGS)" \
44 mkdir
-p
$(PKG_BUILD_DIR
)
45 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
49 $(MAKE
) -C
"$(LINUX_DIR)" \
54 $(eval
$(call KernelPackage
,spi-ks8995
))