From 2ae0c30f4ec3eb57581494151e4fe7a035af342f Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Mon, 22 Jul 2013 14:42:28 -0400 Subject: [PATCH] fix(install_toolchain): Prevent tar from replacing lib symlinks The cross toolchain doesn't have lib symlinks but this works because it also doesn't install things to lib. However when this script manually extracts the toolchain packages to BOARD_ROOT tar includes those empty directories, replacing the symlinks that were previously there. Longer term this really needs to go away, whatever build time is saved by re-using the cross toolchain packages in BOARD_ROOT is not worth this insane level of complexity it causes... --- install_toolchain | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_toolchain b/install_toolchain index 3ba0235462..c3ed9575df 100755 --- a/install_toolchain +++ b/install_toolchain @@ -117,7 +117,7 @@ install_toolchain_in_board() { if [ "${CHOST}" != "$FLAGS_toolchain" ] ; then local libc_path="${PKGDIR}/cross-${FLAGS_toolchain}/${libc_tar}" cmds=( - "tar jxpf '${libc_path}' -C '${BOARD_ROOT}' \ + "tar jxpf '${libc_path}' -C '${BOARD_ROOT}' --exclude=lib \ './usr/${FLAGS_toolchain}' --strip-components=3" "mkdir -p '${BOARD_ROOT}/usr/lib/debug'" "tar jxpf '${libc_path}' -C '${BOARD_ROOT}/usr/lib/debug' \