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 PKG_BUILD_DIR
:=$(KERNEL_BUILD_DIR
)/$(PKG_NAME
)
17 include $(INCLUDE_DIR
)/package.mk
19 include $(LINUX_DIR
)/.config
22 define KernelPackage
/mac80211
23 SUBMENU
:=Wireless Drivers
24 TITLE
:=Linux
802.11 Wireless Networking Stack
26 KCONFIG
:=CONFIG_MAC80211
28 This package contains the DeviceScape
80211 wireless stack.
29 VERSION
:=$(PKG_RELEASE
)+$(LINUX_VERSION
)-$(BOARD
)-$(LINUX_RELEASE
)
31 $(PKG_BUILD_DIR
)/mac80211
/mac80211.
$(LINUX_KMOD_SUFFIX
) \
32 $(PKG_BUILD_DIR
)/mac80211
/rc80211_lowest.
$(LINUX_KMOD_SUFFIX
) \
33 $(PKG_BUILD_DIR
)/mac80211
/rc80211_simple.
$(LINUX_KMOD_SUFFIX
) \
34 $(PKG_BUILD_DIR
)/wireless
/cfg80211.
$(LINUX_KMOD_SUFFIX
)
35 AUTOLOAD
:=$(call AutoLoad
,20,cfg80211 mac80211 rc80211_simple
)
39 mkdir
-p
$(PKG_BUILD_DIR
)/mac80211
40 $(CP
) .
/src
/mac80211
/* $(PKG_BUILD_DIR
)/mac80211
/
41 mkdir
-p
$(PKG_BUILD_DIR
)/wireless
42 $(CP
) .
/src
/wireless
/* $(PKG_BUILD_DIR
)/wireless
/
45 ifneq ($(CONFIG_MAC80211
),)
48 CROSS_COMPILE
="$(TARGET_CROSS)" \
49 ARCH
="$(LINUX_KARCH)" \
50 EXTRA_CFLAGS
="$(BUILDFLAGS) -DCONFIG_MAC80211_LEDS -DCONFIG_LEDS_TRIGGERS" \
52 CONFIG_MAC80211_LEDS
=$(CONFIG_LEDS_TRIGGERS
) \
54 define Build
/Compile
/it
55 $(MAKE
) -C
"$(LINUX_DIR)" $(MAKE_OPTS
) SUBDIRS
="$(PKG_BUILD_DIR)/wireless" modules
56 $(MAKE
) -C
"$(LINUX_DIR)" $(MAKE_OPTS
) SUBDIRS
="$(PKG_BUILD_DIR)/mac80211" modules
62 $(call Build
/Compile
/it
)
65 define Build
/InstallDev
66 mkdir
-p
$(STAGING_DIR
)/usr
/include/mac80211
67 $(CP
) $(PKG_BUILD_DIR
)/mac80211
/{hostapd_ioctl
,ieee80211_common
}.h
$(STAGING_DIR
)/usr
/include/mac80211
/
70 define Build
/UninstallDev
71 rm -rf
$(STAGING_DIR
)/usr
/include/mac80211
74 $(eval
$(call KernelPackage
,mac80211
))