Commit 215e91f1 authored by Daniel Laird's avatar Daniel Laird
Browse files

toolchain/external-toolchain/ext-tool.mk: Support non sysroot-able toolchains



Only copy the sysroot files if the toolchain was built with sysroot support.

Signed-off-by: default avatarDaniel Laird <daniel.j.laird@nxp.com>
parent 729cf4f6
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -46,8 +46,8 @@ copy_toolchain_lib_root = \

copy_toolchain_sysroot = \
	SYSROOT_DIR=`$(TARGET_CC) -v 2>&1 | grep ^Configured | tr " " "\n" | grep -- "--with-sysroot" | cut -f2 -d=`; \
	cp -a $${SYSROOT_DIR}/* $(STAGING_DIR)/ ; \
	find $(STAGING_DIR) -type d | xargs chmod 755
	if [ -n "$${SYSROOT_DIR}" ]; then cp -a $${SYSROOT_DIR}/* $(STAGING_DIR)/ ; \
	find $(STAGING_DIR) -type d | xargs chmod 755; fi

uclibc: dependencies $(TARGET_DIR)/lib/$(strip $(subst ",, $(BR2_TOOLCHAIN_EXTERNAL_LIB_C)))