command: add new build flag '--isoimage'

New build flag '--isoimage' will create a target OS image in ISO file
type and its OS will be forced to be built as Live boot system.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I77bab7efcbaa4791c085a163e44b59cc154f3283
This commit is contained in:
Dongjin Kim
2022-04-08 10:10:32 +09:00
parent 522eab98bb
commit 76fd4dce66

View File

@@ -16,6 +16,7 @@ usage() {
echo
echo " --help: this help message"
echo " --output=<path>: output directory for image files."
echo " --iso: build target OS image as ISO format."
echo " --live: enforce to build live boot system image."
echo " --compress: compress the final OS image using 'xz'."
echo " --keep-builddir: prevent removing temporary directory"
@@ -41,6 +42,7 @@ for opt in "$@"; do
--password=*) opt_password="${opt#*=}";;
--no-live) opt_livesystem=false;;
--live) opt_livesystem=true;;
--iso) opt_isoimage=true;;
--compress) opt_compress=true;;
--internal) opt_internal=true;;
--keep-builddir)
@@ -85,6 +87,7 @@ if [[ ! -z ${opt_board} ]] && [[ ! -z ${opt_distro} ]] && [[ ! -z ${opt_flavour}
fi
[ "x${opt_livesystem}" = "xtrue" ] && LIVESYSTEM=true
[ "x${opt_isoimage}" = "xtrue" ] && ISOIMAGE=true
[ "x${opt_compress}" = "xtrue" ] && COMPRESS=true
[ "x${opt_internal}" = "xtrue" ] && INTERNAL=true