From 1879db7105e5139160d79193fc95964662792401 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20Z=C3=BCger?= Date: Fri, 3 Nov 2023 11:17:42 +0100 Subject: [PATCH] extmod/extmod.mk: Allow enabling lwip loopback support. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Enabling MICROPY_PY_LWIP_LOOPBACK via make will turn on loopback support. Signed-off-by: Peter Züger --- extmod/extmod.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extmod/extmod.mk b/extmod/extmod.mk index a04856bce2..84573ec861 100644 --- a/extmod/extmod.mk +++ b/extmod/extmod.mk @@ -267,6 +267,9 @@ SRC_THIRDPARTY_C += $(addprefix $(LWIP_DIR)/,\ core/ipv6/nd6.c \ netif/ethernet.c \ ) +ifeq ($(MICROPY_PY_LWIP_LOOPBACK),1) +CFLAGS_EXTMOD += -DLWIP_NETIF_LOOPBACK=1 +endif ifeq ($(MICROPY_PY_LWIP_SLIP),1) CFLAGS_EXTMOD += -DMICROPY_PY_LWIP_SLIP=1 SRC_THIRDPARTY_C += $(LWIP_DIR)/netif/slipif.c