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 define KernelPackage
/mac80211
20 SUBMENU
:=Wireless Drivers
21 TITLE
:=DeviceScape
802.11 Wireless Networking Stack
22 DEPENDS
:=@LINUX_2_6
+kmod-ieee80211
24 This package contains the DeviceScape
80211 wireless stack.
25 VERSION
:=$(PKG_RELEASE
)+$(LINUX_VERSION
)-$(BOARD
)-$(LINUX_RELEASE
)
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
)
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
/
41 MAKE_OPTS
:=-C
"$(LINUX_DIR)" \
42 CROSS_COMPILE
="$(TARGET_CROSS)" \
43 ARCH
="$(LINUX_KARCH)" \
44 EXTRA_CFLAGS
="$(BUILDFLAGS)"
47 $(MAKE
) $(MAKE_OPTS
) SUBDIRS
="$(PKG_BUILD_DIR)/wireless" modules
48 $(MAKE
) $(MAKE_OPTS
) SUBDIRS
="$(PKG_BUILD_DIR)/mac80211" modules
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/
58 #define Build/UninstallDev
59 # rm -rf $(STAGING_DIR)/usr/include/madwifi
62 $(eval
$(call KernelPackage
,mac80211
))