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...
This commit is contained in:
Michael Marineau 2013-07-22 14:42:28 -04:00
parent ac931bd088
commit 2ae0c30f4e

View File

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