From: Boris Shingarov Date: Sat, 24 Sep 2022 11:08:42 +0000 (-0400) Subject: Recognize version string "0.12" in recent OpenOCD master X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ed5807381e3ffa88d589cda8490387e8d23b9ca6;p=microwatt.git Recognize version string "0.12" in recent OpenOCD master Starting from 5e7612eb4, OpenOCD identifies itself as 0.12. This causes Microwatt's flash-arty script to fail. Because neither the cfg nor the proxy bitstream are affected, we can keep treating everything as indistinguishable from 0.11. This patch simply tests for "0.12" as an alias; it would probably be better to replace this confusing terminology with something like "single-tap/multi-tap". Signed-off-by: Boris Shingarov --- diff --git a/openocd/flash-arty b/openocd/flash-arty index 6d4d13d..6b01bf8 100755 --- a/openocd/flash-arty +++ b/openocd/flash-arty @@ -27,6 +27,8 @@ def get_version(): return "" if a.stderr.count(b"0.11"): return "_openocd_v0.11" + if a.stderr.count(b"0.12"): + return "_openocd_v0.11" parser = argparse.ArgumentParser() parser.add_argument("file", help="file to write to flash")