From: Nathan Lynch Date: Tue, 28 Jan 2014 20:11:22 +0000 (+0100) Subject: busybox: ensure $(BUSYBOX_BUILD_CONFIG) is writable X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9b659b815bbb747590f64f57066b36b938946353;p=buildroot.git busybox: ensure $(BUSYBOX_BUILD_CONFIG) is writable If $(BUSYBOX_CONFIG_FILE) is read-only (eg. because Buildroot's source dir is), the sed fixups to $(BUSYBOX_BUILD_CONFIG) fail. Fixes: #4363 Signed-off-by: Nathan Lynch [yann.morin.1998@free.fr: use $(INSTALL) instead of cp] Signed-off-by: "Yann E. MORIN" Cc: Arnout Vandecappelle Signed-off-by: Peter Korsgaard --- diff --git a/package/busybox/busybox.mk b/package/busybox/busybox.mk index f6f542e22d..948f3e42d3 100644 --- a/package/busybox/busybox.mk +++ b/package/busybox/busybox.mk @@ -135,7 +135,7 @@ endef endif define BUSYBOX_COPY_CONFIG - cp -f $(BUSYBOX_CONFIG_FILE) $(BUSYBOX_BUILD_CONFIG) + $(INSTALL) -D -m 0644 $(BUSYBOX_CONFIG_FILE) $(BUSYBOX_BUILD_CONFIG) endef # Disable shadow passwords support if unsupported by the C library