2009-08-02 22:25:04 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# iw
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2010-07-26 22:54:52 +02:00
|
|
|
IW_VERSION = 0.9.20
|
2009-08-02 22:25:04 +02:00
|
|
|
IW_SOURCE = iw-$(IW_VERSION).tar.bz2
|
|
|
|
IW_SITE = http://wireless.kernel.org/download/iw
|
2010-03-31 20:30:30 +02:00
|
|
|
IW_DEPENDENCIES = host-pkg-config libnl
|
2009-08-02 22:25:04 +02:00
|
|
|
IW_CONFIG = $(IW_DIR)/.config
|
|
|
|
IW_MAKE_ENV = PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
|
2010-02-21 13:43:33 +01:00
|
|
|
PKG_CONFIG="$(HOST_DIR)/usr/bin/pkg-config" \
|
2009-08-02 22:25:04 +02:00
|
|
|
GIT_DIR=$(IW_DIR)
|
|
|
|
|
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
|
|
|
|
$(IW_MAKE_ENV) $(MAKE) -C $(@D)
|
|
|
|
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
|
|
|
|
2010-07-26 22:54:52 +02:00
|
|
|
$(eval $(call GENTARGETS,package,iw))
|