aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrijesh Singh <brijesh.singh@amd.com>2019-05-29 14:18:15 -0400
committerBrijesh Singh <brijesh.singh@amd.com>2019-05-29 14:21:19 -0400
commitbfa123c16e7596f633093ed84e98a20edc385a1c (patch)
tree588b09aa85995805be3b0f43ab3c1996de6b60d7
parenta80eb3775b07cd20aea6c94cc816820154fce255 (diff)
downloadcachepc-amdsev-bfa123c16e7596f633093ed84e98a20edc385a1c.tar.gz
cachepc-amdsev-bfa123c16e7596f633093ed84e98a20edc385a1c.zip
add RHEL8 build script
-rwxr-xr-xdistros/rhel-8.0/build.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/distros/rhel-8.0/build.sh b/distros/rhel-8.0/build.sh
new file mode 100755
index 0000000..3867c17
--- /dev/null
+++ b/distros/rhel-8.0/build.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+. ../common.sh
+
+sudo yum install qemu-kvm qemu-img edk2-ovmf
+
+run_cmd "cp ../launch-qemu.sh /usr/local/bin"
+
+# fix the path
+sed -i 's|QEMU_INSTALL_DIR=/usr/local/bin/|QEMU_INSTALL_DIR="/usr/libexec/"|' /usr/local/bin/launch-qemu.sh
+sed -i 's|UEFI_BIOS_CODE="/usr/local/share/qemu/OVMF_CODE.fd"|UEFI_BIOS_CODE=/usr/share/OVMF/OVMF_CODE.secboot.fd|' /usr/local/bin/launch-qemu.sh
+sed -i 's|qemu-system-x86_64|qemu-kvm|' /usr/local/bin/launch-qemu.sh