2007-12-15 21:59:21 +02:00
|
|
|
#
|
2008-01-24 05:03:04 +02:00
|
|
|
# Copyright (C) 2007 - 2008 OpenWrt.org
|
2007-12-15 21:59:21 +02:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id: Makefile 8694 2007-09-08 19:55:42Z nbd $
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
|
|
|
|
PKG_NAME:=kmod-libertas
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define KernelPackage/libertas
|
|
|
|
SUBMENU:=Other modules
|
2008-11-30 18:53:16 +02:00
|
|
|
DEPENDS:=+kmod-ieee80211
|
2007-12-15 21:59:21 +02:00
|
|
|
TITLE:=Marvell 88W8015 Wireless Driver
|
|
|
|
FILES:= \
|
|
|
|
$(PKG_BUILD_DIR)/libertas.$(LINUX_KMOD_SUFFIX) \
|
|
|
|
$(PKG_BUILD_DIR)/usb8xxx.$(LINUX_KMOD_SUFFIX)
|
|
|
|
AUTOLOAD:=$(call AutoLoad,20,libertas usb8xxx)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Download/firmware
|
2008-11-30 18:53:16 +02:00
|
|
|
URL:=http://dev.laptop.org/pub/firmware/libertas/
|
|
|
|
FILE:=usb8388-5.110.22.p20.bin
|
|
|
|
#MD5SUM=37cc814d5a475fcf8f8fbe89a9c5d546
|
2007-12-15 21:59:21 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Prepare
|
|
|
|
mkdir -p $(PKG_BUILD_DIR)
|
|
|
|
$(CP) ./src/* $(PKG_BUILD_DIR)/
|
2008-01-24 05:03:04 +02:00
|
|
|
$(Build/Patch)
|
|
|
|
$(if $(QUILT),touch $(PKG_BUILD_DIR)/.quilt_used)
|
2007-12-15 21:59:21 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C "$(LINUX_DIR)" \
|
|
|
|
CROSS_COMPILE="$(TARGET_CROSS)" \
|
|
|
|
ARCH="$(LINUX_KARCH)" \
|
|
|
|
SUBDIRS="$(PKG_BUILD_DIR)" \
|
|
|
|
CONFIG_LIBERTAS=m \
|
|
|
|
CONFIG_LIBERTAS_USB=m \
|
2008-11-30 18:53:16 +02:00
|
|
|
EXTRA_CFLAGS="-I$(PKG_BUILD_DIR) -DCONFIG_LIBERTAS_DEBUG -I$(STAGING_DIR)/usr/include/mac80211" \
|
2007-12-15 21:59:21 +02:00
|
|
|
modules
|
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/libertas/install
|
|
|
|
$(INSTALL_DIR) $(1)/lib/firmware
|
2008-11-30 18:53:16 +02:00
|
|
|
$(INSTALL_BIN) $(DL_DIR)/usb8388-5.110.22.p20.bin $(1)/lib/firmware/usb8388.bin
|
2007-12-15 21:59:21 +02:00
|
|
|
$(INSTALL_DATA) ./files/LICENSE $(1)/lib/firmware/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call KernelPackage,libertas))
|
|
|
|
$(eval $(call Download,firmware))
|