fix typo
[openwrt.git] / package / libertas / src / :0
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id: Makefile 8694 2007-09-08 19:55:42Z nbd $
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=kmod-libertas
13 PKG_RELEASE:=1
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define KernelPackage/libertas
18 SUBMENU:=Other modules
19 DEPENDS:=@TARGET_olpc +kmod-mac80211
20 TITLE:=Marvell 88W8015 Wireless Driver
21 FILES:= \
22 $(PKG_BUILD_DIR)/libertas.$(LINUX_KMOD_SUFFIX) \
23 $(PKG_BUILD_DIR)/usb8xxx.$(LINUX_KMOD_SUFFIX)
24 # AUTOLOAD:=$(call AutoLoad,20,switch-core switch-robo switch-adm)
25 endef
26
27 define Download/firmware
28 URL:=http://dev.laptop.org/pub/firmware/libertas
29 FILE:=usb8388-5.220.11.p5.bin
30 MD5SUM=123
31 endef
32
33 define Download/firmware_license
34 URL:=http://dev.laptop.org/pub/firmware/libertas
35 FILE:=LICENSE
36 MD5SUM=123
37 endef
38
39 define Build/Prepare
40 mkdir -p $(PKG_BUILD_DIR)
41 $(CP) ./src/* $(PKG_BUILD_DIR)/
42 endef
43
44 define Build/Compile
45 $(MAKE) -C "$(LINUX_DIR)" \
46 CROSS_COMPILE="$(TARGET_CROSS)" \
47 ARCH="$(LINUX_KARCH)" \
48 SUBDIRS="$(PKG_BUILD_DIR)" \
49 CONFIG_LIBERTAS=m \
50 CONFIG_LIBERTAS_USB=m \
51 EXTRA_CFLAGS="-I$(PKG_BUILD_DIR) -include compat.h -I$(STAGING_DIR)/usr/include/mac80211" \
52 modules
53 endef
54
55 define KernelPackage/libertas/install
56 $(INSTALL_DIR) $(1)/lib/firmware
57 $(INSTALL_BIN) $(DL_DIR)/usb8388-5.220.11.p5.bin $(1)/lib/firmware/usb8388.bin
58 $(INSTALL_BIN) $(DL_DIR)/LICENSE $(1)/lib/firmware/
59 endef
60
61 $(eval $(call KernelPackage,libertas))
62 $(eval $(call Download,firmware))
This page took 0.03828 seconds and 5 git commands to generate.