make ATM_DRIVERS default to n
[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 ifeq ($(DUMP),)
17 include $(LINUX_DIR)/.config
18 endif
19
20 define KernelPackage/mac80211
21 SUBMENU:=Wireless Drivers
22 TITLE:=Linux 802.11 Wireless Networking Stack
23 DEPENDS:=@LINUX_2_6
24 KCONFIG:=CONFIG_MAC80211
25 FILES:= \
26 $(PKG_BUILD_DIR)/mac80211/mac80211.$(LINUX_KMOD_SUFFIX) \
27 $(PKG_BUILD_DIR)/mac80211/rc80211_lowest.$(LINUX_KMOD_SUFFIX) \
28 $(PKG_BUILD_DIR)/mac80211/rc80211_simple.$(LINUX_KMOD_SUFFIX) \
29 $(PKG_BUILD_DIR)/wireless/cfg80211.$(LINUX_KMOD_SUFFIX)
30 AUTOLOAD:=$(call AutoLoad,20,cfg80211 mac80211 rc80211_simple)
31 endef
32
33 define KernelPackage/mac80211/description
34 This package contains the DeviceScape 80211 wireless stack.
35 endef
36
37 define Build/Prepare
38 mkdir -p $(PKG_BUILD_DIR)/mac80211
39 $(CP) ./src/mac80211/* $(PKG_BUILD_DIR)/mac80211/
40 mkdir -p $(PKG_BUILD_DIR)/wireless
41 $(CP) ./src/wireless/* $(PKG_BUILD_DIR)/wireless/
42 endef
43
44 ifneq ($(CONFIG_MAC80211),)
45
46 MAKE_OPTS:= \
47 CROSS_COMPILE="$(TARGET_CROSS)" \
48 ARCH="$(LINUX_KARCH)" \
49 EXTRA_CFLAGS="$(BUILDFLAGS) -DCONFIG_MAC80211_LEDS -DCONFIG_LEDS_TRIGGERS" \
50 CONFIG_MAC80211=m \
51 CONFIG_MAC80211_LEDS=$(CONFIG_LEDS_TRIGGERS) \
52
53 define Build/Compile/it
54 $(MAKE) -C "$(LINUX_DIR)" $(MAKE_OPTS) SUBDIRS="$(PKG_BUILD_DIR)/wireless" modules
55 $(MAKE) -C "$(LINUX_DIR)" $(MAKE_OPTS) SUBDIRS="$(PKG_BUILD_DIR)/mac80211" modules
56 endef
57
58 endif
59
60 define Build/Compile
61 $(call Build/Compile/it)
62 endef
63
64 define Build/InstallDev
65 mkdir -p $(STAGING_DIR)/usr/include/mac80211
66 $(CP) $(PKG_BUILD_DIR)/mac80211/{hostapd_ioctl,ieee80211_common}.h $(STAGING_DIR)/usr/include/mac80211/
67 endef
68
69 define Build/UninstallDev
70 rm -rf $(STAGING_DIR)/usr/include/mac80211
71 endef
72
73 $(eval $(call KernelPackage,mac80211))
This page took 0.048432 seconds and 5 git commands to generate.