1 # $Id: Makefile 3297 2006-03-02 23:42:52Z florian $
3 include $(TOPDIR
)/rules.mk
4 include $(TOPDIR
)/include/kernel.mk
9 PKG_MD5SUM
:=c14133a3d5b27927402a492e84d2467a
11 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-driver-
$(PKG_VERSION
)
12 PKG_SOURCE_URL
:=http
://zd1211.ath.cx
/download
/
13 PKG_SOURCE
:=$(PKG_NAME
)-driver-
$(PKG_VERSION
).tgz
16 include $(TOPDIR
)/include/package.mk
18 #FIXME: add proper dependency handling on kmod-usb-core packages
19 define Package
/kmod-zd1211
23 TITLE
:=Driver for Zydas
1211 based USB devices
24 DESCRIPTION
:=Driver for Zydas
1211 based USB devices
\\\
25 Linux driver for the ZyDAS ZD1211
802.11b
/g USB-WLAN-Chip.
\\\
26 Initially contributed by ZyDAS
, this driver is actively maintained by the
\\\
27 open source community.
28 URL
:=http
://zd1211.ath.cx
/
29 VERSION
:=$(LINUX_VERSION
)+$(PKG_VERSION
)-$(BOARD
)-$(PKG_RELEASE
)
33 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
34 ARCH
="$(LINUX_KARCH)" \
35 CROSS_COMPILE
="$(TARGET_CROSS)" \
38 LD
="$(TARGET_CROSS)ld" \
39 STAGING_DIR
=$(STAGING_DIR
) \
40 KERNELVERSION
="$(KERNEL)" \
41 KERNEL_SOURCE
="$(LINUX_DIR)" \
44 $(TARGET_CC
) $(PKG_BUILD_DIR
)/apdbg.c
-o
$(PKG_BUILD_DIR
)/apdbg
47 define Package
/kmod-zd1211
/install
48 install -m0755
-d
$(1)/lib
/modules
/$(LINUX_VERSION
)
49 $(CP
) $(PKG_BUILD_DIR
)/zd1211.
$(LINUX_KMOD_SUFFIX
) \
50 $(1)/lib
/modules
/$(LINUX_VERSION
)/
51 install -m0755
-d
$(1)/usr
/sbin
52 $(CP
) $(PKG_BUILD_DIR
)/apdbg
$(1)/usr
/sbin
/
53 $(CP
) $(PKG_BUILD_DIR
)/sta
$(1)/usr
/sbin
/$(PKG_NAME
)-sta
56 $(eval
$(call BuildPackage
,kmod-zd1211
))