summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2008-08-04 19:07:45 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2008-08-04 19:07:45 +0000
commitdb2572948913cd4c632bb8c82d4c0702f046e7de (patch)
tree9883cce3157e4528f9c62e16b7b69ca8185938ee /package
parent720c0ca5ba70673e29614e21af9e2ebc8aebb385 (diff)
ethtool: convert to Makefile.autotools.in format
Diffstat (limited to 'package')
-rw-r--r--package/ethtool/ethtool.mk53
1 files changed, 7 insertions, 46 deletions
diff --git a/package/ethtool/ethtool.mk b/package/ethtool/ethtool.mk
index d94de7933..d1dd2c7ef 100644
--- a/package/ethtool/ethtool.mk
+++ b/package/ethtool/ethtool.mk
@@ -7,51 +7,12 @@
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)
-ETHTOOL_CAT:=$(ZCAT)
-ETHTOOL_BINARY=usr/sbin/ethtool
+ETHTOOL_AUTORECONF:=no
+ETHTOOL_INSTALL_STAGING:=NO
+ETHTOOL_INSTALL_TARGET:=YES
+ETHTOOL_INSTALL_TARGET_OPT:=DESTDIR=$(TARGET_DIR) STRIPPROG='$(STRIPCMD)' install-strip
+ETHTOOL_UNINSTALL_TARGET_OPT:=DESTDIR=$(TARGET_DIR) uninstall
-$(DL_DIR)/$(ETHTOOL_SOURCE):
- $(WGET) -P $(DL_DIR) $(ETHTOOL_SITE)/$(ETHTOOL_SOURCE)
+ETHTOOL_DEPENDENCIES:=uclibc
-$(ETHTOOL_DIR)/.unpacked: $(DL_DIR)/$(ETHTOOL_SOURCE)
- $(ETHTOOL_CAT) $(DL_DIR)/$(ETHTOOL_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
- touch $@
-
-$(ETHTOOL_DIR)/.configured: $(ETHTOOL_DIR)/.unpacked
- (cd $(ETHTOOL_DIR); rm -rf config.cache; \
- $(TARGET_CONFIGURE_OPTS) \
- $(TARGET_CONFIGURE_ARGS) \
- ./configure \
- --target=$(GNU_TARGET_NAME) \
- --host=$(GNU_TARGET_NAME) \
- --build=$(GNU_HOST_NAME) \
- --prefix=/usr \
- --sysconfdir=/etc \
- )
- touch $@
-
-$(ETHTOOL_DIR)/ethtool: $(ETHTOOL_DIR)/.configured
- $(MAKE) CC=$(TARGET_CC) -C $(ETHTOOL_DIR)
-
-$(TARGET_DIR)/$(ETHTOOL_BINARY): $(ETHTOOL_DIR)/ethtool
- cp $(ETHTOOL_DIR)/ethtool $@
- $(STRIPCMD) $@
-
-ethtool: uclibc $(TARGET_DIR)/$(ETHTOOL_BINARY)
-
-ethtool-source: $(DL_DIR)/$(ETHTOOL_SOURCE)
-
-ethtool-clean:
- -$(MAKE) -C $(ETHTOOL_DIR) clean
-
-ethtool-dirclean:
- rm -rf $(ETHTOOL_DIR)
-#############################################################
-#
-# Toplevel Makefile options
-#
-#############################################################
-ifeq ($(strip $(BR2_PACKAGE_ETHTOOL)),y)
-TARGETS+=ethtool
-endif
+$(eval $(call AUTOTARGETS,package,ethtool))