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