summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Lynch <ntl@pobox.com>2014-01-28 20:11:22 (GMT)
committer Peter Korsgaard <peter@korsgaard.com>2014-01-28 21:55:55 (GMT)
commit9b659b815bbb747590f64f57066b36b938946353 (patch)
treeec2b25ffc6f4a84138ae1b25743993b799b2388a
parent5f52d7a8bd659664849cb4c58d7d791f129de8ce (diff)
downloadbuildroot-9b659b815bbb747590f64f57066b36b938946353.tar.gz
buildroot-9b659b815bbb747590f64f57066b36b938946353.tar.bz2
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 <ntl@pobox.com> [yann.morin.1998@free.fr: use $(INSTALL) instead of cp] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Arnout Vandecappelle <arnout@mind.be> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/busybox/busybox.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/busybox/busybox.mk b/package/busybox/busybox.mk
index f6f542e..948f3e4 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