-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from ThibF/thibf/build_install_doc
README.md: add building and installation section
- Loading branch information
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,6 +54,23 @@ user 0m0.736s | |
sys 0m0.795s | ||
``` | ||
|
||
# Building | ||
|
||
Static building is necessary as this binary is going to be executed | ||
before the file system is up and running. | ||
|
||
``` | ||
RUSTFLAGS='-C target-feature=+crt-static' cargo build -r | ||
``` | ||
|
||
# Local installation | ||
|
||
Put the binary into virtme/guest/bin/. | ||
e.g. when used as a submodule: | ||
``` | ||
cp target/release/virtme-ng-init ../virtme/guest/bin | ||
``` | ||
|
||
# Credits | ||
|
||
Author: Andrea Righi <[email protected]> |