aboutsummaryrefslogtreecommitdiffstats
path: root/distros/ubuntu-18.04/build.sh
blob: 38415601acd9b98f88b88b7f17bdfc68c73bd8cf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

. ../common.sh

# build linux kernel image
run_cmd "apt-get build-dep linux-image-$(uname -r)"
run_cmd "apt-get install flex"
run_cmd "apt-get install bison"
build_kernel

# install newly built kernel
install_kernel

# install qemu build deps
# build and install QEMU 2.12
run_cmd "apt-get build-dep qemu"
build_install_qemu "/usr/local"

run_cmd "apt-get build-dep ovmf"
build_install_ovmf "/usr/local/share/qemu"

run_cmd "cp ../launch-qemu.sh /usr/local/bin"