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>
This commit is contained in:
Lang Daniel
2022-05-17 10:32:12 +00:00
committed by Thomas Petazzoni
parent 558d62490b
commit 235acd628a

View File

@@ -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