toolchain/helpers.mk: use --chmod on rsync
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 <guido@vanguardiasur.com.ar> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
7701e2bf75
commit
40b28322b3
@ -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 ; \
|
||||
|
Loading…
Reference in New Issue
Block a user