mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 19:56:32 +02:00
install_cross_toolchain: work around crossdev being part of the SDK
The SDK job includes most crossdev x86 files but doesn't include the /usr/local/portage/crossdev/cross-x86_64-cros-linux-gnu/ symlinks for the ebuild files. This causes the crossdev packages to be deinstalled as obsolete. Detect when the symlink folder is missing and run crossdev to create it during update_chroot setup.
This commit is contained in:
parent
14d245c19a
commit
72a6bd155e
@ -314,7 +314,7 @@ install_cross_toolchain() {
|
||||
fi
|
||||
|
||||
# Only call crossdev to regenerate configs if something has changed
|
||||
if ! cmp --quiet - "${cross_cfg}" <<<"${cross_cfg_data}"
|
||||
if [[ ! -d "${cross_overlay}/cross-${cross_chost}" ]] || ! cmp --quiet - "${cross_cfg}" <<<"${cross_cfg_data}"
|
||||
then
|
||||
$sudo crossdev "${cross_flags[@]}" --init-target
|
||||
$sudo tee "${cross_cfg}" <<<"${cross_cfg_data}" >/dev/null
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user