diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-08-08 16:24:50 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-08-08 16:24:50 +0000 |
commit | 750197b3afa4b5ab636a8caf70b4cf34514d2cd0 (patch) | |
tree | f1ea8bc266148eca64a578ecb11f4d55bb575bc0 /package/network/services/hostapd/Makefile | |
parent | f53b96813ecf512f6e9b6a4f2467825adc356419 (diff) | |
download | upstream-750197b3afa4b5ab636a8caf70b4cf34514d2cd0.tar.gz upstream-750197b3afa4b5ab636a8caf70b4cf34514d2cd0.tar.bz2 upstream-750197b3afa4b5ab636a8caf70b4cf34514d2cd0.zip |
hostapd: add a build variant for wpa_supplicant with p2p (aka Wi-Fi Direct) support
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37739
Diffstat (limited to 'package/network/services/hostapd/Makefile')
-rw-r--r-- | package/network/services/hostapd/Makefile | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/package/network/services/hostapd/Makefile b/package/network/services/hostapd/Makefile index 6221bbb8b2..8fcc241c95 100644 --- a/package/network/services/hostapd/Makefile +++ b/package/network/services/hostapd/Makefile @@ -175,6 +175,17 @@ define Package/wpa-supplicant/config source "$(SOURCE)/Config.in" endef +define Package/wpa-supplicant-p2p + $(Package/wpa-supplicant) + TITLE:=WPA Supplicant (with Wi-Fi P2P support) + DEPENDS:=$(DRV_DEPENDS) + VARIANT:=supplicant-p2p +endef + +define Package/wpa-supplicant-p2p/Description + WPA Supplicant (with Wi-Fi P2P support) +endef + define Package/wpa-supplicant-mini $(Package/wpa-supplicant) TITLE:=WPA Supplicant (minimal version) @@ -189,7 +200,7 @@ endef define Package/wpa-cli SECTION:=net CATEGORY:=Network - DEPENDS:=@PACKAGE_wpa-supplicant||PACKAGE_wpad-mini||PACKAGE_wpad + DEPENDS:=@PACKAGE_wpa-supplicant||PACKAGE_wpa-supplicant-p2p||PACKAGE_wpad-mini||PACKAGE_wpad TITLE:=WPA Supplicant command line interface endef @@ -210,7 +221,9 @@ endif define Build/Configure $(Build/Configure/rebuild) - $(CP) ./files/hostapd-$(LOCAL_VARIANT).config $(PKG_BUILD_DIR)/hostapd/.config + $(if $(wildcard ./files/hostapd-$(LOCAL_VARIANT).config), \ + $(CP) ./files/hostapd-$(LOCAL_VARIANT).config $(PKG_BUILD_DIR)/hostapd/.config \ + ) $(CP) ./files/wpa_supplicant-$(LOCAL_VARIANT).config $(PKG_BUILD_DIR)/wpa_supplicant/.config endef @@ -323,6 +336,7 @@ define Package/wpa-supplicant/install $(INSTALL_BIN) $(PKG_BUILD_DIR)/wpa_supplicant/wpa_supplicant $(1)/usr/sbin/ endef Package/wpa-supplicant-mini/install = $(Package/wpa-supplicant/install) +Package/wpa-supplicant-p2p/install = $(Package/wpa-supplicant/install) ifneq ($(LOCAL_TYPE),hostapd) define Package/wpa-cli/install @@ -337,5 +351,6 @@ $(eval $(call BuildPackage,wpad)) $(eval $(call BuildPackage,wpad-mini)) $(eval $(call BuildPackage,wpa-supplicant)) $(eval $(call BuildPackage,wpa-supplicant-mini)) +$(eval $(call BuildPackage,wpa-supplicant-p2p)) $(eval $(call BuildPackage,wpa-cli)) $(eval $(call BuildPackage,hostapd-utils)) |