1 # $Id: Makefile 3297 2006-03-02 23:42:52Z florian $
3 include $(TOPDIR
)/rules.mk
9 PKG_MD5SUM
:=c14133a3d5b27927402a492e84d2467a
11 PKG_SOURCE_URL
:=http
://zd1211.ath.cx
/download
/
12 PKG_SOURCE
:=$(PKG_NAME
)-driver-
$(PKG_VERSION
).tgz
15 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-driver-
$(PKG_VERSION
)
16 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
18 include $(TOPDIR
)/package
/rules.mk
20 $(eval
$(call PKG_template
,KMOD_ZD1211
,kmod-
$(PKG_NAME
),$(LINUX_VERSION
)+$(PKG_VERSION
)-$(BOARD
)-$(PKG_RELEASE
),$(ARCH
),kernel
($(LINUX_VERSION
)-$(BOARD
)-$(LINUX_RELEASE
))))
22 $(PKG_BUILD_DIR
)/.configured
:
25 $(PKG_BUILD_DIR
)/.built
:
26 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
27 ARCH
="$(LINUX_KARCH)" \
28 CROSS_COMPILE
="$(TARGET_CROSS)" \
31 LD
="$(TARGET_CROSS)ld" \
32 STAGING_DIR
=$(STAGING_DIR
) \
33 KERNELVERSION
="$(KERNEL)" \
34 MODPATH
="$(MODULES_DIR)" \
35 KERNEL_SOURCE
="$(LINUX_DIR)" \
37 $(TARGET_CC
) $(PKG_BUILD_DIR
)/apdbg.c
-o
$(PKG_BUILD_DIR
)/apdbg
41 install -m0755
-d
$(IDIR_KMOD_ZD1211
)/lib
/modules
/$(LINUX_VERSION
) \
42 $(IDIR_KMOD_ZD1211
)/usr
/sbin
43 $(CP
) $(PKG_BUILD_DIR
)/zd1211.
$(LINUX_KMOD_SUFFIX
) \
44 $(IDIR_KMOD_ZD1211
)/lib
/modules
/$(LINUX_VERSION
)/
45 $(CP
) $(PKG_BUILD_DIR
)/apdbg
$(IDIR_KMOD_ZD1211
)/usr
/sbin
/
46 $(CP
) $(PKG_BUILD_DIR
)/sta
$(IDIR_KMOD_ZD1211
)/usr
/sbin
/$(PKG_NAME
)-sta
47 $(RSTRIP_KMOD
) $(IDIR_KMOD_ZD1211
)
48 $(IPKG_BUILD
) $(IDIR_KMOD_ZD1211
) $(PACKAGE_DIR
)