diff options
Diffstat (limited to 'tools/make-frozen.py')
-rwxr-xr-x | tools/make-frozen.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/make-frozen.py b/tools/make-frozen.py index e0c807c4ef..84e589b985 100755 --- a/tools/make-frozen.py +++ b/tools/make-frozen.py @@ -14,7 +14,7 @@ # # ./make-frozen.py frozen > frozen.c # -# Include frozen.c in your build, having defined MICROPY_MODULE_FROZEN in +# Include frozen.c in your build, having defined MICROPY_MODULE_FROZEN_STR in # config. # from __future__ import print_function @@ -37,20 +37,20 @@ for dirpath, dirnames, filenames in os.walk(root): modules.append((fullpath[root_len + 1:], st)) print("#include <stdint.h>") -print("const char mp_frozen_names[] = {") +print("const char mp_frozen_str_names[] = {") for f, st in modules: m = module_name(f) print('"%s\\0"' % m) print('"\\0"};') -print("const uint32_t mp_frozen_sizes[] = {") +print("const uint32_t mp_frozen_str_sizes[] = {") for f, st in modules: print("%d," % st.st_size) print("};") -print("const char mp_frozen_content[] = {") +print("const char mp_frozen_str_content[] = {") for f, st in modules: data = open(sys.argv[1] + "/" + f, "rb").read() # Python2 vs Python3 tricks |