From cb27987b8ce83a6bbc2585d75c187918b8c18bb7 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 21 Sep 2018 07:52:29 +0200 Subject: [PATCH] examples/make: look for platform in migen if not present in litex --- examples/make.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/make.py b/examples/make.py index ecc052b..3379880 100755 --- a/examples/make.py +++ b/examples/make.py @@ -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 - platform_module = _import("litex.boards.platforms", platform_name) + 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)