1
0

Move build from source to documentation

This commit is contained in:
dump_stack() 2019-12-27 08:38:47 +00:00
parent 27ffff2d05
commit 2494c94f6e
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
2 changed files with 14 additions and 38 deletions

View File

@ -31,43 +31,6 @@ out-of-tree is for automating some routine actions for creating development envi
Read [documentation](https://out-of-tree.readthedocs.io) for further info.
## Build from source
### Requirements
[Qemu](https://www.qemu.org), [docker](https://docker.com) and [golang](https://golang.org) is required.
Also do not forget to set GOPATH and PATH e.g.:
$ echo 'export GOPATH=$HOME' >> ~/.bashrc
$ echo 'export PATH=$PATH:$HOME/bin' >> ~/.bashrc
$ source ~/.bashrc
#### Gentoo
# emerge app-emulation/qemu app-emulation/docker dev-lang/go
#### macOS
$ brew install go qemu
$ brew cask install docker
#### Fedora
$ sudo dnf install go qemu moby-engine
Also check out [docker post-installation steps](https://docs.docker.com/install/linux/linux-postinstall/).
### Build
$ go get -u code.dumpstack.io/tools/out-of-tree
Then you can check it on kernel module example:
$ cd $GOPATH/src/code.dumpstack.io/tools/out-of-tree/examples/kernel-module
$ out-of-tree kernel autogen # generate kernels based on .out-of-tree.toml
$ out-of-tree pew
## Examples
Run by absolute path
@ -102,7 +65,6 @@ Generate all kernels
$ out-of-tree kernel genall --distro Ubuntu --ver 16.04
## Troubleshooting
If anything happens that you cannot solve -- just remove `$HOME/.out-of-tree`.

View File

@ -36,6 +36,20 @@ There's a minimal configuration that you need to apply::
];
}
Gentoo
------
Install dependencies::
$ sudo emerge app-emulation/qemu app-emulation/docker dev-lang/go
Fedora
------
Install dependencies::
$ sudo dnf install go qemu moby-engine
Common
======