From 174c3889a88653368bd314609680602dcd480217 Mon Sep 17 00:00:00 2001 From: Brian Swetland Date: Tue, 30 Jun 2015 17:04:42 -0700 Subject: [PATCH] [lib][lwip] allow targets to override lwip configuration LWIP has a lot of knobs and creating a generic configuration that works everywhere (or even most places) is hard. So if you add WITH_TARGET_LWIPOPTS to the configuration, pull options from instead of the defaults in lib/lwip/include/lwipopts.h --- lib/lwip/include/lwipopts.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/lwip/include/lwipopts.h b/lib/lwip/include/lwipopts.h index ddea5208..b1b16d14 100644 --- a/lib/lwip/include/lwipopts.h +++ b/lib/lwip/include/lwipopts.h @@ -5,6 +5,10 @@ #include #include +#ifdef WITH_TARGET_LWIPOPTS +#include +#else + // use lk's libc malloc #define MEM_LIBC_MALLOC 1 @@ -52,4 +56,5 @@ #define LWIP_STATS_DISPLAY 0 #endif +#endif