py/dynruntime.mk: Set MICROPY_ENABLE_DYNRUNTIME instead of per module.

So this setting could be used by other source files if needed.
This commit is contained in:
Jim Mussared 2020-03-04 17:07:42 +11:00 committed by Damien George
parent 994c1dd57a
commit c34e7b9d4c
8 changed files with 5 additions and 6 deletions

View File

@ -1,4 +1,3 @@
#define MICROPY_ENABLE_DYNRUNTIME (1)
#define MICROPY_PY_BTREE (1)
#include "py/dynruntime.h"

View File

@ -1,4 +1,3 @@
#define MICROPY_ENABLE_DYNRUNTIME (1)
#define MICROPY_PY_FRAMEBUF (1)
#include "py/dynruntime.h"

View File

@ -1,4 +1,3 @@
#define MICROPY_ENABLE_DYNRUNTIME (1)
#define MICROPY_PY_UHEAPQ (1)
#include "py/dynruntime.h"

View File

@ -1,4 +1,3 @@
#define MICROPY_ENABLE_DYNRUNTIME (1)
#define MICROPY_PY_URANDOM (1)
#define MICROPY_PY_URANDOM_EXTRA_FUNCS (1)

View File

@ -1,4 +1,3 @@
#define MICROPY_ENABLE_DYNRUNTIME (1)
#define MICROPY_STACK_CHECK (1)
#define MICROPY_PY_URE (1)
#define MICROPY_PY_URE_MATCH_GROUPS (1)

View File

@ -1,4 +1,3 @@
#define MICROPY_ENABLE_DYNRUNTIME (1)
#define MICROPY_PY_UZLIB (1)
#include "py/dynruntime.h"

View File

@ -33,6 +33,10 @@
#include "py/objstr.h"
#include "py/objtype.h"
#if !MICROPY_ENABLE_DYNRUNTIME
#error "dynruntime.h included in non-dynamic-module build."
#endif
#undef MP_ROM_QSTR
#undef MP_OBJ_QSTR_VALUE
#undef MP_OBJ_NEW_QSTR

View File

@ -27,6 +27,7 @@ CFLAGS += -std=c99
CFLAGS += -Os
CFLAGS += -Wall -Werror -DNDEBUG
CFLAGS += -DNO_QSTR
CFLAGS += -DMICROPY_ENABLE_DYNRUNTIME
CFLAGS += -DMP_CONFIGFILE='<$(CONFIG_H)>'
CFLAGS += -fpic -fno-common
CFLAGS += -U _FORTIFY_SOURCE # prevent use of __*_chk libc functions