summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Colistete Jr <roberto.colistete@gmail.com>2020-07-24 04:13:05 -0300
committerDamien George <damien@micropython.org>2021-07-22 23:55:31 +1000
commitb099db4426c3a47e842c3e8afd5b5bb05cbcdd72 (patch)
tree65db9437803db2d174a87e333621ffad2a8ae90f
parent25159129dd9e22474d09235ce6d7a4156fd13c6f (diff)
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.
-rw-r--r--ports/esp8266/Makefile8
-rw-r--r--ports/esp8266/mpconfigport.h3
2 files changed, 11 insertions, 0 deletions
diff --git a/ports/esp8266/Makefile b/ports/esp8266/Makefile
index b54193afe..56c7cc87f 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 ac47f0aa2..8bc24e00e 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 <alloca.h>