2 # Copyright (C) 2007 - 2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
9 include $(INCLUDE_DIR
)/kernel.mk
11 PKG_NAME
:=kmod-libertas
14 include $(INCLUDE_DIR
)/package.mk
16 # XXX: current version needs 'get_unaligned_le16' helper introduced in 2.6.26
17 define KernelPackage
/libertas
18 SUBMENU
:=Wireless Drivers
19 DEPENDS
:=+kmod-ieee80211 @LINUX_2_6 @
!LINUX_2_6_21||
!LINUX_2_6_23||
!LINUX_2_6_24||
!LINUX_2_6_25
20 TITLE
:=Marvell
88W8015 Wireless Driver
22 $(PKG_BUILD_DIR
)/libertas.
$(LINUX_KMOD_SUFFIX
) \
23 $(PKG_BUILD_DIR
)/usb8xxx.
$(LINUX_KMOD_SUFFIX
)
24 AUTOLOAD
:=$(call AutoLoad
,30,libertas usb8xxx
)
27 FW_NAME
:=usb8388-5.110
.22.p23.bin
29 define Download
/firmware
30 URL
:=http
://dev.laptop.org
/pub
/firmware
/libertas
32 MD5SUM
=5e38f55719df3d0c58dd3bd02575a09c
36 mkdir
-p
$(PKG_BUILD_DIR
)
37 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
42 $(MAKE
) -C
"$(LINUX_DIR)" \
43 CROSS_COMPILE
="$(TARGET_CROSS)" \
44 ARCH
="$(LINUX_KARCH)" \
45 SUBDIRS
="$(PKG_BUILD_DIR)" \
47 CONFIG_LIBERTAS_USB
=m \
48 EXTRA_CFLAGS
="-I$(PKG_BUILD_DIR) -DCONFIG_LIBERTAS_DEBUG -I$(STAGING_DIR)/usr/include/mac80211" \
52 define KernelPackage
/libertas
/install
53 $(INSTALL_DIR
) $(1)/lib
/firmware
54 $(INSTALL_BIN
) $(DL_DIR
)/$(FW_NAME
) $(1)/lib
/firmware
/usb8388.bin
55 $(INSTALL_DATA
) .
/files
/LICENSE
$(1)/lib
/firmware
/usb8388.LICENSE
58 $(eval
$(call KernelPackage
,libertas
))
59 $(eval
$(call Download
,firmware
))