rename to version specific patch
[buildroot.git] / package / ethtool / ethtool.mk
blobe6e3ec7e0ddc13b815f5a8fee8c5bf07bcbb7d80
1 #############################################################
3 # ethtool
5 #############################################################
7 ETHTOOL_VERSION:=6
8 ETHTOOL_SOURCE:=ethtool-$(ETHTOOL_VERSION).tar.gz
9 ETHTOOL_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/gkernel/
10 ETHTOOL_DIR:=$(BUILD_DIR)/ethtool-$(ETHTOOL_VERSION)
11 ETHTOOL_CAT:=$(ZCAT)
13 $(DL_DIR)/$(ETHTOOL_SOURCE):
14 $(WGET) -P $(DL_DIR) $(ETHTOOL_SITE)/$(ETHTOOL_SOURCE)
16 $(ETHTOOL_DIR)/.unpacked: $(DL_DIR)/$(ETHTOOL_SOURCE)
17 $(ETHTOOL_CAT) $(DL_DIR)/$(ETHTOOL_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
18 $(CONFIG_UPDATE) $(@D)
19 touch $@
21 $(ETHTOOL_DIR)/.configured: $(ETHTOOL_DIR)/.unpacked
22 (cd $(ETHTOOL_DIR); rm -rf config.cache; \
23 $(AUTO_CONFIGURE_TARGET) \
24 --prefix=/usr \
25 --sysconfdir=/etc \
27 touch $@
29 $(ETHTOOL_DIR)/ethtool: $(ETHTOOL_DIR)/.configured
30 $(MAKE) -C $(ETHTOOL_DIR)
32 $(TARGET_DIR)/usr/sbin/ethtool: $(ETHTOOL_DIR)/ethtool
33 $(INSTALL) -D -m 0755 $(ETHTOOL_DIR)/ethtool $@
34 $(STRIPCMD) $(STRIP_STRIP_ALL) $@
36 ethtool: uclibc $(TARGET_DIR)/usr/sbin/ethtool
38 ethtool-source: $(DL_DIR)/$(ETHTOOL_SOURCE)
40 ethtool-clean:
41 -$(MAKE) -C $(ETHTOOL_DIR) clean
43 ethtool-dirclean:
44 rm -rf $(ETHTOOL_DIR)
45 #############################################################
47 # Toplevel Makefile options
49 #############################################################
50 ifeq ($(BR2_PACKAGE_ETHTOOL),y)
51 TARGETS+=ethtool
52 endif