include/dts-functions.sh: introduce DTS_CONFIG_REF variable for CI tests

Signed-off-by: Artur Raglis <artur.raglis@3mdeb.com>
This commit is contained in:
Artur Raglis
2025-08-04 17:32:09 +02:00
parent f31942f7ef
commit ac6af147a3
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -181,6 +181,8 @@ declare HEADS_SWITCH_FLASHROM_OPT_OVERRIDE
declare PLATFORM_SIGN_KEY
# Other variables:
# dts-scripts config path
declare DTS_CONFIG_REF="${DTS_CONFIG_REF:-/refs/heads/main}"
# Default values for flash chip related information:
declare FLASH_CHIP_SELECT
declare FLASH_CHIP_SIZE
+1 -1
View File
@@ -234,7 +234,7 @@ board_config() {
echo "Downloading board configs repository"
mkdir -p "$BOARD_CONFIG_PATH"
curl -L -o "$BOARD_CONFIG_PATH.tar.gz" https://github.com/Dasharo/dts-configs/archive/refs/heads/main.tar.gz >/dev/null 2>>"$ERR_LOG_FILE"
curl -L -o "$BOARD_CONFIG_PATH.tar.gz" https://github.com/Dasharo/dts-configs/archive/${DTS_CONFIG_REF}.tar.gz >/dev/null 2>>"$ERR_LOG_FILE"
if [ $? -ne 0 ]; then
print_error "Failed to download configs."
return 1