go mod way to build
This commit is contained in:
parent
f10c4165a1
commit
585a608083
@ -53,15 +53,16 @@ Install dependencies::
|
|||||||
Common
|
Common
|
||||||
======
|
======
|
||||||
|
|
||||||
Setup Go environment::
|
Setup environment::
|
||||||
|
|
||||||
$ echo 'export GOPATH=$HOME' >> ~/.bashrc
|
|
||||||
$ echo 'export PATH=$PATH:$HOME/bin' >> ~/.bashrc
|
$ echo 'export PATH=$PATH:$HOME/bin' >> ~/.bashrc
|
||||||
$ source ~/.bashrc
|
$ source ~/.bashrc
|
||||||
|
|
||||||
Build *out-of-tree*::
|
Build *out-of-tree*::
|
||||||
|
|
||||||
$ go get -u code.dumpstack.io/tools/out-of-tree
|
$ git clone https://code.dumpstack.io/tools/out-of-tree
|
||||||
|
$ cd out-of-tree
|
||||||
|
$ go build -o ~/bin/out-of-tree
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
On a GNU/Linux you need to add your user to docker group if you want
|
On a GNU/Linux you need to add your user to docker group if you want
|
||||||
@ -71,7 +72,7 @@ Build *out-of-tree*::
|
|||||||
|
|
||||||
Test that everything works::
|
Test that everything works::
|
||||||
|
|
||||||
$ cd $GOPATH/src/code.dumpstack.io/tools/out-of-tree/examples/kernel-exploit
|
$ cd out-of-tree/examples/kernel-exploit
|
||||||
$ out-of-tree kernel autogen --max=1
|
$ out-of-tree kernel autogen --max=1
|
||||||
$ out-of-tree pew --max=1
|
$ out-of-tree pew --max=1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user