From: Sebastien Bourdeauducq Date: Sat, 15 Feb 2014 13:13:25 +0000 (+0100) Subject: make.py: support setting flash proxy directory X-Git-Tag: 24jan2021_ls180~2739 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f7fa9cf11ead35bf53a2409e5b4cf1ecae02e36f;p=litex.git make.py: support setting flash proxy directory --- 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"]: