define platform.soc_ext_path when --external argument is used (to use it to include verilog files in the external target)

This commit is contained in:
Florent Kermarrec 2014-04-18 13:51:56 +02:00 committed by Sebastien Bourdeauducq
parent 41c35e7e0c
commit ea4b82e2ab
1 changed files with 2 additions and 0 deletions

View File

@ -85,6 +85,8 @@ if __name__ == "__main__":
platform_name = args.platform
platform_module = _misoc_import("mibuild.platforms", external_platform, platform_name)
platform = platform_module.Platform()
if args.external:
platform.soc_ext_path = os.path.abspath(args.external)
build_name = top_class.__name__.lower() + "-" + platform_name
top_kwargs = dict((k, autotype(v)) for k, v in args.target_option)