Skip to content

Commit f7f16f8

Browse files
pkg/lwip: enables flags only for choosen Nucleo boards
1 parent ad26497 commit f7f16f8

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

pkg/lwip/Makefile.include

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,13 @@ PSEUDOMODULES += lwip_sock_async
2020
#These flags enable calculating ICMP chksum in LWIP software.
2121
#Without these flags RIOT device respond with ICMP chsum equal to 0, and
2222
#cannot be successfully "pinged" from Windows hosts.
23-
CFLAGS +=-DCHECKSUM_GEN_ICMP=0
24-
CFLAGS +=-DLWIP_CHECKSUM_CTRL_PER_NETIF=1
23+
ifeq ($(BOARD),nucleo-f207zg)
24+
CFLAGS +=-DCHECKSUM_GEN_ICMP=0
25+
endif
26+
27+
ifeq ($(BOARD),nucleo-f429zi)
28+
CFLAGS +=-DCHECKSUM_GEN_ICMP=0
29+
endif
2530

2631
ifneq (,$(filter lwip_contrib,$(USEMODULE)))
2732
DIRS += $(RIOTBASE)/pkg/lwip/contrib

0 commit comments

Comments
 (0)