Don't use a stamp file to note whether the package has been installed into the $...
authorHamish Moffatt <hamish@cloud.net.au>
Thu, 26 Jun 2008 06:50:44 +0000 (06:50 -0000)
committerHamish Moffatt <hamish@cloud.net.au>
Thu, 26 Jun 2008 06:50:44 +0000 (06:50 -0000)
package/ethtool/ethtool.mk

index 310f1c192e8c6c6eeda6c8b3b0dd910d4662a89c..d94de7933a8eabf2073aac02c5e39958191ca8c5 100644 (file)
@@ -9,6 +9,7 @@ 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
 
 $(DL_DIR)/$(ETHTOOL_SOURCE):
        $(WGET) -P $(DL_DIR) $(ETHTOOL_SITE)/$(ETHTOOL_SOURCE)
@@ -33,11 +34,11 @@ $(ETHTOOL_DIR)/.configured: $(ETHTOOL_DIR)/.unpacked
 $(ETHTOOL_DIR)/ethtool: $(ETHTOOL_DIR)/.configured
        $(MAKE) CC=$(TARGET_CC) -C $(ETHTOOL_DIR)
 
-$(ETHTOOL_DIR)/.installed: $(ETHTOOL_DIR)/ethtool
-       cp $(ETHTOOL_DIR)/ethtool $(TARGET_DIR)/usr/sbin
-       touch $@
+$(TARGET_DIR)/$(ETHTOOL_BINARY): $(ETHTOOL_DIR)/ethtool
+       cp $(ETHTOOL_DIR)/ethtool $@
+       $(STRIPCMD) $@
 
-ethtool: uclibc $(ETHTOOL_DIR)/.installed
+ethtool: uclibc $(TARGET_DIR)/$(ETHTOOL_BINARY)
 
 ethtool-source: $(DL_DIR)/$(ETHTOOL_SOURCE)