Patchwork [RFC/PATCH,1/4] uClibc: ensure .oldconfig is writable

login
register
mail settings
Submitter Nathan Lynch
Date June 18, 2012, 3:02 p.m.
Message ID <1340031743-29694-2-git-send-email-ntl@pobox.com>
Download mbox | patch
Permalink /patch/165477/
State Changes Requested
Delegated to: Yann E. MORIN
Headers show

Comments

Nathan Lynch - June 18, 2012, 3:02 p.m.
If $(UCLIBC_CONFIG_FILE) is read-only, the sed fixups to .oldconfig
fail.

Signed-off-by: Nathan Lynch <ntl@pobox.com>
---
 toolchain/uClibc/uclibc.mk |    1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/toolchain/uClibc/uclibc.mk b/toolchain/uClibc/uclibc.mk
index 0728135..f41e6b9 100644
--- a/toolchain/uClibc/uclibc.mk
+++ b/toolchain/uClibc/uclibc.mk
@@ -101,6 +101,7 @@  endif
 # Some targets may wish to provide their own UCLIBC_CONFIG_FILE...
 $(UCLIBC_DIR)/.oldconfig: $(UCLIBC_DIR)/.patched $(UCLIBC_CONFIG_FILE)
 	cp -f $(UCLIBC_CONFIG_FILE) $(UCLIBC_DIR)/.oldconfig
+	chmod u+w $(UCLIBC_DIR)/.oldconfig
 	$(SED) 's,^CROSS_COMPILER_PREFIX=.*,CROSS_COMPILER_PREFIX="$(TARGET_CROSS)",g' \
 		-e 's,# TARGET_$(UCLIBC_TARGET_ARCH) is not set,TARGET_$(UCLIBC_TARGET_ARCH)=y,g' \
 		-e 's,^TARGET_ARCH=".*",TARGET_ARCH=\"$(UCLIBC_TARGET_ARCH)\",g' \