mirror of
https://github.com/armbian/build.git
synced 2025-08-08 04:06:58 +02:00
Add interactive configurations to Repeat Build Options Simplify function produce_repeat_args_array() - make use of $ARMBIAN_NON_PARAM_ARGS and $ARMBIAN_PARSED_CMDLINE_PARAMS (associated array) - quote parameter values to be on the safe side Move "Repeat Build Options" logs to start-end.sh - cli-build.sh, start-end.sh: - move function function produce_repeat_args_array() to start-end.sh - add $WHAT as first arg to produce_repeat_args_array() if $WHAT is not empty - move early display log of "Repeat Build Options" to function main_default_start_build() - move last log of "Repeat Build Options" to function main_default_end_build() - add last log of "Repeat Build Options" to LOG_SECTION="repeat_build_options"
28 lines
920 B
Bash
28 lines
920 B
Bash
#!/usr/bin/env bash
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Copyright (c) 2013-2023 Igor Pecovnik, igor@armbian.com
|
|
#
|
|
# This file is a part of the Armbian Build Framework
|
|
# https://github.com/armbian/build/
|
|
|
|
function cli_standard_build_pre_run() {
|
|
declare -g ARMBIAN_COMMAND_REQUIRE_BASIC_DEPS="yes" # Require prepare_host_basic to run before the command.
|
|
|
|
# "gimme root on a Linux machine"
|
|
cli_standard_relaunch_docker_or_sudo
|
|
}
|
|
|
|
function cli_standard_build_run() {
|
|
declare -g -r BUILDING_IMAGE=yes # Marker; meaning "we are building an image, not just an artifact"
|
|
declare -g -r NEEDS_BINFMT="yes" # Marker; make sure binfmts are installed during prepare_host_interactive
|
|
|
|
# configuration etc - it initializes the extension manager; handles its own logging sections
|
|
prep_conf_main_build_single
|
|
|
|
# the full build. It has its own logging sections.
|
|
do_with_default_build full_build_packages_rootfs_and_image
|
|
|
|
}
|