commit | 356aef2e99bba8385c9e77bf1cbc1ad2db008ed1 | [log] [tgz] |
---|---|---|
author | David Greenaway <dgreenaway@google.com> | Thu May 23 15:31:54 2019 +1000 |
committer | David Greenaway <dgreenaway@google.com> | Fri May 24 09:46:07 2019 +1000 |
tree | 1ba3c99414dc890778008497a200028aeb0221c1 | |
parent | 1082a095c8523740e76d1630ee544228e3273204 [diff] |
Trivial: Reformat README.md. Change-Id: Id6774593628a2091dda8b529b0cfba31d5e6a985
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
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}