Skip to content

Commit af8d791

Browse files
committed
esp8266: Enable importing of precompiled .mpy files.
1 parent 11fc655 commit af8d791

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

esp8266/mpconfigport.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#define MICROPY_ALLOC_PARSE_RULE_INC (8)
1010
#define MICROPY_ALLOC_PARSE_RESULT_INC (8)
1111
#define MICROPY_ALLOC_PARSE_CHUNK_INIT (64)
12+
#define MICROPY_PERSISTENT_CODE_LOAD (1)
1213
#define MICROPY_EMIT_X64 (0)
1314
#define MICROPY_EMIT_THUMB (0)
1415
#define MICROPY_EMIT_INLINE_THUMB (0)

py/emitglue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ mp_raw_code_t *mp_raw_code_load_file(const char *filename) {
425425
return rc;
426426
}
427427

428-
#elif defined(__thumb2__)
428+
#elif defined(__thumb2__) || defined(__xtensa__)
429429
// fatfs file reader (assume thumb2 arch uses fatfs...)
430430

431431
#include "lib/fatfs/ff.h"

0 commit comments

Comments
 (0)