From bbb1e7ae218701b74c88ee8d1f9fde7c763df54e Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Tue, 28 Jan 2014 21:11:24 +0100 Subject: [PATCH] package/uClibc: ensure .config is writable If $(UCLIBC_CONFIG_FILE) is read-only (eg. because Buildroot's source dir is), the sed fixups to .config fail. Signed-off-by: Nathan Lynch [yann.morin.1998@free.fr: use $(INSTALL) instead of cp] Signed-off-by: "Yann E. MORIN" Signed-off-by: Peter Korsgaard --- package/uclibc/uclibc.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/uclibc/uclibc.mk b/package/uclibc/uclibc.mk index 1978bbdfdb..7df9721c35 100644 --- a/package/uclibc/uclibc.mk +++ b/package/uclibc/uclibc.mk @@ -414,7 +414,7 @@ UCLIBC_MAKE_FLAGS = \ HOSTCC="$(HOSTCC)" define UCLIBC_SETUP_DOT_CONFIG - cp -f $(UCLIBC_CONFIG_FILE) $(@D)/.config + $(INSTALL) -m 0644 $(UCLIBC_CONFIG_FILE) $(@D)/.config $(call UCLIBC_OPT_SET,CROSS_COMPILER_PREFIX,"$(TARGET_CROSS)",$(@D)) $(call UCLIBC_OPT_SET,TARGET_$(UCLIBC_TARGET_ARCH),y,$(@D)) $(call UCLIBC_OPT_SET,TARGET_ARCH,"$(UCLIBC_TARGET_ARCH)",$(@D)) -- 2.30.2