commit | a524a7ee46a6a298b4ebc74765fe25e0e1f4ebec | [log] [tgz] |
---|---|---|
author | Alex Legg <alexlegg@google.com> | Tue May 05 15:15:27 2020 +1000 |
committer | Alex Legg <alexlegg@google.com> | Tue May 05 15:19:31 2020 +1000 |
tree | 754dca3a2dcd7011d7c672d15482e9c50920219f | |
parent | 95e906ce834612eea2205956b2298939ffd76c2e [diff] |
Use arch specific PCI device filenames On arm64 the virtio block devices show up under /dev/disk/by-path/platform-808100000.pci-pci-0000. Change-Id: Ib3331dfb0b8bccba001da4990da38b3405df4727
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}