From b84c029fc6abfb470837ae3995a19a9b65d3db08 Mon Sep 17 00:00:00 2001 From: Srikanth Thokala Date: Fri, 13 Jun 2014 11:09:23 +0530 Subject: [PATCH] lwip: library options are not propagated Some of the LWIP options like memp_num_tcpip_msg, memp_num_api_msg are configurable from LWIP settings, but they are not actually set when compiling the LWIP library. This patch modifies the LWIP tcl to update them. Signed-off-by: Srikanth Thokala Acked-by: Anirudha Sarangi --- ThirdParty/sw_services/lwip140/data/lwip140.tcl | 5 +++++ ThirdParty/sw_services/lwip140/src/ChangeLog | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ThirdParty/sw_services/lwip140/data/lwip140.tcl b/ThirdParty/sw_services/lwip140/data/lwip140.tcl index f9634f06..bba48413 100755 --- a/ThirdParty/sw_services/lwip140/data/lwip140.tcl +++ b/ThirdParty/sw_services/lwip140/data/lwip140.tcl @@ -446,6 +446,11 @@ proc generate_lwip_opts {libhandle} { puts $lwipopts_fd "\#define MEMP_NUM_TCP_PCB $memp_n_tcp_pcb" puts $lwipopts_fd "\#define MEMP_NUM_TCP_PCB_LISTEN $memp_n_tcp_pcb_listen" puts $lwipopts_fd "\#define MEMP_NUM_TCP_SEG $memp_n_tcp_seg" + puts $lwipopts_fd "\#define MEMP_NUM_SYS_TIMEOUT $memp_n_sys_timeout" + puts $lwipopts_fd "\#define MEMP_NUM_NETBUF $memp_num_netbuf" + puts $lwipopts_fd "\#define MEMP_NUM_NETCONN $memp_num_netconn" + puts $lwipopts_fd "\#define MEMP_NUM_TCPIP_MSG_API $memp_num_api_msg" + puts $lwipopts_fd "\#define MEMP_NUM_TCPIP_MSG_INPKT $memp_num_tcpip_msg" # workaround for lwip mem_malloc bug # puts $lwipopts_fd "\#define MEM_LIBC_MALLOC 1" diff --git a/ThirdParty/sw_services/lwip140/src/ChangeLog b/ThirdParty/sw_services/lwip140/src/ChangeLog index 9e3a93c3..23d34b81 100755 --- a/ThirdParty/sw_services/lwip140/src/ChangeLog +++ b/ThirdParty/sw_services/lwip140/src/ChangeLog @@ -1,5 +1,8 @@ Change Log for lwip ================================= +2014-13-06 + * Fix for CR 801076 - Few configurable options of + library are not propagated during compilation. 2014-06-06 * Fix for CR 800240 - Removed the limitation of supporting only Marvel PHY in AXI Ethernet adapter.