soc_core: fix soc_core_argdict
This commit is contained in:
parent
cd8213b988
commit
ef504f62af
|
@ -528,9 +528,10 @@ def soc_core_args(parser):
|
||||||
def soc_core_argdict(args):
|
def soc_core_argdict(args):
|
||||||
r = dict()
|
r = dict()
|
||||||
for a in inspect.getargspec(SoCCore.__init__).args:
|
for a in inspect.getargspec(SoCCore.__init__).args:
|
||||||
arg = getattr(args, a, None)
|
if a not in ["self", "platform"]:
|
||||||
if arg is not None:
|
arg = getattr(args, a, None)
|
||||||
r[a] = arg
|
if arg is not None:
|
||||||
|
r[a] = arg
|
||||||
return r
|
return r
|
||||||
|
|
||||||
# SoCMini ---------------------------------------------------------------------------------------
|
# SoCMini ---------------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue