capsule.sh: name capsule consistently with ROMs built by build.sh

build.sh uses _ instead of - to separate components.

Change-Id: I06d11509c130eb1556b907e0d8393cd995d118c1
Upstream-Status: Inappropriate [Dasharo downstream]
Signed-off-by: Wiktor Mowinski <wiktor.mowinski@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
This commit is contained in:
Wiktor Mowinski
2025-08-26 01:16:09 +03:00
committed by Sergii Dmytruk
parent 6d16357656
commit 05872a32d6
+3 -3
View File
@@ -223,11 +223,11 @@ function make_subcommand() {
check_cert sub "$sub_cert"
check_cert sign "$sign_cert"
local cap_file=${CONFIG_MAINBOARD_DIR/\//-}
local cap_file=${CONFIG_MAINBOARD_DIR//[\/-]/_}
if [[ ${CONFIG_MAINBOARD_PART_NUMBER} =~ DDR4 ]]; then
cap_file+=-ddr4
cap_file+=_ddr4
fi
cap_file+=-${CONFIG_LOCALVERSION}
cap_file+=_${CONFIG_LOCALVERSION}
cap_file+=.cap
if [ -e "$cap_file" ]; then