Jeremi Piotrowski 4ba3218d6a boostrap_sdk: only build aarch64 cross-rust on x86 hosts
The rust ebuild has some magic to detect cross-toolchains present on the
system and enable building additional cross targets. The code to trigger
the rebuild of rust is part of install_cross_rust, and checks whether
the cross directories exist in the rust installation. If they don't,
then rust is removed and rebuilt to allow for the auto-detection to
happen.

Right now there are two issues with the code. Firstly, the path that is
checked is wrong, which leads to rust always being removed and rebuilt.
The path checked is /usr/lib/rust-*/rustlib but /usr/lib/rustlib is
where the files are installed.

The second issue is that it checks for aarch64 dirs when CHOST is
aarch64-cros-linux-gnu. However, on an aarch64 host the aarch64 dirs
will already exist from building the sdk itself. The rust ebuild is not
ready to handle aarch64 hosts yet and blows up. The correct behavior is
to combine the check for CHOST with a check for the right CBUILD.

On an aarch64 host we should presumably check for the x86 CHOST and rust
dirs, but that can be added later, because it needs more work.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2021-07-19 15:11:12 +00:00
2020-09-02 08:10:50 -04:00
2019-11-07 19:40:01 +01:00
2019-12-04 14:59:11 +01:00
2021-02-17 13:26:36 +01:00
2021-02-17 13:26:36 +01:00
2021-02-17 13:26:36 +01:00
2021-02-17 13:26:36 +01:00
2021-02-04 16:57:17 +01:00
2018-01-04 12:20:11 -08:00
2019-11-07 19:40:01 +01:00
2019-12-04 14:59:11 +01:00
2019-11-07 19:40:01 +01:00
2019-11-07 19:40:01 +01:00
2019-12-04 14:59:11 +01:00
2019-11-07 19:40:01 +01:00
2021-02-17 13:26:36 +01:00
2014-01-19 12:25:11 -08:00
2021-02-17 13:26:36 +01:00
2021-02-17 13:26:36 +01:00
2019-11-07 19:40:01 +01:00
2021-02-17 13:26:36 +01:00

Flatcar Container Linux SDK scripts

Welcome to the scripts repo, your starting place for most things here in the Flatcar Container Linux SDK. To get started you can find our documentation on the Flatcar docs website.

Description
image build and composition scripts for Flatcar Container Linux
Readme BSD-3-Clause 164 MiB
Languages
Shell 93.1%
Python 6.9%