2009-08-02 22:25:04 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# iw
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2012-12-27 06:39:06 +01:00
|
|
|
IW_VERSION = 3.8
|
2012-01-18 10:31:31 +01:00
|
|
|
IW_SOURCE = iw-$(IW_VERSION).tar.bz2
|
2013-02-06 04:36:56 +01:00
|
|
|
IW_SITE = $(BR2_KERNEL_MIRROR)/software/network/iw
|
2012-09-12 01:24:05 +02:00
|
|
|
IW_LICENSE = iw license
|
|
|
|
IW_LICENSE_FILES = COPYING
|
2012-10-22 17:47:52 +02:00
|
|
|
IW_DEPENDENCIES = host-pkgconf libnl
|
2009-08-02 22:25:04 +02:00
|
|
|
IW_CONFIG = $(IW_DIR)/.config
|
2012-10-22 17:47:55 +02:00
|
|
|
IW_MAKE_ENV = PKG_CONFIG="$(HOST_DIR)/usr/bin/pkg-config" \
|
2009-08-02 22:25:04 +02:00
|
|
|
GIT_DIR=$(IW_DIR)
|
|
|
|
|
2012-07-02 10:37:02 +02:00
|
|
|
ifeq ($(BR2_PREFER_STATIC_LIB),y)
|
|
|
|
# libnl needs pthread/m, so we need to explicitly with them when static
|
|
|
|
# these need to added AFTER libnl, so we have to override LIBS completely
|
|
|
|
IW_MAKE_OPT = LIBS='-lnl-genl-3 -lnl-3 -lpthread -lm'
|
|
|
|
endif
|
|
|
|
|
2010-07-26 22:54:52 +02:00
|
|
|
define IW_CONFIGURE_CMDS
|
2009-08-02 22:25:04 +02:00
|
|
|
echo "CC = $(TARGET_CC)" >$(IW_CONFIG)
|
|
|
|
echo "CFLAGS = $(TARGET_CFLAGS)" >>$(IW_CONFIG)
|
|
|
|
echo "LDFLAGS = $(TARGET_LDFLAGS)" >>$(IW_CONFIG)
|
2010-07-26 22:54:52 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define IW_BUILD_CMDS
|
2012-07-02 10:37:02 +02:00
|
|
|
$(IW_MAKE_ENV) $(MAKE) $(IW_MAKE_OPT) -C $(@D)
|
2010-07-26 22:54:52 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define IW_INSTALL_TARGET_CMDS
|
|
|
|
$(IW_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define IW_UNINSTALL_TARGET_CMDS
|
|
|
|
rm -f $(TARGET_DIR)/usr/sbin/iw
|
|
|
|
rm -f $(TARGET_DIR)/usr/share/man/man8/iw.8*
|
|
|
|
endef
|
2009-08-02 22:25:04 +02:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|