Create the cli.gitignore mechanism to pass extra default cli options

Document that X11 mouse is not moving.

Convert x='' to x= on all scripts, and also fix case ;; indentations.

Add dummy value to QEMU's -trace enable= to prevent warning.

Expand built-in package choice rationale.
This commit is contained in:
Ciro Santilli
2018-03-30 15:05:51 +01:00
parent 9076c1d9bc
commit 5235854384
14 changed files with 165 additions and 66 deletions

46
build
View File

@@ -1,83 +1,87 @@
#!/usr/bin/env bash
set -eu
. common
set -- ${cli_build:-} "$@"
arch=x86_64
rm -f br2_cli.gitignore
touch br2_cli.gitignore
configure=true
config_fragments='br2'
extra_make_args=''
extra_make_args=
gem5=false
j="$(($(nproc) - 2))"
linux_reconfigure=false
linux_kernel_custom_config_file=''
post_script_args=''
linux_kernel_custom_config_file=
post_script_args=
qemu_sdl='--enable-sdl --with-sdlabi=2.0'
v=0
while getopts 'a:B:b:CGgj:hIiK:klp:qSv' OPT; do
case "$OPT" in
a)
arch="$OPTARG"
;;
;;
b)
config_fragments="$config_fragments $OPTARG"
;;
;;
B)
echo "$OPTARG" >> br2_cli.gitignore
;;
;;
C)
configure=false
;;
;;
G)
extra_make_args="$extra_make_args gem5-reconfigure"
gem5=true
;;
;;
g)
gem5=true
;;
;;
h)
cat build-usage.adoc 1>&2
exit
;;
;;
I)
echo "
BR2_TARGET_ROOTFS_CPIO=n
BR2_TARGET_ROOTFS_EXT2=n
BR2_TARGET_ROOTFS_INITRAMFS=y
" >> br2_cli.gitignore
;;
;;
i)
echo "
BR2_TARGET_ROOTFS_CPIO=y
BR2_TARGET_ROOTFS_EXT2=n
BR2_TARGET_ROOTFS_INITRAMFS=n
" >> br2_cli.gitignore
;;
;;
j)
echo "$OPTARG" >> br2_cli.gitignore
;;
;;
K)
linux_kernel_custom_config_file="$OPTARG"
;;
;;
k)
extra_make_args="$extra_make_args kernel_module-reconfigure"
;;
;;
l)
linux_reconfigure=true
extra_make_args="$extra_make_args linux-reconfigure"
;;
;;
p)
post_script_args="$OPTARG"
;;
;;
q)
extra_make_args="$extra_make_args host-qemu-reconfigure"
;;
;;
S)
qemu_sdl=''
;;
qemu_sdl=
;;
v)
v=1
;;
;;
?)
exit 2
;;
esac
done
shift $(($OPTIND - 1))