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.
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
17 PKG_SOURCE_URL
:=@openwrt
/
18 PKG_MD5SUM
:=ce36d3d00f87a331d3dee6d5359d4499
20 PKG_FW_NAME
:=tiacx111c16
21 PKG_FW_URL
:=http
://teknoraver.campuslife.it
/software
/acx-mac80211
/
22 PKG_FW_MD5SUM
:=7026826460376f6b174f9225bd7781b9
25 bzcat
$(DL_DIR
)/$(PKG_SOURCE
) | \
26 $(TAR
) -C
$(KERNEL_BUILD_DIR
) $(TAR_OPTIONS
); \
27 chmod
-R u
+w
$(PKG_BUILD_DIR
)
29 include $(INCLUDE_DIR
)/package.mk
31 define KernelPackage
/acx
32 TITLE
:=Driver for TI ACX1xx chipset
33 DEPENDS
:=@LINUX_2_6 @
!TARGET_avr32
+wireless-tools
34 URL
:=http
://acx100.sourceforge.net
/
35 SUBMENU
:=Wireless Drivers
36 FILES
:= $(PKG_BUILD_DIR
)/acx.
$(LINUX_KMOD_SUFFIX
)
37 AUTOLOAD
:=$(call AutoLoad
,50,acx
)
40 define KernelPackage
/acx
/description
41 This package contains a driver for TI ACX1xx
802.11a
/b
/g chipsets.
44 $(STAMP_BUILT
): $(DL_DIR
)/$(PKG_FW_NAME
)
46 $(DL_DIR
)/$(PKG_FW_NAME
):
47 $(SCRIPT_DIR
)/download.pl
"$(DL_DIR)" "$(PKG_FW_NAME)" "$(PKG_FW_MD5SUM)" $(PKG_FW_URL
)
50 $(MAKE
) -C
$(LINUX_DIR
) \
51 SUBDIRS
="$(PKG_BUILD_DIR)" \
52 ARCH
="$(LINUX_KARCH)" \
53 CROSS_COMPILE
="$(TARGET_CROSS)" \
56 LD
="$(TARGET_CROSS)ld" \
57 KERNELVERSION
="$(KERNEL)" \
58 KERNEL_SOURCE
="$(LINUX_DIR)" \
65 define KernelPackage
/acx
/install
66 $(INSTALL_DIR
) $(1)/lib
/firmware
67 $(INSTALL_DATA
) $(DL_DIR
)/$(PKG_FW_NAME
) $(1)/lib
/firmware
/
70 $(eval
$(call KernelPackage
,acx
))