Skip to content

Commit

Permalink
[orchestrator] enable empty EXT CA
Browse files Browse the repository at this point in the history
The extension CA is sometimes unused by SKUs. It should not be required
by the orchestrator.

Signed-off-by: Tim Trippel <[email protected]>
  • Loading branch information
timothytrippel committed Dec 18, 2024
1 parent c865344 commit 6bb0df0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sw/host/provisioning/orchestrator/src/ot_dut.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 6bb0df0

Please sign in to comment.