make.py: use sys.path.insert(0...) to allow external designs to have specific targets derived from a base target

This commit is contained in:
Florent Kermarrec 2015-07-13 17:00:03 +02:00
parent 4dca66b23d
commit 6c13879fb6
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ if __name__ == "__main__":
if args.external:
external_target = os.path.join(args.external, "targets")
external_platform = os.path.join(args.external, "platforms")
sys.path.insert(1, os.path.abspath(args.external))
sys.path.insert(0, os.path.abspath(args.external))
# create top-level SoC object
target_module = misoc_import("targets", external_target, args.target)