From 26f093bbedec468b56b78e37b5a28d6c8d6e7ab3 Mon Sep 17 00:00:00 2001 From: Tim Trippel Date: Tue, 17 Dec 2024 18:20:32 -0800 Subject: [PATCH] [orchestrator] enable empty EXT CA The extension CA is sometimes unused by SKUs. It should not be required by the orchestrator. Signed-off-by: Tim Trippel --- sw/host/provisioning/orchestrator/src/ot_dut.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sw/host/provisioning/orchestrator/src/ot_dut.py b/sw/host/provisioning/orchestrator/src/ot_dut.py index 91a36411d27e8..d2a345840728e 100644 --- a/sw/host/provisioning/orchestrator/src/ot_dut.py +++ b/sw/host/provisioning/orchestrator/src/ot_dut.py @@ -14,7 +14,7 @@ from device_id import DeviceId, DeviceIdentificationNumber from sku_config import SkuConfig -from util import confirm, format_hex, run, resolve_runfile +from util import confirm, format_hex, resolve_runfile, run # FPGA bitstream. _FPGA_UNIVERSAL_SPLICE_BITSTREAM = "hw/bitstream/universal/splice.bit" @@ -236,8 +236,9 @@ def run_ft(self) -> None: # Write CA configs to a JSON tmpfile. ca_config_dict = { "dice": self.sku_config.dice_ca.to_dict_entry(), - "ext": self.sku_config.ext_ca.to_dict_entry(), } + if self.sku_config.ext_ca: + ca_config_dict["ext"] = self.sku_config.ext_ca.to_dict_entry() with tempfile.NamedTemporaryFile(mode="w+") as ca_config_file: json.dump(ca_config_dict, ca_config_file)