From f7fa9cf11ead35bf53a2409e5b4cf1ecae02e36f Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 15 Feb 2014 14:13:25 +0100 Subject: [PATCH] make.py: support setting flash proxy directory --- make.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/make.py b/make.py index 3932860d..1b0c8c50 100755 --- a/make.py +++ b/make.py @@ -42,6 +42,7 @@ Load/flash actions use the existing outputs, and do not trigger new builds. parser.add_argument("-d", "--decorate", default=[], action="append", help="apply simplification decorator to top-level") parser.add_argument("-Ob", "--build-option", default=[], nargs=2, action="append", help="set build option") + parser.add_argument("-f", "--flash-proxy-dir", default=None, help="set search directory for flash proxy bitstreams") parser.add_argument("action", nargs="+", help="specify an action") @@ -142,7 +143,7 @@ if __name__ == "__main__": platform.build(soc, build_name=build_name, **build_kwargs) if actions["load-bitstream"] or actions["flash-bitstream"] or actions["flash-bios"]: - prog = programmer.create_programmer(platform.name, None) + prog = programmer.create_programmer(platform.name, args.flash_proxy_dir) if actions["load-bitstream"]: prog.load_bitstream("build/" + build_name + ".bit") if actions["flash-bitstream"]: -- 2.30.2