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
16 PKG_SOURCE
:=$(PKG_NAME
)-driver-
$(PKG_VERSION
).tgz
17 PKG_SOURCE_URL
:=@openwrt
/
18 PKG_MD5SUM
:=885cf08742c95cc416258257b5842b22
20 PKG_BUILD_DIR
:=$(KERNEL_BUILD_DIR
)/$(PKG_NAME
)-driver-
$(PKG_VERSION
)
22 include $(INCLUDE_DIR
)/package.mk
24 #FIXME: add proper dependency handling on kmod-usb-core packages
25 define KernelPackage
/zd1211
26 SUBMENU
:=Wireless Drivers
27 DEPENDS
:=@LINUX_2_6
&&!LINUX_2_6_UML
28 TITLE
:=Driver for Zydas
1211 based USB devices
30 This package contains a Linux driver for the ZyDAS ZD1211
802.11b
/g
\\\
32 Initially contributed by ZyDAS
, this driver is actively maintained by the
\\\
33 open source community.
34 VERSION
:=$(LINUX_VERSION
)+$(PKG_VERSION
)-$(BOARD
)-$(PKG_RELEASE
)
35 FILES
:=$(PKG_BUILD_DIR
)/zd1211.
$(LINUX_KMOD_SUFFIX
)
36 AUTOLOAD
:=$(call AutoLoad
,60,zd1211
)
39 define Package
/zd1211-utils
42 TITLE
:=zd1211 user-space utilities
43 DESCRIPTION
:=zd1211 user-space utilities
: apdbg
, zd1211-sta
47 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
48 ARCH
="$(LINUX_KARCH)" \
49 CROSS_COMPILE
="$(TARGET_CROSS)" \
52 LD
="$(TARGET_CROSS)ld" \
53 KERNELVERSION
="$(KERNEL)" \
54 KERNEL_SOURCE
="$(LINUX_DIR)" \
57 $(TARGET_CC
) $(PKG_BUILD_DIR
)/apdbg.c
-o
$(PKG_BUILD_DIR
)/apdbg
60 define Package
/zd1211-utils
/install
61 $(INSTALL_DIR
) $(1)/usr
/sbin
62 $(CP
) $(PKG_BUILD_DIR
)/apdbg
$(1)/usr
/sbin
/
63 $(CP
) $(PKG_BUILD_DIR
)/sta
$(1)/usr
/sbin
/$(PKG_NAME
)-sta
66 $(eval
$(call Package
,zd1211-utils
))
67 $(eval
$(call KernelPackage
,zd1211
))