2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 # $Id: Makefile 7440 2007-06-02 02:22:01Z nbd $
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
15 include $(INCLUDE_DIR
)/package.mk
17 include $(LINUX_DIR
)/.config
20 define KernelPackage
/mac80211
21 SUBMENU
:=Wireless Drivers
22 TITLE
:=Linux
802.11 Wireless Networking Stack
24 KCONFIG
:=CONFIG_MAC80211
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
)
33 define KernelPackage
/mac80211
/description
34 This package contains the DeviceScape
80211 wireless stack.
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
/
44 ifneq ($(CONFIG_MAC80211
),)
47 CROSS_COMPILE
="$(TARGET_CROSS)" \
48 ARCH
="$(LINUX_KARCH)" \
49 EXTRA_CFLAGS
="$(BUILDFLAGS) -DCONFIG_MAC80211_LEDS -DCONFIG_LEDS_TRIGGERS" \
51 CONFIG_MAC80211_LEDS
=$(CONFIG_LEDS_TRIGGERS
) \
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
61 $(call Build
/Compile
/it
)
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
/
69 define Build
/UninstallDev
70 rm -rf
$(STAGING_DIR
)/usr
/include/mac80211
73 $(eval
$(call KernelPackage
,mac80211
))