From: Eric Andersen Date: Fri, 27 Jun 2003 19:01:12 +0000 (-0000) Subject: Don't overwrite /bin/busybox with patch X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4948206d1e632dbe10af266dab4a7aff428f7fd5;p=buildroot.git Don't overwrite /bin/busybox with patch --- diff --git a/make/patch.mk b/make/patch.mk index e8ceec1ad6..90ed1ad9d8 100644 --- a/make/patch.mk +++ b/make/patch.mk @@ -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)