Skip to content

Commit 7480ee5

Browse files
committed
esp8266: Enable uhashlib module.
1 parent 70fb9ee commit 7480ee5

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

esp8266/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ CFLAGS = $(INC) -Wall -Wpointer-arith -Werror -ansi -std=gnu99 -nostdlib -DUART_
3434
$(CFLAGS_XTENSA) $(COPT) $(CFLAGS_EXTRA)
3535

3636
LDFLAGS = -nostdlib -T esp8266.ld -Map=$(@:.elf=.map) --cref
37-
LIBS = -L$(ESP_SDK)/lib -lmain -ljson -llwip -lpp -lnet80211 -lwpa -lphy -lnet80211
37+
LIBS = -L$(ESP_SDK)/lib -lmain -ljson -lssl -llwip -lpp -lnet80211 -lwpa -lphy -lnet80211
3838

3939
LIBGCC_FILE_NAME = $(shell $(CC) $(CFLAGS) -print-libgcc-file-name)
4040
LIBS += -L$(dir $(LIBGCC_FILE_NAME)) -lgcc

esp8266/mpconfigport.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
#define MICROPY_PY_SYS_STDFILES (1)
3838
#define MICROPY_PY_UBINASCII (1)
3939
#define MICROPY_PY_UCTYPES (1)
40+
#define MICROPY_PY_UHASHLIB (1)
41+
#define MICROPY_PY_UHASHLIB_SHA1 (1)
4042
#define MICROPY_PY_UJSON (1)
4143
#define MICROPY_PY_MICROPYTHON_MEM_INFO (1)
4244
#define MICROPY_CPYTHON_COMPAT (0)

0 commit comments

Comments
 (0)