source: trunk/package/mac80211/Makefile @ 9906

Last change on this file since 9906 was 9906, checked in by nbd, 9 years ago

remove uninstalldev templates (no longer necessary)

File size: 2.1 KB
Line 
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
9include $(TOPDIR)/rules.mk
10include $(INCLUDE_DIR)/kernel.mk
11
12PKG_NAME:=mac80211
13PKG_RELEASE:=1
14
15include $(INCLUDE_DIR)/package.mk
16
17define 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)
25endef
26
27define KernelPackage/mac80211/description
28Linux 802.11 Wireless Networking Stack
29endef
30
31CONFOPTS:=MAC80211 CFG80211 NL80211
32
33BUILDFLAGS:= \
34        $(foreach opt,$(CONFOPTS),-DCONFIG_$(opt) -DCONFIG_MAC80211_RCSIMPLE=1) \
35        $(if $(CONFIG_LEDS_TRIGGERS), -DCONFIG_MAC80211_LEDS -DCONFIG_LEDS_TRIGGERS)
36
37MAKE_OPTS:= \
38        CROSS_COMPILE="$(TARGET_CROSS)" \
39        ARCH="$(LINUX_KARCH)" \
40        EXTRA_CFLAGS="$(BUILDFLAGS)" \
41        $(foreach opt,$(CONFOPTS),CONFIG_$(opt)=m) \
42        CONFIG_NL80211=y \
43        CONFIG_MAC80211_RCSIMPLE=y \
44        CONFIG_MAC80211_LEDS=$(CONFIG_LEDS_TRIGGERS) \
45        LINUXINCLUDE="-I$(PKG_BUILD_DIR)/include -I$(LINUX_DIR)/include -include linux/autoconf.h" \
46
47define Build/Prepare
48        rm -rf $(PKG_BUILD_DIR)
49        mkdir -p $(PKG_BUILD_DIR)
50        $(CP) ./src/* $(PKG_BUILD_DIR)/
51        $(Build/Patch)
52        $(if $(QUILT),touch $(PKG_BUILD_DIR)/.quilt_used)
53endef
54
55define Build/Compile
56        $(MAKE) -C "$(LINUX_DIR)" $(MAKE_OPTS) SUBDIRS="$(PKG_BUILD_DIR)/net/wireless" modules
57        $(MAKE) -C "$(LINUX_DIR)" $(MAKE_OPTS) SUBDIRS="$(PKG_BUILD_DIR)/net/mac80211" modules
58endef
59
60ifeq ($(CONFIG_LINUX_2_6_23),y)
61  define Build/InstallDev
62        mkdir -p $(1)/usr/include/mac80211
63        $(CP) $(PKG_BUILD_DIR)/net/mac80211/*.h $(PKG_BUILD_DIR)/include/* $(1)/usr/include/mac80211/
64  endef
65
66  define KernelPackage/mac80211/install
67        $(INSTALL_DIR) $(1)/lib/wifi
68        $(INSTALL_DATA) ./files/lib/wifi/mac80211.sh $(1)/lib/wifi
69  endef
70endif
71
72$(eval $(call KernelPackage,mac80211))
Note: See TracBrowser for help on using the repository browser.