mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-27 15:33:28 +08:00
package/wireless_tools: add option to build ifrename
The ifrename tool is separate from iwconfig and is not being built. The upstream does not have an install target for ifrename either, so we must manually install it. 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:
parent
dec855e19c
commit
d58f2677e5
@ -1,6 +1,7 @@
|
||||
config BR2_PACKAGE_WIRELESS_TOOLS
|
||||
bool "wireless tools"
|
||||
select BR2_PACKAGE_WIRELESS_TOOLS_IWCONFIG if \
|
||||
!BR2_PACKAGE_WIRELESS_TOOLS_IFRENAME && \
|
||||
!BR2_PACKAGE_WIRELESS_TOOLS_LIB
|
||||
help
|
||||
A collection of tools to configure wireless lan cards.
|
||||
@ -16,6 +17,11 @@ config BR2_PACKAGE_WIRELESS_TOOLS_IWCONFIG
|
||||
Build and install the iwconfig, iwlist, iwspy, iwpriv, and
|
||||
iwgetid tools.
|
||||
|
||||
config BR2_PACKAGE_WIRELESS_TOOLS_IFRENAME
|
||||
bool "Install ifrename"
|
||||
help
|
||||
Build and install the ifrename tool
|
||||
|
||||
config BR2_PACKAGE_WIRELESS_TOOLS_LIB
|
||||
bool "Install shared library"
|
||||
depends on !BR2_STATIC_LIBS
|
||||
|
@ -19,6 +19,10 @@ WIRELESS_TOOLS_BUILD_TARGETS = iwmulticall
|
||||
WIRELESS_TOOLS_INSTALL_TARGETS = install-iwmulticall
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_WIRELESS_TOOLS_IFRENAME),y)
|
||||
WIRELESS_TOOLS_BUILD_TARGETS += ifrename
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_WIRELESS_TOOLS_LIB),y)
|
||||
WIRELESS_TOOLS_BUILD_TARGETS += libiw.so.$(WIRELESS_TOOLS_VERSION_MAJOR)
|
||||
WIRELESS_TOOLS_INSTALL_TARGETS += install-dynamic
|
||||
@ -37,8 +41,11 @@ define WIRELESS_TOOLS_BUILD_CMDS
|
||||
endef
|
||||
|
||||
define WIRELESS_TOOLS_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) PREFIX="$(TARGET_DIR)" LDCONFIG=/bin/true \
|
||||
$(WIRELESS_TOOLS_INSTALL_TARGETS)
|
||||
$(if $(WIRELESS_TOOLS_INSTALL_TARGETS),
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) PREFIX="$(TARGET_DIR)" \
|
||||
LDCONFIG=/bin/true $(WIRELESS_TOOLS_INSTALL_TARGETS))
|
||||
$(if $(BR2_PACKAGE_WIRELESS_TOOLS_IFRENAME),
|
||||
$(INSTALL) -D -m 755 $(@D)/ifrename $(TARGET_DIR)/sbin/ifrename)
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
|
Loading…
Reference in New Issue
Block a user