diff options
| author | Michael Roth <michael.roth@amd.com> | 2022-02-09 18:33:35 -0600 |
|---|---|---|
| committer | Michael Roth <michael.roth@amd.com> | 2022-02-09 18:41:32 -0600 |
| commit | 7257c56a81c81020513925721a97fa8731730e53 (patch) | |
| tree | 1b2791bffcd995288e77d2a15edbd2e85b60cbf2 /common.sh | |
| parent | 74b84d4a452e9c634e2a6d05b524f1b24e2476b1 (diff) | |
| download | cachepc-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-x | common.sh | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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}" |
