You've already forked dts-scripts
mirror of
https://github.com/Dasharo/dts-scripts.git
synced 2026-03-06 15:01:22 -08:00
scripts: dasharo-deploy.sh: mock SeaBIOS payload presence
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
This commit is contained in:
@@ -322,6 +322,7 @@ cbmem_check_if_me_disabled_mock() {
|
||||
TEST_VBOOT_ENABLED="${TEST_VBOOT_ENABLED:-}"
|
||||
TEST_ROMHOLE_MIGRATION="${TEST_ROMHOLE_MIGRATION:-}"
|
||||
TEST_DIFFERENT_FMAP="${TEST_DIFFERENT_FMAP:-}"
|
||||
TEST_IS_SEABIOS="${TEST_IS_SEABIOS:-}"
|
||||
|
||||
cbfstool_layout_mock() {
|
||||
# Emulating some fields in Coreboot Files System layout table:
|
||||
@@ -360,6 +361,12 @@ cbfstool_read_bios_conffile_mock() {
|
||||
echo "CONFIG_VBOOT=y" >"$_file_to_write_into"
|
||||
fi
|
||||
|
||||
if [ "$TEST_IS_SEABIOS" = "true" ]; then
|
||||
# Emulating SeaBIOS payload presence, check function choose_version for more
|
||||
# inf..
|
||||
echo "CONFIG_PAYLOAD_SEABIOS=y" >"$_file_to_write_into"
|
||||
fi
|
||||
|
||||
echo "" >>"$_file_to_write_into"
|
||||
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user