fix vpi/vci setting for pppoa
[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
16 PKG_SOURCE:=$(PKG_NAME)-driver-$(PKG_VERSION).tgz
17 PKG_SOURCE_URL:=http://zd1211.ath.cx/download/
18 PKG_MD5SUM:=c14133a3d5b27927402a492e84d2467a
19 PKG_CAT:=zcat
20
21 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-driver-$(PKG_VERSION)
22
23 include $(INCLUDE_DIR)/package.mk
24
25 #FIXME: add proper dependency handling on kmod-usb-core packages
26 define Package/kmod-zd1211
27 SECTION:=kernel
28 CATEGORY:=Kernel drivers
29 DEPENDS:=@LINUX_2_6&&!LINUX_2_6_UML
30 TITLE:=Driver for Zydas 1211 based USB devices
31 DESCRIPTION:=\
32 This package contains a Linux driver for the ZyDAS ZD1211 802.11b/g \\\
33 USB-WLAN-Chip.\\\
34 Initially contributed by ZyDAS, this driver is actively maintained by the \\\
35 open source community.
36 URL:=http://zd1211.ath.cx/
37 VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
38 endef
39
40 define Build/Compile
41 $(MAKE) -C $(PKG_BUILD_DIR) \
42 ARCH="$(LINUX_KARCH)" \
43 CROSS_COMPILE="$(TARGET_CROSS)" \
44 CC="$(TARGET_CC)" \
45 CPP="$(TARGET_CC)" \
46 LD="$(TARGET_CROSS)ld" \
47 KERNELVERSION="$(KERNEL)" \
48 KERNEL_SOURCE="$(LINUX_DIR)" \
49 KDIR="$(LINUX_DIR)" \
50 all
51 $(TARGET_CC) $(PKG_BUILD_DIR)/apdbg.c -o $(PKG_BUILD_DIR)/apdbg
52 endef
53
54 define Package/kmod-zd1211/install
55 install -d -m0755 $(1)/lib/modules/$(LINUX_VERSION)
56 $(CP) $(PKG_BUILD_DIR)/zd1211.$(LINUX_KMOD_SUFFIX) \
57 $(1)/lib/modules/$(LINUX_VERSION)/
58 install -d -m0755 $(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 BuildPackage,kmod-zd1211))
This page took 0.042288 seconds and 5 git commands to generate.