aboutsummaryrefslogtreecommitdiffstats
path: root/package/d80211/Makefile
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-12-30 18:47:07 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-12-30 18:47:07 +0000
commitc8fea8d38011ede78e3f86d774886e32272973bb (patch)
treefa3a1e6de2794a8fd5c5cc443bb87311a3a006d8 /package/d80211/Makefile
parentf9d5bdd6f35c1d796123f085077aba94bab70fa2 (diff)
downloadupstream-c8fea8d38011ede78e3f86d774886e32272973bb.tar.gz
upstream-c8fea8d38011ede78e3f86d774886e32272973bb.tar.bz2
upstream-c8fea8d38011ede78e3f86d774886e32272973bb.zip
add d80211 from a recent wireless-dev checkout
SVN-Revision: 5939
Diffstat (limited to 'package/d80211/Makefile')
-rw-r--r--package/d80211/Makefile52
1 files changed, 52 insertions, 0 deletions
diff --git a/package/d80211/Makefile b/package/d80211/Makefile
new file mode 100644
index 0000000000..2bc9d41029
--- /dev/null
+++ b/package/d80211/Makefile
@@ -0,0 +1,52 @@
+#
+# Copyright (C) 2006 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+# $Id:$
+
+include $(TOPDIR)/rules.mk
+include $(INCLUDE_DIR)/kernel.mk
+
+PKG_NAME:=kmod-d80211
+PKG_VERSION:=20061230
+
+PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)
+
+include $(INCLUDE_DIR)/package.mk
+
+define KernelPackage/d80211
+ SUBMENU:=Wireless Drivers
+ DEPENDS:=@LINUX_2_6 kmod-crypto
+ TITLE:=DeviceScape 802.11 stack
+ DESCRIPTION:=DeviceScape 802.11 stack
+ VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(LINUX_RELEASE)
+ FILES:=$(PKG_BUILD_DIR)/*.ko
+ AUTOLOAD:=$(call AutoLoad,20,d80211 rc80211_simple)
+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)" \
+ EXTRA_CFLAGS="-I$(PKG_BUILD_DIR)/include" \
+ modules
+endef
+
+define Build/InstallDev
+ mkdir -p $(STAGING_DIR)/usr/include/net
+ $(CP) ./src/include/net/* $(STAGING_DIR)/usr/include/net/
+endef
+
+define Build/UninstallDev
+ rm -f $(STAGING_DIR)/usr/include/net/d80211*
+endef
+
+$(eval $(call KernelPackage,d80211))