artifact-{bsp-cli,kernel,uboot}: fix missing vars_config_hash "variables hash" in artifact_version_reason

This commit is contained in:
Ricardo Pardini
2023-08-11 13:39:15 +02:00
committed by Igor
parent 83eff4aa3c
commit 69b212a7d7
3 changed files with 6 additions and 3 deletions

View File

@@ -64,7 +64,8 @@ function artifact_armbian-bsp-cli_prepare_version() {
)
declare hash_variables="undetermined" # will be set by calculate_hash_for_variables(), which normalizes the input
calculate_hash_for_variables "${vars_to_hash[@]}"
declare var_config_hash_short="${hash_variables:0:${short_hash_size}}"
declare vars_config_hash="${hash_variables}"
declare var_config_hash_short="${vars_config_hash:0:${short_hash_size}}"
declare -a dirs_to_hash=(
"${SRC}/packages/bsp/common" # common stuff

View File

@@ -152,7 +152,8 @@ function artifact_kernel_prepare_version() {
)
declare hash_variables="undetermined" # will be set by calculate_hash_for_variables(), which normalizes the input
calculate_hash_for_variables "${vars_to_hash[@]}"
declare var_config_hash_short="${hash_variables:0:${short_hash_size}}"
declare vars_config_hash="${hash_variables}"
declare var_config_hash_short="${vars_config_hash:0:${short_hash_size}}"
# Hash the extension hooks
declare -a extension_hooks_to_hash=("pre_package_kernel_image")

View File

@@ -101,7 +101,8 @@ function artifact_uboot_prepare_version() {
)
declare hash_variables="undetermined" # will be set by calculate_hash_for_variables(), which normalizes the input
calculate_hash_for_variables "${vars_to_hash[@]}"
declare var_config_hash_short="${hash_variables:0:${short_hash_size}}"
declare vars_config_hash="${hash_variables}"
declare var_config_hash_short="${vars_config_hash:0:${short_hash_size}}"
# get the hashes of the lib/ bash sources involved...
declare hash_files="undetermined"