From 7257c56a81c81020513925721a97fa8731730e53 Mon Sep 17 00:00:00 2001 From: Michael Roth Date: Wed, 9 Feb 2022 18:33:35 -0600 Subject: 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 --- build.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'build.sh') 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 -- cgit v1.2.3-71-gd317