diff options
author | Damien George <damien.p.george@gmail.com> | 2016-10-11 16:23:20 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-10-12 11:03:58 +1100 |
commit | af8d791bd09e2d735ec59424ec05f495348d99e7 (patch) | |
tree | 1c1f8f6c81717e8db0b1163a9aff5a3e89c948f2 | |
parent | 11fc6553e831885d993c8a6c09ae98aa74fdf6b7 (diff) |
esp8266: Enable importing of precompiled .mpy files.
-rw-r--r-- | esp8266/mpconfigport.h | 1 | ||||
-rw-r--r-- | py/emitglue.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/esp8266/mpconfigport.h b/esp8266/mpconfigport.h index ee32a848d..33f319f69 100644 --- a/esp8266/mpconfigport.h +++ b/esp8266/mpconfigport.h @@ -9,6 +9,7 @@ #define MICROPY_ALLOC_PARSE_RULE_INC (8) #define MICROPY_ALLOC_PARSE_RESULT_INC (8) #define MICROPY_ALLOC_PARSE_CHUNK_INIT (64) +#define MICROPY_PERSISTENT_CODE_LOAD (1) #define MICROPY_EMIT_X64 (0) #define MICROPY_EMIT_THUMB (0) #define MICROPY_EMIT_INLINE_THUMB (0) diff --git a/py/emitglue.c b/py/emitglue.c index f4b59df3e..dc5be6e0e 100644 --- a/py/emitglue.c +++ b/py/emitglue.c @@ -425,7 +425,7 @@ mp_raw_code_t *mp_raw_code_load_file(const char *filename) { return rc; } -#elif defined(__thumb2__) +#elif defined(__thumb2__) || defined(__xtensa__) // fatfs file reader (assume thumb2 arch uses fatfs...) #include "lib/fatfs/ff.h" |