build system: add rule to install without cloberring existing utilities
authorYann E. MORIN <yann.morin.1998@free.fr>
Thu, 28 Dec 2017 22:49:49 +0000 (23:49 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 4 Jan 2018 13:43:46 +0000 (14:43 +0100)
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Makefile.custom

index 891c9ced7f329f7b9e358d14c9a565c245890f2b..28d0ef7bc0b2e6c4503939d5a5a9a54e82ab17ca 100644 (file)
@@ -46,6 +46,9 @@ ifeq ($(strip $(CONFIG_FEATURE_SUID)),y)
        @echo
 endif
 
+install-noclobber: INSTALL_OPTS+=--noclobber
+install-noclobber: install
+
 uninstall: busybox.links
        rm -f $(CONFIG_PREFIX)/bin/busybox
        for i in `cat busybox.links` ; do rm -f $(CONFIG_PREFIX)$$i; done