From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/2] hostapd: select DRIVER_NONE if no other drivers enabled
Date: Wed, 27 Dec 2017 23:17:46 +0100 [thread overview]
Message-ID: <20171227231746.564d6c8a@windsurf.home> (raw)
In-Reply-To: <20171227192928.1129-1-alexander.i.mukhin@gmail.com>
Hello,
On Wed, 27 Dec 2017 22:29:28 +0300, Alexander Mukhin wrote:
> diff --git a/package/hostapd/hostapd.mk b/package/hostapd/hostapd.mk
> index 1700335c1a..e6c981dbe5 100644
> --- a/package/hostapd/hostapd.mk
> +++ b/package/hostapd/hostapd.mk
> @@ -17,18 +17,14 @@ HOSTAPD_LICENSE = BSD-3-Clause
> HOSTAPD_LICENSE_FILES = README
> HOSTAPD_CONFIG_SET =
>
> -HOSTAPD_CONFIG_ENABLE = \
> - CONFIG_HS20 \
> - CONFIG_IEEE80211AC \
> - CONFIG_IEEE80211N \
> - CONFIG_IEEE80211R \
> - CONFIG_INTERNAL_LIBTOMMATH \
> - CONFIG_INTERWORKING
> +HOSTAPD_CONFIG_ENABLE = CONFIG_INTERNAL_LIBTOMMATH
>
> HOSTAPD_CONFIG_DISABLE =
>
> HOSTAPD_USE_NL =
>
> +HOSTAPD_USE_WIRELESS_DRIVERS =
I think this would be better handled via a hidden Config.in option,
something like:
config BR2_PACKAGE_HOSTAPD_HAS_WIFI_DRIVERS
bool
config BR2_PACKAGE_HOSTAPD_<something>
bool "something"
select BR2_PACKAGE_HOSTAPD_HAS_WIFI_DRIVERS
> +# Enable CONFIG_DRIVER_NONE if no other drivers enabled
> +ifneq ($(BR2_PACKAGE_HOSTAPD_DRIVER_HOSTAP),y)
> +ifneq ($(BR2_PACKAGE_HOSTAPD_DRIVER_NL80211),y)
> +ifneq ($(BR2_PACKAGE_HOSTAPD_DRIVER_RTW),y)
> +ifneq ($(BR2_PACKAGE_HOSTAPD_DRIVER_WIRED),y)
Perhaps this could be simplified to:
ifeq ($(BR2_PACKAGE_HOSTAPD_HAS_WIFI_DRIVERS)$(BR2_PACKAGE_HOSTAPD_DRIVER_WIRED),)
> +HOSTAPD_CONFIG_ENABLE += CONFIG_DRIVER_NONE
> +endif
> +endif
> +endif
> +endif
> +
> +# Add options for wireless drivers
> +ifeq ($(HOSTAPD_USE_WIRELESS_DRIVERS),y)
This would use BR2_PACKAGE_HOSTAPD_HAS_WIFI_DRIVERS.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
next prev parent reply other threads:[~2017-12-27 22:17 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-23 19:06 [Buildroot] [PATCH 0/4] hostapd: new configuration options Alexander Mukhin
2017-12-23 19:06 ` [Buildroot] [PATCH 1/4] hostapd: select VLAN support Alexander Mukhin
2017-12-29 21:32 ` Thomas Petazzoni
2017-12-23 19:06 ` [Buildroot] [PATCH 2/4] hostapd: select driver support Alexander Mukhin
2017-12-24 20:49 ` Sergey Matyukevich
2017-12-27 19:12 ` Alexander Mukhin
2017-12-27 19:29 ` [Buildroot] [PATCH 1/2] hostapd: add support for wired driver Alexander Mukhin
2017-12-27 22:15 ` Thomas Petazzoni
2017-12-27 19:29 ` [Buildroot] [PATCH 2/2] hostapd: select DRIVER_NONE if no other drivers enabled Alexander Mukhin
2017-12-27 22:17 ` Thomas Petazzoni [this message]
2017-12-29 21:36 ` [Buildroot] [PATCH 2/4] hostapd: select driver support Thomas Petazzoni
2017-12-23 19:06 ` [Buildroot] [PATCH 3/4] hostapd: make ACS dependent on nl80211 Alexander Mukhin
2017-12-29 21:37 ` Thomas Petazzoni
2017-12-30 9:50 ` Alexander Mukhin
2017-12-30 10:18 ` Thomas Petazzoni
2017-12-30 12:09 ` Alexander Mukhin
2017-12-23 19:06 ` [Buildroot] [PATCH 4/4] hostapd: drop default netlink dependency Alexander Mukhin
2017-12-29 21:38 ` Thomas Petazzoni
2017-12-24 20:51 ` [Buildroot] [PATCH 0/4] hostapd: new configuration options Sergey Matyukevich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171227231746.564d6c8a@windsurf.home \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox