aboutsummaryrefslogtreecommitdiffstats
path: root/common.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 /common.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 'common.sh')
-rwxr-xr-xcommon.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/common.sh b/common.sh
index 6cb297e..9583710 100755
--- a/common.sh
+++ b/common.sh
@@ -13,10 +13,19 @@ run_cmd()
build_kernel()
{
set -x
+ kernel_type=$1
+ shift
mkdir -p linux
pushd linux >/dev/null
for V in guest host; do
+ # Check if only a "guest" or "host" or kernel build is requested
+ if [ "$kernel_type" != "" ]; then
+ if [ "$kernel_type" != "$V" ]; then
+ continue
+ fi
+ fi
+
[ -d ${V} ] || {
if [ "${V}" = "guest" ]; then
BRANCH="${KERNEL_GUEST_BRANCH}"