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

. ../common.sh

# build linux kernel image
run_cmd "apt-get build-dep linux-image-$(uname -r)"
run_cmd "apt-get install flex"
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"