forked from M-Labs/nac3
json: base -> drtio_role
This commit is contained in:
parent
339e824511
commit
ee438105b2
|
@ -510,14 +510,14 @@ def main():
|
||||||
if description["target"] != "kasli_soc":
|
if description["target"] != "kasli_soc":
|
||||||
raise ValueError("Description is for a different target")
|
raise ValueError("Description is for a different target")
|
||||||
|
|
||||||
if description["base"] == "standalone":
|
if description["drtio_role"] == "standalone":
|
||||||
cls = GenericStandalone
|
cls = GenericStandalone
|
||||||
elif description["base"] == "master":
|
elif description["drtio_role"] == "master":
|
||||||
cls = GenericMaster
|
cls = GenericMaster
|
||||||
elif description["base"] == "satellite":
|
elif description["drtio_role"] == "satellite":
|
||||||
cls = GenericSatellite
|
cls = GenericSatellite
|
||||||
else:
|
else:
|
||||||
raise ValueError("Invalid base")
|
raise ValueError("Invalid DRTIO role")
|
||||||
|
|
||||||
soc = cls(description, acpki=args.acpki)
|
soc = cls(description, acpki=args.acpki)
|
||||||
soc.finalize()
|
soc.finalize()
|
||||||
|
|
Loading…
Reference in New Issue