From 0432f73206a0d0ff5cef5dc6146f18439079f6f3 Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 12 Feb 2024 11:56:24 +1100 Subject: [PATCH] tools/mpy-tool.py: Fix static qstrs when freezing without qstr header. It's rare to freeze .mpy files without specifying a qstr header from a firmware build, but it can be useful for testing, eg `mpy-tool.py -f test.mpy`. Fix this case so static qstrs are properly excluded from the frozen qstr list. Signed-off-by: Damien George --- tools/mpy-tool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mpy-tool.py b/tools/mpy-tool.py index 519462ec8..a656cccd6 100755 --- a/tools/mpy-tool.py +++ b/tools/mpy-tool.py @@ -1795,7 +1795,7 @@ def main(): else: config.MICROPY_QSTR_BYTES_IN_LEN = 1 config.MICROPY_QSTR_BYTES_IN_HASH = 1 - firmware_qstr_idents = set(qstrutil.static_qstr_list) + firmware_qstr_idents = set(qstrutil.static_qstr_list_ident) # Create initial list of global qstrs. global_qstrs = GlobalQStrList()