adding the possibility of local file cache
[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 include $(INCLUDE_DIR)/package.mk
16
17 define KernelPackage/mac80211
18 SUBMENU:=Wireless Drivers
19 TITLE:=Linux 802.11 Wireless Networking Stack
20 DEPENDS:=@LINUX_2_6_23 +kmod-crypto-arc4 +kmod-crypto-aes +wireless-tools
21 FILES:= \
22 $(PKG_BUILD_DIR)/net/mac80211/mac80211.$(LINUX_KMOD_SUFFIX) \
23 $(PKG_BUILD_DIR)/net/wireless/cfg80211.$(LINUX_KMOD_SUFFIX)
24 AUTOLOAD:=$(call AutoLoad,20,cfg80211 mac80211)
25 endef
26
27 define KernelPackage/mac80211/description
28 Linux 802.11 Wireless Networking Stack
29 endef
30
31 CONFOPTS:=MAC80211 CFG80211 NL80211 MAC80211_RC_DEFAULT_PID MAC80211_RC_PID
32
33 BUILDFLAGS:= \
34 $(foreach opt,$(CONFOPTS),-DCONFIG_$(opt)) \
35 $(if $(CONFIG_LEDS_TRIGGERS), -DCONFIG_MAC80211_LEDS -DCONFIG_LEDS_TRIGGERS) \
36 -D__CONFIG_MAC80211_RC_DEFAULT=pid
37
38 MAKE_OPTS:= \
39 CROSS_COMPILE="$(TARGET_CROSS)" \
40 ARCH="$(LINUX_KARCH)" \
41 EXTRA_CFLAGS="$(BUILDFLAGS)" \
42 $(foreach opt,$(CONFOPTS),CONFIG_$(opt)=m) \
43 CONFIG_NL80211=y \
44 CONFIG_MAC80211_RC_PID=y \
45 CONFIG_MAC80211_LEDS=$(CONFIG_LEDS_TRIGGERS) \
46 LINUXINCLUDE="-I$(PKG_BUILD_DIR)/include -I$(LINUX_DIR)/include -include linux/autoconf.h" \
47
48 define Build/Prepare
49 rm -rf $(PKG_BUILD_DIR)
50 mkdir -p $(PKG_BUILD_DIR)
51 $(CP) ./src/* $(PKG_BUILD_DIR)/
52 $(Build/Patch)
53 $(if $(QUILT),touch $(PKG_BUILD_DIR)/.quilt_used)
54 endef
55
56 define Build/Compile
57 $(MAKE) -C "$(LINUX_DIR)" $(MAKE_OPTS) SUBDIRS="$(PKG_BUILD_DIR)/net/wireless" modules
58 $(MAKE) -C "$(LINUX_DIR)" $(MAKE_OPTS) SUBDIRS="$(PKG_BUILD_DIR)/net/mac80211" modules
59 endef
60
61 ifeq ($(CONFIG_LINUX_2_6_23),y)
62 define Build/InstallDev
63 mkdir -p $(1)/usr/include/mac80211
64 $(CP) $(PKG_BUILD_DIR)/net/mac80211/*.h $(PKG_BUILD_DIR)/include/* $(1)/usr/include/mac80211/
65 endef
66
67 define KernelPackage/mac80211/install
68 $(INSTALL_DIR) $(1)/lib/wifi
69 $(INSTALL_DATA) ./files/lib/wifi/mac80211.sh $(1)/lib/wifi
70 endef
71 endif
72
73 $(eval $(call KernelPackage,mac80211))
This page took 0.041972 seconds and 5 git commands to generate.