Skip to content

Commit b099db4

Browse files
rcolistetedpgeorge
authored andcommitted
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.
1 parent 2515912 commit b099db4

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

ports/esp8266/Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,21 +123,29 @@ LIB_SRC_C = $(addprefix lib/,\
123123
libm/fmodf.c \
124124
libm/nearbyintf.c \
125125
libm/ef_sqrt.c \
126+
libm/erf_lgamma.c \
126127
libm/kf_rem_pio2.c \
127128
libm/kf_sin.c \
128129
libm/kf_cos.c \
129130
libm/kf_tan.c \
130131
libm/ef_rem_pio2.c \
132+
libm/sf_erf.c \
131133
libm/sf_sin.c \
132134
libm/sf_cos.c \
133135
libm/sf_tan.c \
134136
libm/sf_frexp.c \
135137
libm/sf_modf.c \
136138
libm/sf_ldexp.c \
139+
libm/acoshf.c \
137140
libm/asinfacosf.c \
141+
libm/asinhf.c \
138142
libm/atanf.c \
143+
libm/atanhf.c \
139144
libm/atan2f.c \
145+
libm/log1pf.c \
140146
libm/roundf.c \
147+
libm/wf_lgamma.c \
148+
libm/wf_tgamma.c \
141149
)
142150

143151
SHARED_SRC_C = $(addprefix shared/,\

ports/esp8266/mpconfigport.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,9 @@ extern const struct _mp_obj_module_t mp_module_onewire;
186186
mp_obj_t pin_irq_handler[16]; \
187187
byte *uart0_rxbuf; \
188188

189+
// We need an implementation of the log2 function which is not a macro
190+
#define MP_NEED_LOG2 (1)
191+
189192
// We need to provide a declaration/definition of alloca()
190193
#include <alloca.h>
191194

0 commit comments

Comments
 (0)