2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 # $Id: Makefile 8694 2007-09-08 19:55:42Z nbd $
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
12 PKG_NAME
:=kmod-libertas
15 include $(INCLUDE_DIR
)/package.mk
17 define KernelPackage
/libertas
18 SUBMENU
:=Other modules
19 DEPENDS
:=@TARGET_olpc
+kmod-ieee80211
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
,20,libertas usb8xxx
)
27 define Download
/firmware
28 URL
:=http
://dev.laptop.org
/pub
/firmware
/libertas
29 FILE
:=usb8388-5.220
.11.p5.bin
30 MD5SUM
=37cc814d5a475fcf8f8fbe89a9c5d546
34 mkdir
-p
$(PKG_BUILD_DIR
)
35 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
39 $(MAKE
) -C
"$(LINUX_DIR)" \
40 CROSS_COMPILE
="$(TARGET_CROSS)" \
41 ARCH
="$(LINUX_KARCH)" \
42 SUBDIRS
="$(PKG_BUILD_DIR)" \
44 CONFIG_LIBERTAS_USB
=m \
45 EXTRA_CFLAGS
="-I$(PKG_BUILD_DIR) -include compat.h -I$(STAGING_DIR)/usr/include/mac80211" \
49 define KernelPackage
/libertas
/install
50 $(INSTALL_DIR
) $(1)/lib
/firmware
51 $(INSTALL_BIN
) $(DL_DIR
)/usb8388-5.220
.11.p5.bin
$(1)/lib
/firmware
/usb8388.bin
52 $(INSTALL_DATA
) .
/files
/LICENSE
$(1)/lib
/firmware
/
55 $(eval
$(call KernelPackage
,libertas
))
56 $(eval
$(call Download
,firmware
))