commit | 21e0ca9f752b0308e42a5b2481ef3336f1b5a80e | [log] [tgz] |
---|---|---|
author | Alex Legg <alexlegg@google.com> | Mon Aug 12 17:12:42 2019 +1000 |
committer | Alex Legg <alexlegg@google.com> | Tue Aug 13 12:18:59 2019 +1000 |
tree | de0358f443359e53bf1d722a62d5b7888cbc4620 | |
parent | 6b3b8c9e60d122f61d7d5ecefcd0cea3203a5ea1 [diff] |
Add 'Find' command to virtio net test util For finding thet network interface corresponding to a MAC address. Change-Id: I3bafd4979c47a5299b279bfaf16ec8ffaaaf90d6
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}