[Buildroot] [git commit branch/next] toolchain/helpers.mk: use --chmod on rsync

From: Thomas Petazzoni <hidden>
Date: 2015-08-08 10:57:02
Subsystem: the rest · Maintainer: Linus Torvalds

commit: http://git.buildroot.net/buildroot/commit/?id=40b28322b378da087a795e4e544d8700001d28ea
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/next

This makes sure we don't have any weird permissions on the staging dir,
which could affect the target.

Signed-off-by: Guido Mart??nez <redacted>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <redacted>
Signed-off-by: Thomas Petazzoni <redacted>
---
 toolchain/helpers.mk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/toolchain/helpers.mk b/toolchain/helpers.mk
index 0dc1864..895f3f1 100644
--- a/toolchain/helpers.mk
+++ b/toolchain/helpers.mk
@@ -139,7 +139,7 @@ copy_toolchain_sysroot = \
 	SUPPORT_LIB_DIR="$(strip $5)" ; \
 	for i in etc $${ARCH_LIB_DIR} sbin usr usr/$${ARCH_LIB_DIR}; do \
 		if [ -d $${ARCH_SYSROOT_DIR}/$$i ] ; then \
-			rsync -au --chmod=Du+w --exclude 'usr/lib/locale' \
+			rsync -au --chmod=u=rwX,go=rX --exclude 'usr/lib/locale' \
 				--exclude lib --exclude lib32 --exclude lib64 \
 				$${ARCH_SYSROOT_DIR}/$$i/ $(STAGING_DIR)/$$i/ ; \
 		fi ; \
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help