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 17WIRELESS_TOOLS_BUILD_TARGETS = iwmulticall 18WIRELESS_TOOLS_INSTALL_TARGETS = install-iwmulticall 19 20ifeq ($(BR2_PACKAGE_WIRELESS_TOOLS_LIB),y) 21WIRELESS_TOOLS_BUILD_TARGETS += libiw.so.$(WIRELESS_TOOLS_VERSION_MAJOR) 22WIRELESS_TOOLS_INSTALL_TARGETS += install-dynamic 23 24define WIRELESS_TOOLS_INSTALL_STAGING_CMDS 25 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) PREFIX="$(STAGING_DIR)" LDCONFIG=/bin/true \ 26 install-dynamic 27 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) PREFIX="$(STAGING_DIR)/usr" install-hdr 28endef 29 30endif 31 32define WIRELESS_TOOLS_BUILD_CMDS 33 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \ 34 $(WIRELESS_TOOLS_BUILD_TARGETS) 35endef 36 37define WIRELESS_TOOLS_INSTALL_TARGET_CMDS 38 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) PREFIX="$(TARGET_DIR)" LDCONFIG=/bin/true \ 39 $(WIRELESS_TOOLS_INSTALL_TARGETS) 40endef 41 42$(eval $(generic-package)) 43