commit | 59f6f0d59090f04dcadf18929920ccb93b0dece8 | [log] [tgz] |
---|---|---|
author | Craig Stout <cstout@google.com> | Wed Sep 01 12:18:16 2021 -0700 |
committer | Craig Stout <cstout@google.com> | Wed Sep 01 12:19:06 2021 -0700 |
tree | 53b25c4c596b2d8fe8c1ed00f490a7be51bfdab9 | |
parent | a524a7ee46a6a298b4ebc74765fe25e0e1f4ebec [diff] |
Fix build. tiny_mirrors no longer exists. Change-Id: I5f24d0ca4ca44d5f5baf8325ba9e75c2989f01b7
This repository contains utilities for running integration tests for Linux guests under Machina.
First install rust (follow the instructions of the rustup
tool):
$ curl https://sh.rustup.rs -sSf | sh $ source ~/.cargo/env
Next we add some new targets for cross-compiling and static linking. Rust supports statically linking libc by replacing the usual GNU libc with musl (see The Rust Book: Advanced Linking).
$ rustup target add x86_64-unknown-linux-musl $ rustup target add aarch64-unknown-linux-musl
To compile to ARM targets, you will also need to have an appropriate cross-compiler in your path. For Debian-based systems, this can be installed by running the following command:
$ sudo apt install gcc-aarch64-linux-gnu
Lastly, run the build script for your desired architecture. This will invoke cargo for you as well as create an ext2 image in out/
.
$ ./build.sh {arm64|x64}