From bfd78104b2a304fd823a96c9ab9d16be638ee730 Mon Sep 17 00:00:00 2001 From: zhanghj Date: Tue, 18 Aug 2020 04:29:58 -0400 Subject: [PATCH] packaging: add usage instructions for -a (arch_target) option Add usage instructions for -a option in script and README, currently supported architecture are aarch64/ppc64le/s390x/x86_64. Fixes: #534 Signed-off-by: zhanghj --- tools/packaging/kernel/README.md | 21 +++++++++++---------- tools/packaging/kernel/build-kernel.sh | 21 +++++++++++---------- 2 files changed, 22 insertions(+), 20 deletions(-) diff --git a/tools/packaging/kernel/README.md b/tools/packaging/kernel/README.md index 72d7e2f7ab..05d5afa38a 100644 --- a/tools/packaging/kernel/README.md +++ b/tools/packaging/kernel/README.md @@ -43,16 +43,17 @@ Commands: Options: - -c : Path to config file to build a the kernel. - -d : Enable bash debug. - -e : Enable experimental kernel. - -f : Enable force generate config when setup. - -g : GPU vendor, intel or nvidia. - -h : Display this help. - -k : Path to kernel to build. - -p : Path to a directory with patches to apply to kernel. - -t : Hypervisor_target. - -v : Kernel version to use if kernel path not provided. + -a : Arch target to build the kernel, such as aarch64/ppc64le/s390x/x86_64. + -c : Path to config file to build the kernel. + -d : Enable bash debug. + -e : Enable experimental kernel. + -f : Enable force generate config when setup. + -g : GPU vendor, intel or nvidia. + -h : Display this help. + -k : Path to kernel to build. + -p : Path to a directory with patches to apply to kernel. + -t : Hypervisor_target. + -v : Kernel version to use if kernel path not provided. ``` Example: diff --git a/tools/packaging/kernel/build-kernel.sh b/tools/packaging/kernel/build-kernel.sh index d6846bcaf3..e20f4196f8 100755 --- a/tools/packaging/kernel/build-kernel.sh +++ b/tools/packaging/kernel/build-kernel.sh @@ -88,16 +88,17 @@ Commands: Options: - -c : Path to config file to build a the kernel. - -d : Enable bash debug. - -e : Enable experimental kernel. - -f : Enable force generate config when setup. - -g : GPU vendor, intel or nvidia. - -h : Display this help. - -k : Path to kernel to build. - -p : Path to a directory with patches to apply to kernel. - -t : Hypervisor_target. - -v : Kernel version to use if kernel path not provided. + -a : Arch target to build the kernel, such as aarch64/ppc64le/s390x/x86_64. + -c : Path to config file to build the kernel. + -d : Enable bash debug. + -e : Enable experimental kernel. + -f : Enable force generate config when setup. + -g : GPU vendor, intel or nvidia. + -h : Display this help. + -k : Path to kernel to build. + -p : Path to a directory with patches to apply to kernel. + -t : Hypervisor_target. + -v : Kernel version to use if kernel path not provided. EOT exit "$exit_code" }