source: trunk/package/libertas/Makefile @ 13705

Last change on this file since 13705 was 13705, checked in by nico, 7 years ago

add dependency on 2.6.26+, current version needs 'get_unaligned_le16' helper introduced in 2.6.26

File size: 1.6 KB
Line 
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# $Id: Makefile 8694 2007-09-08 19:55:42Z nbd $
8
9include $(TOPDIR)/rules.mk
10include $(INCLUDE_DIR)/kernel.mk
11
12PKG_NAME:=kmod-libertas
13PKG_RELEASE:=1
14
15include $(INCLUDE_DIR)/package.mk
16
17# XXX: current version needs 'get_unaligned_le16' helper introduced in 2.6.26
18define KernelPackage/libertas
19  SUBMENU:=Other modules
20  DEPENDS:=+kmod-ieee80211 @LINUX_2_6_26 @LINUX_2_6_27 @LINUX_2_6_28
21  TITLE:=Marvell 88W8015 Wireless Driver
22  FILES:= \
23        $(PKG_BUILD_DIR)/libertas.$(LINUX_KMOD_SUFFIX)  \
24        $(PKG_BUILD_DIR)/usb8xxx.$(LINUX_KMOD_SUFFIX) 
25  AUTOLOAD:=$(call AutoLoad,20,libertas usb8xxx)
26endef
27
28define Download/firmware
29  URL:=http://dev.laptop.org/pub/firmware/libertas/
30  FILE:=usb8388-5.110.22.p20.bin
31  #MD5SUM=37cc814d5a475fcf8f8fbe89a9c5d546
32endef
33
34define Build/Prepare
35        mkdir -p $(PKG_BUILD_DIR)
36        $(CP) ./src/* $(PKG_BUILD_DIR)/
37        $(Build/Patch)
38        $(if $(QUILT),touch $(PKG_BUILD_DIR)/.quilt_used)
39endef
40
41define Build/Compile
42        $(MAKE) -C "$(LINUX_DIR)" \
43                CROSS_COMPILE="$(TARGET_CROSS)" \
44                ARCH="$(LINUX_KARCH)" \
45                SUBDIRS="$(PKG_BUILD_DIR)" \
46                CONFIG_LIBERTAS=m \
47                CONFIG_LIBERTAS_USB=m \
48                EXTRA_CFLAGS="-I$(PKG_BUILD_DIR) -DCONFIG_LIBERTAS_DEBUG -I$(STAGING_DIR)/usr/include/mac80211" \
49                modules
50endef
51
52define KernelPackage/libertas/install
53        $(INSTALL_DIR) $(1)/lib/firmware
54        $(INSTALL_BIN) $(DL_DIR)/usb8388-5.110.22.p20.bin $(1)/lib/firmware/usb8388.bin
55        $(INSTALL_DATA) ./files/LICENSE $(1)/lib/firmware/
56endef
57
58$(eval $(call KernelPackage,libertas))
59$(eval $(call Download,firmware))
Note: See TracBrowser for help on using the repository browser.