2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 # $Id: Makefile 3297 2006-03-02 23:42:52Z florian $
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
15 PKG_MD5SUM
:=c14133a3d5b27927402a492e84d2467a
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
22 include $(INCLUDE_DIR
)/package.mk
24 #FIXME: add proper dependency handling on kmod-usb-core packages
25 define Package
/kmod-zd1211
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
)
39 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
40 ARCH
="$(LINUX_KARCH)" \
41 CROSS_COMPILE
="$(TARGET_CROSS)" \
44 LD
="$(TARGET_CROSS)ld" \
45 STAGING_DIR
=$(STAGING_DIR
) \
46 KERNELVERSION
="$(KERNEL)" \
47 KERNEL_SOURCE
="$(LINUX_DIR)" \
50 $(TARGET_CC
) $(PKG_BUILD_DIR
)/apdbg.c
-o
$(PKG_BUILD_DIR
)/apdbg
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
62 $(eval
$(call BuildPackage
,kmod-zd1211
))