2006-04-11 01:31:14 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# ethtool
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2007-08-01 11:53:01 +02:00
|
|
|
ETHTOOL_VERSION:=6
|
|
|
|
ETHTOOL_SOURCE:=ethtool-$(ETHTOOL_VERSION).tar.gz
|
|
|
|
ETHTOOL_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/gkernel/
|
|
|
|
ETHTOOL_DIR:=$(BUILD_DIR)/ethtool-$(ETHTOOL_VERSION)
|
2006-10-01 17:17:52 +02:00
|
|
|
ETHTOOL_CAT:=$(ZCAT)
|
2006-04-11 01:31:14 +02:00
|
|
|
|
|
|
|
$(DL_DIR)/$(ETHTOOL_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(ETHTOOL_SITE)/$(ETHTOOL_SOURCE)
|
|
|
|
|
|
|
|
$(ETHTOOL_DIR)/.unpacked: $(DL_DIR)/$(ETHTOOL_SOURCE)
|
|
|
|
$(ETHTOOL_CAT) $(DL_DIR)/$(ETHTOOL_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2007-05-31 17:27:05 +02:00
|
|
|
touch $@
|
2006-04-11 01:31:14 +02:00
|
|
|
|
|
|
|
$(ETHTOOL_DIR)/.configured: $(ETHTOOL_DIR)/.unpacked
|
|
|
|
(cd $(ETHTOOL_DIR); rm -rf config.cache; \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2006-04-11 01:31:14 +02:00
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2007-05-31 17:27:05 +02:00
|
|
|
touch $@
|
2006-04-11 01:31:14 +02:00
|
|
|
|
2007-05-31 17:27:05 +02:00
|
|
|
$(ETHTOOL_DIR)/ethtool: $(ETHTOOL_DIR)/.configured
|
|
|
|
$(MAKE) CC=$(TARGET_CC) -C $(ETHTOOL_DIR)
|
2006-04-11 01:31:14 +02:00
|
|
|
|
2007-05-31 17:27:05 +02:00
|
|
|
$(ETHTOOL_DIR)/.installed: $(ETHTOOL_DIR)/ethtool
|
|
|
|
cp $(ETHTOOL_DIR)/ethtool $(TARGET_DIR)/usr/sbin
|
|
|
|
touch $@
|
2006-04-11 01:31:14 +02:00
|
|
|
|
2007-08-20 19:21:16 +02:00
|
|
|
ethtool: uclibc $(ETHTOOL_DIR)/.installed
|
2006-04-11 01:31:14 +02:00
|
|
|
|
|
|
|
ethtool-source: $(DL_DIR)/$(ETHTOOL_SOURCE)
|
|
|
|
|
|
|
|
ethtool-clean:
|
2007-05-31 17:27:05 +02:00
|
|
|
-$(MAKE) -C $(ETHTOOL_DIR) clean
|
2006-04-11 01:31:14 +02:00
|
|
|
|
|
|
|
ethtool-dirclean:
|
2007-05-31 17:27:05 +02:00
|
|
|
rm -rf $(ETHTOOL_DIR)
|
2006-04-11 01:31:14 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_ETHTOOL)),y)
|
|
|
|
TARGETS+=ethtool
|
|
|
|
endif
|