Skip to content

Commit c5cc9d4

Browse files
committed
WIP: UEFI Cap Upd + some extra modifications
Signed-off-by: Daniil Klimuk <[email protected]>
1 parent 2716341 commit c5cc9d4

File tree

3 files changed

+281
-243
lines changed

3 files changed

+281
-243
lines changed

include/dts-environment.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ declare DASHARO_REL_VER_DPP
108108
declare HEADS_REL_VER_DPP
109109
declare DASHARO_REL_VER_DPP_SEABIOS
110110
declare COMPATIBLE_EC_FW_VERSION
111+
# and for capsules:
112+
declare DASHARO_REL_VER_CAP
113+
declare DASHARO_REL_VER_DPP_CAP
111114
# Links to files:
112115
declare BIOS_LINK_COMM
113116
declare BIOS_HASH_LINK_COMM
@@ -122,6 +125,16 @@ declare EC_LINK_COMM
122125
declare EC_HASH_LINK_COMM
123126
declare EC_SIGN_LINK_COMM
124127
declare HEADS_LINK_DPP
128+
# and for capsules:
129+
declare BIOS_LINK_COMM_CAP
130+
declare BIOS_HASH_LINK_COMM_CAP
131+
declare BIOS_SIGN_LINK_COMM_CAP
132+
declare BIOS_LINK_DPP_CAP
133+
declare BIOS_HASH_LINK_DPP_CAP
134+
declare BIOS_SIGN_LINK_DPP_CAP
135+
declare EC_LINK_COMM_CAP
136+
declare EC_HASH_LINK_COMM_CAP
137+
declare EC_SIGN_LINK_COMM_CAP
125138
# Configs, are used in dasharo-deploy script:
126139
CAN_INSTALL_BIOS="false"
127140
HAVE_HEADS_FW="false"

include/dts-functions.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,7 @@ board_config() {
626626
DASHARO_REL_VER="q35/v0.2.0"
627627
# TODO: wait till the binaries will be uploaded to the server.
628628
BIOS_LINK_COMM="${FW_STORE_URL}/${DASHARO_REL_NAME}/${DASHARO_REL_VER}/"
629+
BIOS_LINK_COMM_CAP="${FW_STORE_URL}/${DASHARO_REL_NAME}/${DASHARO_REL_VER}/"
629630
;;
630631
*)
631632
print_error "Board model $BOARD_MODEL is currently not supported"
@@ -654,6 +655,14 @@ board_config() {
654655
[ -z "$BIOS_SIGN_LINK_DPP_SEABIOS" ] && BIOS_SIGN_LINK_DPP_SEABIOS="${BIOS_HASH_LINK_DPP_SEABIOS}.sig"
655656
[ -z "$EC_HASH_LINK_COMM" ] && EC_HASH_LINK_COMM="${EC_LINK_COMM}.sha256"
656657
[ -z "$EC_SIGN_LINK_COMM" ] && EC_SIGN_LINK_COMM="${EC_HASH_LINK_COMM}.sig"
658+
659+
# And for capsules as well:
660+
[ -z "$BIOS_HASH_LINK_COMM_CAP" ] && BIOS_HASH_LINK_COMM_CAP="${BIOS_LINK_COMM_CAP}.sha256"
661+
[ -z "$BIOS_SIGN_LINK_COMM_CAP" ] && BIOS_SIGN_LINK_COMM_CAP="${BIOS_SIGN_LINK_COMM_CAP}.sig"
662+
[ -z "$BIOS_HASH_LINK_DPP_CAP" ] && BIOS_HASH_LINK_DPP_CAP="${BIOS_LINK_DPP_CAP}.sha256"
663+
[ -z "$BIOS_SIGN_LINK_DPP_CAP" ] && BIOS_SIGN_LINK_DPP_CAP="${BIOS_HASH_LINK_DPP_CAP}.sig"
664+
[ -z "$EC_HASH_LINK_COMM_CAP" ] && EC_HASH_LINK_COMM_CAP="${EC_LINK_COMM_CAP}.sha256"
665+
[ -z "$EC_SIGN_LINK_COMM_CAP" ] && EC_SIGN_LINK_COMM_CAP="${EC_HASH_LINK_COMM_CAP}.sig"
657666
}
658667

659668
check_flash_lock() {

0 commit comments

Comments
 (0)