1################################################################################ 2# 3# wireless_tools 4# 5################################################################################ 6 7WIRELESS_TOOLS_VERSION_MAJOR = 30 8WIRELESS_TOOLS_VERSION = $(WIRELESS_TOOLS_VERSION_MAJOR).pre9 9WIRELESS_TOOLS_SITE = https://hewlettpackard.github.io/wireless-tools 10WIRELESS_TOOLS_SOURCE = wireless_tools.$(WIRELESS_TOOLS_VERSION).tar.gz 11WIRELESS_TOOLS_LICENSE = GPL-2.0 12WIRELESS_TOOLS_LICENSE_FILES = COPYING 13WIRELESS_TOOLS_CPE_ID_VERSION = $(WIRELESS_TOOLS_VERSION_MAJOR) 14WIRELESS_TOOLS_CPE_ID_UPDATE = pre9 15WIRELESS_TOOLS_INSTALL_STAGING = YES 16 17ifeq ($(BR2_PACKAGE_WIRELESS_TOOLS_IWCONFIG),y) 18WIRELESS_TOOLS_BUILD_TARGETS = iwmulticall 19WIRELESS_TOOLS_INSTALL_TARGETS = install-iwmulticall 20endif 21 22ifeq ($(BR2_PACKAGE_WIRELESS_TOOLS_IFRENAME),y) 23WIRELESS_TOOLS_BUILD_TARGETS += ifrename 24endif 25 26ifeq ($(BR2_PACKAGE_WIRELESS_TOOLS_LIB),y) 27WIRELESS_TOOLS_BUILD_TARGETS += libiw.so.$(WIRELESS_TOOLS_VERSION_MAJOR) 28WIRELESS_TOOLS_INSTALL_TARGETS += install-dynamic 29 30define WIRELESS_TOOLS_INSTALL_STAGING_CMDS 31 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) PREFIX="$(STAGING_DIR)" LDCONFIG=/bin/true \ 32 install-dynamic 33 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) PREFIX="$(STAGING_DIR)/usr" install-hdr 34endef 35 36endif 37 38define WIRELESS_TOOLS_BUILD_CMDS 39 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \ 40 $(WIRELESS_TOOLS_BUILD_TARGETS) 41endef 42 43define WIRELESS_TOOLS_INSTALL_TARGET_CMDS 44 $(if $(WIRELESS_TOOLS_INSTALL_TARGETS), 45 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) PREFIX="$(TARGET_DIR)" \ 46 LDCONFIG=/bin/true $(WIRELESS_TOOLS_INSTALL_TARGETS)) 47 $(if $(BR2_PACKAGE_WIRELESS_TOOLS_IFRENAME), 48 $(INSTALL) -D -m 755 $(@D)/ifrename $(TARGET_DIR)/sbin/ifrename) 49endef 50 51$(eval $(generic-package)) 52