summaryrefslogtreecommitdiff
path: root/package/libertas/src/:0
diff options
context:
space:
mode:
Diffstat (limited to 'package/libertas/src/:0')
-rw-r--r--package/libertas/src/:062
1 files changed, 62 insertions, 0 deletions
diff --git a/package/libertas/src/:0 b/package/libertas/src/:0
new file mode 100644
index 0000000..ff68859
--- /dev/null
+++ b/package/libertas/src/:0
@@ -0,0 +1,62 @@
+#
+# Copyright (C) 2007 OpenWrt.org
+#
+# 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
+ DEPENDS:=@TARGET_olpc +kmod-mac80211
+ TITLE:=Marvell 88W8015 Wireless Driver
+ FILES:= \
+ $(PKG_BUILD_DIR)/libertas.$(LINUX_KMOD_SUFFIX) \
+ $(PKG_BUILD_DIR)/usb8xxx.$(LINUX_KMOD_SUFFIX)
+# AUTOLOAD:=$(call AutoLoad,20,switch-core switch-robo switch-adm)
+endef
+
+define Download/firmware
+ URL:=http://dev.laptop.org/pub/firmware/libertas
+ FILE:=usb8388-5.220.11.p5.bin
+ MD5SUM=123
+endef
+
+define Download/firmware_license
+ URL:=http://dev.laptop.org/pub/firmware/libertas
+ FILE:=LICENSE
+ MD5SUM=123
+endef
+
+define Build/Prepare
+ mkdir -p $(PKG_BUILD_DIR)
+ $(CP) ./src/* $(PKG_BUILD_DIR)/
+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 \
+ EXTRA_CFLAGS="-I$(PKG_BUILD_DIR) -include compat.h -I$(STAGING_DIR)/usr/include/mac80211" \
+ modules
+endef
+
+define KernelPackage/libertas/install
+ $(INSTALL_DIR) $(1)/lib/firmware
+ $(INSTALL_BIN) $(DL_DIR)/usb8388-5.220.11.p5.bin $(1)/lib/firmware/usb8388.bin
+ $(INSTALL_BIN) $(DL_DIR)/LICENSE $(1)/lib/firmware/
+endef
+
+$(eval $(call KernelPackage,libertas))
+$(eval $(call Download,firmware))