mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-29 06:21:46 +01:00
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:
parent
ac931bd088
commit
2ae0c30f4e
@ -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' \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user