From a6282e3e5e3b17619b6ee61b986a0eaaf441939f Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Fri, 31 Aug 2018 12:29:38 +0800 Subject: [PATCH] cmake idf.py: Print flasher file arguments in order of file offset Previously, order was random --- tools/idf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/idf.py b/tools/idf.py index bb55ff59eb..1f017e7fce 100755 --- a/tools/idf.py +++ b/tools/idf.py @@ -338,7 +338,8 @@ def print_closing_message(args): cmd += flasher_path(flasher_args[key]["file"]) else: # flashing the whole project cmd = " ".join(flasher_args["write_flash_args"]) + " " - flash_items = sorted((o,f) for (o,f) in flasher_args["flash_files"].items() if len(o) > 0) + flash_items = sorted(((o,f) for (o,f) in flasher_args["flash_files"].items() if len(o) > 0), + key = lambda (o,_): int(o, 0)) for o,f in flash_items: cmd += o + " " + flasher_path(f) + " "