uboot: introduce hook post_config_uboot_target

- runs after other configuration changes, but before actually compiling a target
- useful to hack into `.config` for a specific target
This commit is contained in:
Ricardo Pardini 2023-05-30 11:31:51 +02:00 committed by Igor
parent 040158b004
commit bffcfc4f66
2 changed files with 8 additions and 0 deletions

View File

@ -63,6 +63,7 @@ function artifact_uboot_prepare_version() {
declare -a extension_hooks_to_hash=(
"post_uboot_custom_postprocess" "fetch_custom_uboot" "build_custom_uboot"
"pre_config_uboot_target" "post_uboot_custom_postprocess" "post_uboot_custom_postprocess"
"post_config_uboot_target"
)
declare -a extension_hooks_hashed=("$(dump_extension_method_sources_functions "${extension_hooks_to_hash[@]}")")
declare hash_hooks="undetermined"

View File

@ -147,6 +147,13 @@ function compile_uboot_target() {
fi
# Hook time, for extra post-processing
call_extension_method "post_config_uboot_target" <<- 'POST_CONFIG_UBOOT_TARGET'
*allow extensions prepare after configuring but before compiling an u-boot target*
Some u-boot targets require extra configuration or pre-processing before compiling.
Last chance to change .config for u-boot before compiling.
POST_CONFIG_UBOOT_TARGET
if [[ "${UBOOT_CONFIGURE:-"no"}" == "yes" ]]; then
display_alert "Configuring u-boot" "UBOOT_CONFIGURE=yes; experimental" "warn"
run_host_command_dialog make menuconfig