aboutsummaryrefslogtreecommitdiffstats
path: root/build.sh
diff options
context:
space:
mode:
authorMichael Roth <michael.roth@amd.com>2022-02-09 18:33:35 -0600
committerMichael Roth <michael.roth@amd.com>2022-02-09 18:41:32 -0600
commit7257c56a81c81020513925721a97fa8731730e53 (patch)
tree1b2791bffcd995288e77d2a15edbd2e85b60cbf2 /build.sh
parent74b84d4a452e9c634e2a6d05b524f1b24e2476b1 (diff)
downloadcachepc-amdsev-7257c56a81c81020513925721a97fa8731730e53.tar.gz
cachepc-amdsev-7257c56a81c81020513925721a97fa8731730e53.zip
build.sh: document --package
Also allow users to select a specific type of kernel packages to build via: build.sh --package kernel build.sh --package kernel host build.sh --package kernel guest
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/build.sh b/build.sh
index c0d40d3..25928cb 100755
--- a/build.sh
+++ b/build.sh
@@ -11,8 +11,10 @@ function usage()
echo " where COMPONENT is an individual component to build:"
echo " qemu, ovmf, kernel"
echo " where OPTIONS are:"
- echo " --install PATH Installation path (default $INSTALL_DIR)"
- echo " -h|--help Usage information"
+ echo " --install PATH Installation path (default $INSTALL_DIR)"
+ echo " --package [qemu|ovmf|[kernel [host|guest]]"
+ echo " Build packages (default is all of them)"
+ echo " -h|--help Usage information"
exit 1
}
@@ -54,7 +56,7 @@ INSTALL_DIR=$(readlink -e $INSTALL_DIR)
if [ -z "$1" ]; then
build_install_qemu "$INSTALL_DIR"
build_install_ovmf "$INSTALL_DIR/share/qemu"
- build_kernel
+ build_kernel $2
else
case "$1" in
qemu)
@@ -64,7 +66,8 @@ else
build_install_ovmf "$INSTALL_DIR/share/qemu"
;;
kernel)
- build_kernel
+ # additional argument of "host" or "guest" can be added to limit build to that type
+ build_kernel $2
;;
esac
fi