Skip to content

Commit 1879db7

Browse files
peterzugerdpgeorge
authored andcommitted
extmod/extmod.mk: Allow enabling lwip loopback support.
Enabling MICROPY_PY_LWIP_LOOPBACK via make will turn on loopback support. Signed-off-by: Peter Züger <zueger.peter@icloud.com>
1 parent 37c1c5f commit 1879db7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

extmod/extmod.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,9 @@ SRC_THIRDPARTY_C += $(addprefix $(LWIP_DIR)/,\
267267
core/ipv6/nd6.c \
268268
netif/ethernet.c \
269269
)
270+
ifeq ($(MICROPY_PY_LWIP_LOOPBACK),1)
271+
CFLAGS_EXTMOD += -DLWIP_NETIF_LOOPBACK=1
272+
endif
270273
ifeq ($(MICROPY_PY_LWIP_SLIP),1)
271274
CFLAGS_EXTMOD += -DMICROPY_PY_LWIP_SLIP=1
272275
SRC_THIRDPARTY_C += $(LWIP_DIR)/netif/slipif.c

0 commit comments

Comments
 (0)