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):
|
||||
r = dict()
|
||||
for a in inspect.getargspec(SoCCore.__init__).args:
|
||||
arg = getattr(args, a, None)
|
||||
if arg is not None:
|
||||
r[a] = arg
|
||||
if a not in ["self", "platform"]:
|
||||
arg = getattr(args, a, None)
|
||||
if arg is not None:
|
||||
r[a] = arg
|
||||
return r
|
||||
|
||||
# SoCMini ---------------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue