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
16 PKG_SOURCE
:=$(PKG_NAME
)-driver-
$(PKG_VERSION
).tgz
17 PKG_SOURCE_URL
:=http
://zd1211.ath.cx
/download
/
18 PKG_MD5SUM
:=c14133a3d5b27927402a492e84d2467a
21 PKG_BUILD_DIR
:=$(KERNEL_BUILD_DIR
)/$(PKG_NAME
)-driver-
$(PKG_VERSION
)
23 include $(INCLUDE_DIR
)/package.mk
25 #FIXME: add proper dependency handling on kmod-usb-core packages
26 define Package
/kmod-zd1211
28 CATEGORY
:=Kernel drivers
29 DEPENDS
:=@LINUX_2_6
&&!LINUX_2_6_UML
30 TITLE
:=Driver for Zydas
1211 based USB devices
32 This package contains a Linux driver for the ZyDAS ZD1211
802.11b
/g
\\\
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
)
41 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
42 ARCH
="$(LINUX_KARCH)" \
43 CROSS_COMPILE
="$(TARGET_CROSS)" \
46 LD
="$(TARGET_CROSS)ld" \
47 KERNELVERSION
="$(KERNEL)" \
48 KERNEL_SOURCE
="$(LINUX_DIR)" \
51 $(TARGET_CC
) $(PKG_BUILD_DIR
)/apdbg.c
-o
$(PKG_BUILD_DIR
)/apdbg
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
63 $(eval
$(call BuildPackage
,kmod-zd1211
))