Browse Source

esp8266/Makefile: Add more libm files to build.

Allows MICROPY_PY_MATH_SPECIAL_FUNCTIONS to be enabled, and for ulab to be
built as a user C module.
pull/7563/head
Roberto Colistete Jr 4 years ago
committed by Damien George
parent
commit
b099db4426
  1. 8
      ports/esp8266/Makefile
  2. 3
      ports/esp8266/mpconfigport.h

8
ports/esp8266/Makefile

@ -123,21 +123,29 @@ LIB_SRC_C = $(addprefix lib/,\
libm/fmodf.c \
libm/nearbyintf.c \
libm/ef_sqrt.c \
libm/erf_lgamma.c \
libm/kf_rem_pio2.c \
libm/kf_sin.c \
libm/kf_cos.c \
libm/kf_tan.c \
libm/ef_rem_pio2.c \
libm/sf_erf.c \
libm/sf_sin.c \
libm/sf_cos.c \
libm/sf_tan.c \
libm/sf_frexp.c \
libm/sf_modf.c \
libm/sf_ldexp.c \
libm/acoshf.c \
libm/asinfacosf.c \
libm/asinhf.c \
libm/atanf.c \
libm/atanhf.c \
libm/atan2f.c \
libm/log1pf.c \
libm/roundf.c \
libm/wf_lgamma.c \
libm/wf_tgamma.c \
)
SHARED_SRC_C = $(addprefix shared/,\

3
ports/esp8266/mpconfigport.h

@ -186,6 +186,9 @@ extern const struct _mp_obj_module_t mp_module_onewire;
mp_obj_t pin_irq_handler[16]; \
byte *uart0_rxbuf; \
// We need an implementation of the log2 function which is not a macro
#define MP_NEED_LOG2 (1)
// We need to provide a declaration/definition of alloca()
#include <alloca.h>

Loading…
Cancel
Save