diff --git a/ports/esp8266/Makefile b/ports/esp8266/Makefile index b54193afef..56c7cc87f6 100644 --- a/ports/esp8266/Makefile +++ b/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/,\ diff --git a/ports/esp8266/mpconfigport.h b/ports/esp8266/mpconfigport.h index ac47f0aa29..8bc24e00eb 100644 --- a/ports/esp8266/mpconfigport.h +++ b/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