New: mac80211 stack from the wireless-dev tree
[openwrt.git] / package / mac80211 / Makefile
1 #
2 # Copyright (C) 2007 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 7440 2007-06-02 02:22:01Z nbd $
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=mac80211
13 PKG_RELEASE:=1
14
15 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)
16
17 include $(INCLUDE_DIR)/package.mk
18
19 define KernelPackage/mac80211
20 SUBMENU:=Wireless Drivers
21 TITLE:=DeviceScape 802.11 Wireless Networking Stack
22 DEPENDS:=@LINUX_2_6 +kmod-ieee80211
23 DESCRIPTION:=\
24 This package contains the DeviceScape 80211 wireless stack.
25 VERSION:=$(PKG_RELEASE)+$(LINUX_VERSION)-$(BOARD)-$(LINUX_RELEASE)
26 FILES:= \
27 $(PKG_BUILD_DIR)/mac80211/mac80211.$(LINUX_KMOD_SUFFIX) \
28 $(PKG_BUILD_DIR)/mac80211/rc80211_lowest.$(LINUX_KMOD_SUFFIX) \
29 $(PKG_BUILD_DIR)/mac80211/rc80211_simple.$(LINUX_KMOD_SUFFIX) \
30 $(PKG_BUILD_DIR)/wireless/cfg80211.$(LINUX_KMOD_SUFFIX)
31 AUTOLOAD:=$(call AutoLoad,20,cfg80211 mac80211 rc80211_lowest rc80211_simple)
32 endef
33
34 define Build/Prepare
35 mkdir -p $(PKG_BUILD_DIR)/mac80211
36 $(CP) ./src/mac80211/* $(PKG_BUILD_DIR)/mac80211/
37 mkdir -p $(PKG_BUILD_DIR)/wireless
38 $(CP) ./src/wireless/* $(PKG_BUILD_DIR)/wireless/
39 endef
40
41 MAKE_OPTS:=-C "$(LINUX_DIR)" \
42 CROSS_COMPILE="$(TARGET_CROSS)" \
43 ARCH="$(LINUX_KARCH)" \
44 EXTRA_CFLAGS="$(BUILDFLAGS)"
45
46 define Build/Compile
47 $(MAKE) $(MAKE_OPTS) SUBDIRS="$(PKG_BUILD_DIR)/wireless" modules
48 $(MAKE) $(MAKE_OPTS) SUBDIRS="$(PKG_BUILD_DIR)/mac80211" modules
49 endef
50
51 #define Build/InstallDev
52 # mkdir -p $(STAGING_DIR)/usr/include/madwifi
53 # $(CP) $(PKG_BUILD_DIR)/include $(STAGING_DIR)/usr/include/madwifi/
54 # mkdir -p $(STAGING_DIR)/usr/include/madwifi/net80211
55 # $(CP) $(PKG_BUILD_DIR)/net80211/*.h $(STAGING_DIR)/usr/include/madwifi/net80211/
56 #endef
57
58 #define Build/UninstallDev
59 # rm -rf $(STAGING_DIR)/usr/include/madwifi
60 #endef
61
62 $(eval $(call KernelPackage,mac80211))
This page took 0.045365 seconds and 5 git commands to generate.