package/wireless_tools: make 'iwconfig' tool optional

Allow disabling iwconfig for targets that only want the library.

Signed-off-by: Neal J. Buchmeyer <neal.buchmeyer@collins.com>
Signed-off-by: Brandon Maier <brandon.maier@collins.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Neal J. Buchmeyer 2023-10-24 18:48:34 +00:00 committed by Thomas Petazzoni
parent a001ca657b
commit dec855e19c
2 changed files with 11 additions and 0 deletions

View File

@ -1,5 +1,7 @@
config BR2_PACKAGE_WIRELESS_TOOLS
bool "wireless tools"
select BR2_PACKAGE_WIRELESS_TOOLS_IWCONFIG if \
!BR2_PACKAGE_WIRELESS_TOOLS_LIB
help
A collection of tools to configure wireless lan cards.
@ -7,6 +9,13 @@ config BR2_PACKAGE_WIRELESS_TOOLS
if BR2_PACKAGE_WIRELESS_TOOLS
config BR2_PACKAGE_WIRELESS_TOOLS_IWCONFIG
bool "Install tools"
default y
help
Build and install the iwconfig, iwlist, iwspy, iwpriv, and
iwgetid tools.
config BR2_PACKAGE_WIRELESS_TOOLS_LIB
bool "Install shared library"
depends on !BR2_STATIC_LIBS

View File

@ -14,8 +14,10 @@ WIRELESS_TOOLS_CPE_ID_VERSION = $(WIRELESS_TOOLS_VERSION_MAJOR)
WIRELESS_TOOLS_CPE_ID_UPDATE = pre9
WIRELESS_TOOLS_INSTALL_STAGING = YES
ifeq ($(BR2_PACKAGE_WIRELESS_TOOLS_IWCONFIG),y)
WIRELESS_TOOLS_BUILD_TARGETS = iwmulticall
WIRELESS_TOOLS_INSTALL_TARGETS = install-iwmulticall
endif
ifeq ($(BR2_PACKAGE_WIRELESS_TOOLS_LIB),y)
WIRELESS_TOOLS_BUILD_TARGETS += libiw.so.$(WIRELESS_TOOLS_VERSION_MAJOR)