d61cc7ba202c3ca538178632656fed6755e43dce
[openwrt.git] / package / zd1211-driver / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id: Makefile 6582 2007-03-16 20:21:39Z nbd $
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=zd1211-driver
13 PKG_VERSION:=r85
14 PKG_RELEASE:=1
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
17 PKG_SOURCE_URL:=@openwrt/
18 PKG_MD5SUM:=885cf08742c95cc416258257b5842b22
19
20 include $(INCLUDE_DIR)/package.mk
21
22 #FIXME: add proper dependency handling on kmod-usb-core packages
23 define KernelPackage/zd1211
24 SUBMENU:=Wireless Drivers
25 DEPENDS:=@LINUX_2_6 @USB_SUPPORT
26 TITLE:=Driver for Zydas 1211 based USB devices
27 DESCRIPTION:=\
28 This package contains a Linux driver for the ZyDAS ZD1211 802.11b/g \\\
29 USB-WLAN-Chip.\\\
30 Initially contributed by ZyDAS, this driver is actively maintained by the \\\
31 open source community.
32 FILES:=$(PKG_BUILD_DIR)/zd1211.$(LINUX_KMOD_SUFFIX)
33 AUTOLOAD:=$(call AutoLoad,60,zd1211)
34 endef
35
36 define Package/zd1211-utils
37 SECTION:=utils
38 CATEGORY:=Utilities
39 TITLE:=zd1211 user-space utilities
40 DESCRIPTION:=zd1211 user-space utilities : apdbg, zd1211-sta
41 endef
42
43 define Build/Compile
44 $(MAKE) -C $(PKG_BUILD_DIR) \
45 ARCH="$(LINUX_KARCH)" \
46 CROSS_COMPILE="$(TARGET_CROSS)" \
47 CC="$(TARGET_CC)" \
48 CPP="$(TARGET_CC)" \
49 LD="$(TARGET_CROSS)ld" \
50 KERNELVERSION="$(KERNEL)" \
51 KERNEL_SOURCE="$(LINUX_DIR)" \
52 KDIR="$(LINUX_DIR)" \
53 all
54 $(TARGET_CC) $(PKG_BUILD_DIR)/apdbg.c -o $(PKG_BUILD_DIR)/apdbg
55 endef
56
57 define Package/zd1211-utils/install
58 $(INSTALL_DIR) $(1)/usr/sbin
59 $(CP) $(PKG_BUILD_DIR)/apdbg $(1)/usr/sbin/
60 $(CP) $(PKG_BUILD_DIR)/sta $(1)/usr/sbin/$(PKG_NAME)-sta
61 endef
62
63 $(eval $(call Package,zd1211-utils))
64 $(eval $(call KernelPackage,zd1211))
This page took 0.043842 seconds and 3 git commands to generate.