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 6582 2007-03-16 20:21:39Z nbd $
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
12 PKG_NAME
:=zd1211-driver
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).tgz
17 PKG_SOURCE_URL
:=@openwrt
/
18 PKG_MD5SUM
:=885cf08742c95cc416258257b5842b22
20 include $(INCLUDE_DIR
)/package.mk
22 #FIXME: add proper dependency handling on kmod-usb-core packages
23 define KernelPackage
/zd1211
24 SUBMENU
:=Wireless Drivers
25 DEPENDS
:=@LINUX_2_6
&&!LINUX_2_6_UML
26 TITLE
:=Driver for Zydas
1211 based USB devices
28 This package contains a Linux driver for the ZyDAS ZD1211
802.11b
/g
\\\
30 Initially contributed by ZyDAS
, this driver is actively maintained by the
\\\
31 open source community.
32 FILES
:=$(PKG_BUILD_DIR
)/zd1211.
$(LINUX_KMOD_SUFFIX
)
33 AUTOLOAD
:=$(call AutoLoad
,60,zd1211
)
36 define Package
/zd1211-utils
39 TITLE
:=zd1211 user-space utilities
40 DESCRIPTION
:=zd1211 user-space utilities
: apdbg
, zd1211-sta
44 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
45 ARCH
="$(LINUX_KARCH)" \
46 CROSS_COMPILE
="$(TARGET_CROSS)" \
49 LD
="$(TARGET_CROSS)ld" \
50 KERNELVERSION
="$(KERNEL)" \
51 KERNEL_SOURCE
="$(LINUX_DIR)" \
54 $(TARGET_CC
) $(PKG_BUILD_DIR
)/apdbg.c
-o
$(PKG_BUILD_DIR
)/apdbg
57 define Package
/zd1211-utils
/install
58 $(INSTALL_DIR
) $(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 Package
,zd1211-utils
))
64 $(eval
$(call KernelPackage
,zd1211
))