2
1
Эх сурвалжийг харах

toolchain: handle white spaces in sysroot dir in copy_toolchain_sysroot

When changing permissions on all directories in the staging directory,
after copying sysroot, paths that contain spaces break the call to
chmod.

With -print0 for find and -0 for xargs white spaces are correctly
interpreted.

Signed-off-by: Daniel Lang <d.lang@abatec.at>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit 235acd628a6e23e3ec79a758e1ae4a7558ecf07e)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Lang Daniel 3 жил өмнө
parent
commit
b6c7870bf5

+ 1 - 1
toolchain/helpers.mk

@@ -150,7 +150,7 @@ copy_toolchain_sysroot = \
 	if test -n "$${SUPPORT_LIB_DIR}" ; then \
 	if test -n "$${SUPPORT_LIB_DIR}" ; then \
 		cp -a $${SUPPORT_LIB_DIR}/* $(STAGING_DIR)/lib/ ; \
 		cp -a $${SUPPORT_LIB_DIR}/* $(STAGING_DIR)/lib/ ; \
 	fi ; \
 	fi ; \
-	find $(STAGING_DIR) -type d | xargs chmod 755
+	find $(STAGING_DIR) -type d -print0 | xargs -0 chmod 755
 
 
 #
 #
 # Check the specified kernel headers version actually matches the
 # Check the specified kernel headers version actually matches the