Skip to content

Commit 910e060

Browse files
jimmodpgeorge
authored andcommitted
minimal/mpconfigport.h: Use MICROPY_CONFIG_ROM_LEVEL_MINIMUM.
Update minimal port to use the new "minimal" rom level config (this is a no-op change, the binary is the same size and contains the exact same symbols). Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
1 parent 01374d9 commit 910e060

File tree

1 file changed

+19
-35
lines changed

1 file changed

+19
-35
lines changed

ports/minimal/mpconfigport.h

Lines changed: 19 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -2,46 +2,30 @@
22

33
// options to control how MicroPython is built
44

5+
// Use the minimal starting configuration (disables all optional features).
6+
#define MICROPY_CONFIG_ROM_LEVEL (MICROPY_CONFIG_ROM_LEVEL_MINIMUM)
7+
58
// You can disable the built-in MicroPython compiler by setting the following
69
// config option to 0. If you do this then you won't get a REPL prompt, but you
710
// will still be able to execute pre-compiled scripts, compiled with mpy-cross.
811
#define MICROPY_ENABLE_COMPILER (1)
912

10-
#define MICROPY_QSTR_BYTES_IN_HASH (1)
11-
#define MICROPY_QSTR_EXTRA_POOL mp_qstr_frozen_const_pool
12-
#define MICROPY_ALLOC_PATH_MAX (256)
13-
#define MICROPY_ALLOC_PARSE_CHUNK_INIT (16)
14-
#define MICROPY_COMP_CONST (0)
15-
#define MICROPY_COMP_DOUBLE_TUPLE_ASSIGN (0)
16-
#define MICROPY_ENABLE_GC (1)
17-
#define MICROPY_GC_ALLOC_THRESHOLD (0)
18-
#define MICROPY_HELPER_REPL (1)
19-
#define MICROPY_ERROR_REPORTING (MICROPY_ERROR_REPORTING_TERSE)
20-
#define MICROPY_BUILTIN_METHOD_CHECK_SELF_ARG (0)
21-
#define MICROPY_PY_ASYNC_AWAIT (0)
22-
#define MICROPY_PY_ASSIGN_EXPR (0)
23-
#define MICROPY_PY_BUILTINS_BYTEARRAY (0)
24-
#define MICROPY_PY_BUILTINS_DICT_FROMKEYS (0)
25-
#define MICROPY_PY_BUILTINS_ENUMERATE (0)
26-
#define MICROPY_PY_BUILTINS_FILTER (0)
27-
#define MICROPY_PY_BUILTINS_REVERSED (0)
28-
#define MICROPY_PY_BUILTINS_SET (0)
29-
#define MICROPY_PY_BUILTINS_SLICE (0)
30-
#define MICROPY_PY_BUILTINS_PROPERTY (0)
31-
#define MICROPY_PY_BUILTINS_MIN_MAX (0)
32-
#define MICROPY_PY_BUILTINS_STR_COUNT (0)
33-
#define MICROPY_PY_BUILTINS_STR_OP_MODULO (0)
34-
#define MICROPY_PY___FILE__ (0)
35-
#define MICROPY_PY_GC (0)
36-
#define MICROPY_PY_ARRAY (0)
37-
#define MICROPY_PY_ATTRTUPLE (0)
38-
#define MICROPY_PY_COLLECTIONS (0)
39-
#define MICROPY_PY_IO (0)
40-
#define MICROPY_PY_STRUCT (0)
41-
#define MICROPY_PY_SYS (0)
42-
#define MICROPY_MODULE_FROZEN_MPY (1)
43-
#define MICROPY_CPYTHON_COMPAT (0)
44-
#define MICROPY_MODULE_GETATTR (0)
13+
#define MICROPY_QSTR_EXTRA_POOL mp_qstr_frozen_const_pool
14+
#define MICROPY_ENABLE_GC (1)
15+
#define MICROPY_HELPER_REPL (1)
16+
#define MICROPY_MODULE_FROZEN_MPY (1)
17+
#define MICROPY_ENABLE_EXTERNAL_IMPORT (1)
18+
#define MICROPY_PY_MATH (1)
19+
20+
#define MICROPY_ALLOC_PATH_MAX (256)
21+
#define MICROPY_ALLOC_PARSE_CHUNK_INIT (16)
22+
23+
#define MICROPY_COMP_CONST_FOLDING (1)
24+
#define MICROPY_COMP_CONST_LITERAL (1)
25+
#define MICROPY_FULL_CHECKS (1)
26+
#define MICROPY_MULTIPLE_INHERITANCE (1)
27+
#define MICROPY_PY_GENERATOR_PEND_THROW (1)
28+
#define MICROPY_PY_BUILTINS_RANGE_ATTRS (1)
4529

4630
// type definitions for the specific machine
4731

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy