examples/make: look for platform in migen if not present in litex
This commit is contained in:
parent
686db4f3cd
commit
cb27987b8c
|
@ -83,7 +83,10 @@ if __name__ == "__main__":
|
|||
raise ValueError("Target has no default platform, specify a platform with -p your_platform")
|
||||
else:
|
||||
platform_name = args.platform
|
||||
try:
|
||||
platform_module = _import("litex.boards.platforms", platform_name)
|
||||
except:
|
||||
platform_module = _import("migen.build.platforms", platform_name)
|
||||
platform_kwargs = dict((k, autotype(v)) for k, v in args.platform_option)
|
||||
platform = platform_module.Platform(**platform_kwargs)
|
||||
|
||||
|
|
Loading…
Reference in New Issue