Root/ks7010/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
8include $(TOPDIR)/rules.mk
9include $(INCLUDE_DIR)/kernel.mk
10
11PKG_NAME:=ks7010
12PKG_RELEASE:=1
13
14include $(INCLUDE_DIR)/package.mk
15
16define KernelPackage/ks7010
17  SUBMENU:=Wireless Drivers
18  TITLE:=ks7010 SDIO wireless card
19  DEPENDS:=
20  FILES:=$(PKG_BUILD_DIR)/ks7010.$(LINUX_KMOD_SUFFIX)
21  AUTOLOAD:=$(call AutoLoad,10,ks7010)
22endef
23
24MAKE_OPTS:= \
25    ARCH="$(LINUX_KARCH)" \
26    CROSS_COMPILE="$(TARGET_CROSS)" \
27    SUBDIRS="$(PKG_BUILD_DIR)"
28
29define Build/Prepare
30    $(INSTALL_DIR) $(PKG_BUILD_DIR)
31    $(CP) ./src/* $(PKG_BUILD_DIR)/
32endef
33
34define Build/Compile
35    $(MAKE) -C "$(LINUX_DIR)" \
36        $(MAKE_OPTS) \
37        modules
38endef
39
40define KernelPackage/ks7010/install
41    $(INSTALL_DIR) $(1)/lib/firmware/
42    $(CP) ./files/* $(1)/lib/firmware/
43endef
44
45$(eval $(call KernelPackage,ks7010))
46

Archive Download this file



interactive