kernel: support bash debug

Add option '-d' in build-kernel.sh to enable bash debug.

Signed-off-by: Jimmy Xu <junming.xjm@antfin.com>
This commit is contained in:
Jimmy Xu 2020-03-20 02:00:44 +08:00
parent d248e4144c
commit 7a17b50536

View File

@ -87,6 +87,7 @@ Commands:
Options:
-c <path> : Path to config file to build a the kernel.
-d : Enable bash debug.
-e : Enable experimental kernel.
-g <vendor> : GPU vendor, intel or nvidia.
-h : Display this help.
@ -424,7 +425,7 @@ install_kata() {
}
main() {
while getopts "a:c:eg:hk:p:t:v:" opt; do
while getopts "a:c:deg:hk:p:t:v:" opt; do
case "$opt" in
a)
arch_target="${OPTARG}"
@ -432,6 +433,10 @@ main() {
c)
kernel_config_path="${OPTARG}"
;;
d)
PS4=' Line ${LINENO}: '
set -x
;;
e)
experimental_kernel="true"
;;