merge [15491] for 2.6.30
[openwrt.git] / package / libertas / Makefile
1 #
2 # Copyright (C) 2007 - 2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=kmod-libertas
12 PKG_RELEASE:=1
13
14 include $(INCLUDE_DIR)/package.mk
15
16 # XXX: current version needs 'get_unaligned_le16' helper introduced in 2.6.26
17 define KernelPackage/libertas
18 SUBMENU:=Other modules
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
21 FILES:= \
22 $(PKG_BUILD_DIR)/libertas.$(LINUX_KMOD_SUFFIX) \
23 $(PKG_BUILD_DIR)/usb8xxx.$(LINUX_KMOD_SUFFIX)
24 AUTOLOAD:=$(call AutoLoad,20,libertas usb8xxx)
25 endef
26
27 define Download/firmware
28 URL:=http://dev.laptop.org/pub/firmware/libertas/
29 FILE:=usb8388-5.110.22.p20.bin
30 #MD5SUM=37cc814d5a475fcf8f8fbe89a9c5d546
31 endef
32
33 define Build/Prepare
34 mkdir -p $(PKG_BUILD_DIR)
35 $(CP) ./src/* $(PKG_BUILD_DIR)/
36 $(Build/Patch)
37 endef
38
39 define Build/Compile
40 $(MAKE) -C "$(LINUX_DIR)" \
41 CROSS_COMPILE="$(TARGET_CROSS)" \
42 ARCH="$(LINUX_KARCH)" \
43 SUBDIRS="$(PKG_BUILD_DIR)" \
44 CONFIG_LIBERTAS=m \
45 CONFIG_LIBERTAS_USB=m \
46 EXTRA_CFLAGS="-I$(PKG_BUILD_DIR) -DCONFIG_LIBERTAS_DEBUG -I$(STAGING_DIR)/usr/include/mac80211" \
47 modules
48 endef
49
50 define KernelPackage/libertas/install
51 $(INSTALL_DIR) $(1)/lib/firmware
52 $(INSTALL_BIN) $(DL_DIR)/usb8388-5.110.22.p20.bin $(1)/lib/firmware/usb8388.bin
53 $(INSTALL_DATA) ./files/LICENSE $(1)/lib/firmware/
54 endef
55
56 $(eval $(call KernelPackage,libertas))
57 $(eval $(call Download,firmware))
This page took 0.055862 seconds and 5 git commands to generate.