Fix/clean several hundred package makefiles
[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_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-driver-$(PKG_VERSION)
17 PKG_SOURCE:=$(PKG_NAME)-driver-$(PKG_VERSION).tgz
18 PKG_SOURCE_URL:=http://zd1211.ath.cx/download/
19 PKG_MD5SUM:=c14133a3d5b27927402a492e84d2467a
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&&!LINUX_2_6_UML
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 KERNELVERSION="$(KERNEL)" \
46 KERNEL_SOURCE="$(LINUX_DIR)" \
47 KDIR="$(LINUX_DIR)" \
48 all
49 $(TARGET_CC) $(PKG_BUILD_DIR)/apdbg.c -o $(PKG_BUILD_DIR)/apdbg
50 endef
51
52 define Package/kmod-zd1211/install
53 install -m0755 -d $(1)/lib/modules/$(LINUX_VERSION)
54 $(CP) $(PKG_BUILD_DIR)/zd1211.$(LINUX_KMOD_SUFFIX) \
55 $(1)/lib/modules/$(LINUX_VERSION)/
56 install -m0755 -d $(1)/usr/sbin
57 $(CP) $(PKG_BUILD_DIR)/apdbg $(1)/usr/sbin/
58 $(CP) $(PKG_BUILD_DIR)/sta $(1)/usr/sbin/$(PKG_NAME)-sta
59 endef
60
61 $(eval $(call BuildPackage,kmod-zd1211))
This page took 0.061905 seconds and 5 git commands to generate.