Skip to content

Commit 10ef4c7

Browse files
committed
[ot] scripts/opentitan: cfggen.py: fix regression introduced with bc4626e
- ot-rom_ctrl table and ot-otp-eg.scrmbl_key had been removed. OtpConfiguration was instantiated twice. Also use a regular ordered dict (py3.7+) rather than a legacy OrderedDict for managing HSJON content. Signed-off-by: Emmanuel Blot <[email protected]>
1 parent b102b7c commit 10ef4c7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/opentitan/cfggen.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def load_top_config(self, toppath: str) -> None:
6464
"""Load data from HJSON top configuration file."""
6565
assert not _HJSON_ERROR
6666
with open(toppath, 'rt') as tfp:
67-
cfg = hjload(tfp)
67+
cfg = hjload(tfp, object_pairs_hook=dict)
6868
self._top_name = cfg.get('name')
6969
for module in cfg.get('module') or []:
7070
modtype = module.get('type')
@@ -334,7 +334,6 @@ def main():
334334
if not isfile(lcpath):
335335
argparser.error(f"No such file '{ocpath}'")
336336

337-
cfg = OtConfiguration()
338337
cfg.load_lifecycle(lcpath)
339338
cfg.load_otp_constants(ocpath)
340339
cfg.save(topvar, args.socid, args.count, args.out)

0 commit comments

Comments
 (0)