diff options
author | ryd <ryd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-12-15 19:59:21 +0000 |
---|---|---|
committer | ryd <ryd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-12-15 19:59:21 +0000 |
commit | 7a4bdab85080df3e4a39ed3cf6d7e5ee325a26d2 (patch) | |
tree | a49d4db44f0bf8b2497d1450ef5507605fde6c7a /package/libertas/Makefile | |
parent | c7c0768dc837f9f8cc0eb7b876ba8255c4a9b55d (diff) |
* adding network config for olpc
* adding libertas
* config issue
* quiet mode for bootloader
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9768 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/libertas/Makefile')
-rw-r--r-- | package/libertas/Makefile | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/package/libertas/Makefile b/package/libertas/Makefile new file mode 100644 index 000000000..bf8cbbc69 --- /dev/null +++ b/package/libertas/Makefile @@ -0,0 +1,56 @@ +# +# 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-ieee80211 + 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 + URL:=http://dev.laptop.org/pub/firmware/libertas + FILE:=usb8388-5.220.11.p5.bin + MD5SUM=37cc814d5a475fcf8f8fbe89a9c5d546 +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_DATA) ./files/LICENSE $(1)/lib/firmware/ +endef + +$(eval $(call KernelPackage,libertas)) +$(eval $(call Download,firmware)) |