disable all kernel config options that are set to =m
[openwrt.git] / package / crda / Makefile
1 #
2 # Copyright (C) 2009 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$
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=crda
13 PKG_RELEASE:=1
14 PKG_VERSION:=1.0.1
15 PKG_SOURCE_URL:=http://wireless.kernel.org/download/crda
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17 PKG_MD5SUM:=03554b71eef2626795befa17eb1d8b9e
18 PKG_BUILD_DEPENDS:=mac80211 libnl
19
20 PKG_REGULATORY_NAME:=regulatory
21 PKG_REGULATORY_VERSION:=2009.01.15
22 PKG_REGULATORY_SOURCE_URL:=http://wireless.kernel.org/download/wireless-regdb/regulatory.bins
23 PKG_REGULATORY_SOURCE:=$(PKG_REGULATORY_VERSION)-$(PKG_REGULATORY_NAME).bin
24 PKG_REGULATORY_MD5SUM:=a0db99e5385c876b6da7e2869546f6e2
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/crda
29 SECTION:=net
30 CATEGORY:=Network
31 TITLE:=Central Regulatory Domain Agent (CRDA)
32 DEPENDS:=@LINUX_2_6 +hotplug2 +kmod-mac80211
33 URL:=http://wireless.kernel.org/en/developers/Regulatory/CRDA
34 endef
35
36 define Download/wireless-regdb
37 FILE:=$(PKG_REGULATORY_SOURCE)
38 URL:=$(PKG_REGULATORY_SOURCE_URL)
39 VERSION:=$(PKG_REGULATORY_VERSION)
40 MD5SUM:=$(PKG_REGULATORY_MD5SUM)
41 endef
42 $(eval $(call Download,wireless-regdb))
43
44 define Package/crda/description
45 This is the Central Regulatory Domain Agent for Linux. It serves one
46 purpose: tell Linux kernel what to enforce. In essence it is a udev
47 helper for communication between the kernel and userspace. You only
48 need to run this manually for debugging purposes. For manual changing
49 of regulatory domains use iw (iw reg set) or wpa_supplicant (feature
50 yet to be added).
51 endef
52
53 define Build/Compile
54 $(MAKE_VARS) \
55 $(MAKE) -C $(PKG_BUILD_DIR)/$(MAKE_PATH) \
56 $(MAKE_FLAGS) \
57 NLLIBS="$(STAGING_DIR)/usr/lib/libnl.a -lm" \
58 REG_BIN="$(DL_DIR)/$(PKG_REGULATORY_SOURCE)" \
59 crda
60 endef
61
62 define Package/crda/install
63 $(INSTALL_DIR) $(1)/sbin
64 $(INSTALL_DIR) $(1)/etc/hotplug.d
65 $(INSTALL_DIR) $(1)/etc/hotplug.d/platform
66 $(INSTALL_DIR) $(1)/usr/lib/crda
67 $(INSTALL_BIN) $(PKG_BUILD_DIR)/crda $(1)/sbin/
68 $(INSTALL_DATA) ./files/hotplug.rule $(1)/etc/hotplug.d/platform/10-regulatory
69 $(INSTALL_DATA) $(DL_DIR)/$(PKG_REGULATORY_SOURCE) $(1)/usr/lib/crda/regulatory.bin
70 endef
71
72 $(eval $(call BuildPackage,crda))
73
This page took 0.040202 seconds and 5 git commands to generate.