...
Code Block |
---|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
. ~/.cargo/env
rustup target add aarch64-unknown-linux-gnu
echo -e '[target.aarch64-unknown-linux-gnu]\nlinker = "aarch64-linux-gnu-gcc"' >>~/.cargo/config.toml |
Key components
Xen
Branch:
master
...
Generated binary: target/aarch64-unknown-linux-gnu/release/xen-vhost-frontend
...
Building the vhost-device-i2c
binary
...
If you get a linking error saying “wrong file format
”, it’s possible the correct linker is not detected; . Check that the ~/.cargo/config.toml configuration described above in the build user setup section was done. (You can also specify it by prepending env RUSTFLAGS="-C linker=aarch64-linux-gnu-gcc"
to the cargo
command.)
Linux Kernel, guest and host
...