Don't overwrite /bin/busybox with patch
authorEric Andersen <andersen@codepoet.org>
Fri, 27 Jun 2003 19:01:12 +0000 (19:01 -0000)
committerEric Andersen <andersen@codepoet.org>
Fri, 27 Jun 2003 19:01:12 +0000 (19:01 -0000)
make/patch.mk

index e8ceec1ad6f28d622ccc592b7732a5637379d8d7..90ed1ad9d8f5b614737402f39af94702b04efee8 100644 (file)
@@ -44,6 +44,7 @@ $(GNUPATCH_DIR)/$(GNUPATCH_BINARY): $(GNUPATCH_DIR)/.configured
        $(MAKE) CC=$(TARGET_CC) -C $(GNUPATCH_DIR)
 
 $(TARGET_DIR)/$(GNUPATCH_TARGET_BINARY): $(GNUPATCH_DIR)/$(GNUPATCH_BINARY)
+       rm -f $(TARGET_DIR)/$(GNUPATCH_TARGET_BINARY)
        cp -a $(GNUPATCH_DIR)/$(GNUPATCH_BINARY) $(TARGET_DIR)/$(GNUPATCH_TARGET_BINARY)
 
 patch: uclibc $(TARGET_DIR)/$(GNUPATCH_TARGET_BINARY)