-
-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathexample.sh
More file actions
executable file
·25 lines (21 loc) · 829 Bytes
/
example.sh
File metadata and controls
executable file
·25 lines (21 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env bash
set -e
set -o pipefail
set -u
set -x
make little-vm-helper
LVH="./lvh"
# NB: using _data so that this directory is ignored by the go build system
DATADIR="_data"
mkdir -p $DATADIR
# first create an example configuration
$LVH images example-config > $DATADIR/images.json
# then, build the images using it
$LVH images build --dir $DATADIR
$LVH kernels --dir $DATADIR init
# add a kernel by specifying a git URL, and the build it
# (a default configuration is used, but this can be changed)
$LVH kernels --dir $DATADIR add bpf-next git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git --fetch
$LVH kernels --dir $DATADIR build bpf-next
$LVH kernels --dir $DATADIR add 5.18 'git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git#linux-5.18.y' --fetch
$LVH kernels --dir $DATADIR build 5.18