credit where credit is due
[openwrt.git] / package / zd1211 / 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 3297 2006-03-02 23:42:52Z florian $
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=zd1211
13 PKG_VERSION:=r69
14 PKG_RELEASE:=1
15 PKG_MD5SUM:=c14133a3d5b27927402a492e84d2467a
16
17 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-driver-$(PKG_VERSION)
18 PKG_SOURCE_URL:=http://zd1211.ath.cx/download/
19 PKG_SOURCE:=$(PKG_NAME)-driver-$(PKG_VERSION).tgz
20 PKG_CAT:=zcat
21
22 include $(INCLUDE_DIR)/package.mk
23
24 #FIXME: add proper dependency handling on kmod-usb-core packages
25 define Package/kmod-zd1211
26 SECTION:=drivers
27 CATEGORY:=Drivers
28 DEPENDS:=@LINUX_2_6
29 TITLE:=Driver for Zydas 1211 based USB devices
30 DESCRIPTION:=Driver for Zydas 1211 based USB devices \\\
31 Linux driver for the ZyDAS ZD1211 802.11b/g USB-WLAN-Chip.\\\
32 Initially contributed by ZyDAS, this driver is actively maintained by the \\\
33 open source community.
34 URL:=http://zd1211.ath.cx/
35 VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
36 endef
37
38 define Build/Compile
39 $(MAKE) -C $(PKG_BUILD_DIR) \
40 ARCH="$(LINUX_KARCH)" \
41 CROSS_COMPILE="$(TARGET_CROSS)" \
42 CC="$(TARGET_CC)" \
43 CPP="$(TARGET_CC)" \
44 LD="$(TARGET_CROSS)ld" \
45 STAGING_DIR=$(STAGING_DIR) \
46 KERNELVERSION="$(KERNEL)" \
47 KERNEL_SOURCE="$(LINUX_DIR)" \
48 KDIR="$(LINUX_DIR)" \
49 all
50 $(TARGET_CC) $(PKG_BUILD_DIR)/apdbg.c -o $(PKG_BUILD_DIR)/apdbg
51 endef
52
53 define Package/kmod-zd1211/install
54 install -m0755 -d $(1)/lib/modules/$(LINUX_VERSION)
55 $(CP) $(PKG_BUILD_DIR)/zd1211.$(LINUX_KMOD_SUFFIX) \
56 $(1)/lib/modules/$(LINUX_VERSION)/
57 install -m0755 -d $(1)/usr/sbin
58 $(CP) $(PKG_BUILD_DIR)/apdbg $(1)/usr/sbin/
59 $(CP) $(PKG_BUILD_DIR)/sta $(1)/usr/sbin/$(PKG_NAME)-sta
60 endef
61
62 $(eval $(call BuildPackage,kmod-zd1211))
This page took 0.046516 seconds and 5 git commands to generate.