2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-26 03:38:25 +08:00

kasli: s/extensions/variant/g

This commit is contained in:
Robert Jördens 2018-01-12 12:29:42 +01:00
parent 7429ee4fb6
commit ac3c3871d0

View File

@ -145,7 +145,7 @@ def _dio(eem):
class Opticlock(_KasliBase): class Opticlock(_KasliBase):
""" """
Opticlock extension configuration Opticlock extension variant configuration
""" """
def __init__(self, **kwargs): def __init__(self, **kwargs):
_KasliBase.__init__(self, **kwargs) _KasliBase.__init__(self, **kwargs)
@ -183,16 +183,16 @@ def main():
description="ARTIQ device binary builder for Kasli systems") description="ARTIQ device binary builder for Kasli systems")
builder_args(parser) builder_args(parser)
soc_kasli_args(parser) soc_kasli_args(parser)
parser.add_argument("-E", "--extensions", default="opticlock", parser.add_argument("--variant", default="opticlock",
help="extension setup: opticlock " help="extension variant setup: opticlock "
"(default: %(default)s)") "(default: %(default)s)")
args = parser.parse_args() args = parser.parse_args()
extensions = args.extensions.lower() variant = args.variant.lower()
if extensions == "opticlock": if variant == "opticlock":
cls = Opticlock cls = Opticlock
else: else:
raise SystemExit("Invalid hardware adapter string (-E/--extensions)") raise SystemExit("Invalid hardware adapter string (--variant)")
soc = cls(**soc_kasli_argdict(args)) soc = cls(**soc_kasli_argdict(args))
build_artiq_soc(soc, builder_argdict(args)) build_artiq_soc(soc, builder_argdict(args))