Skip to content

Commit

Permalink
Apply size optimizations (#6261)
Browse files Browse the repository at this point in the history
* Lower NVM area reserved
* Disable Detail logging
* Remove TCP/RAW from inet and LWIP

* Restyled
  • Loading branch information
tima-q authored Apr 23, 2021
1 parent bf7b53d commit 6b853ec
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
15 changes: 12 additions & 3 deletions src/lwip/qpg6100/lwipopts.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,25 @@

#define LWIP_SOCKET 0

// TODO: seems like this is unnecessary on Thread-only platforms
#ifdef INET_CONFIG_ENABLE_RAW_ENDPOINT
#define LWIP_RAW 1
#define MEMP_NUM_RAW_PCB (5)
#else
#define LWIP_RAW 0
#define MEMP_NUM_RAW_PCB 0
#endif // INET_CONFIG_ENABLE_RAW_ENDPOINT
#ifdef INET_CONFIG_ENABLE_TCP_ENDPOINT
#define LWIP_TCP 1
#else
#define LWIP_TCP 0
#define MEMP_NUM_TCP_PCB 0
#endif // INET_CONFIG_ENABLE_TCP_ENDPOINT

// TODO: verify count
#define MEMP_NUM_UDP_PCB (7)

#define LWIP_HAVE_LOOPIF (0)

// TODO: not sure why this is disabled
#define LWIP_HAVE_LOOPIF (0)
#define LWIP_NETIF_LOOPBACK (0)

#define MEMP_NUM_NETCONN (0)
Expand Down
6 changes: 6 additions & 0 deletions src/platform/qpg6100/args.gni
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ lwip_api = true

chip_inet_config_enable_ipv4 = false
chip_inet_config_enable_dns_resolver = false
chip_inet_config_enable_tcp_endpoint = false
chip_inet_config_enable_raw_endpoint = false

# Size opt's
#chip_progress_logging = false
chip_detail_logging = false

chip_build_tests = false

Expand Down
2 changes: 1 addition & 1 deletion third_party/qpg_sdk/repo
Submodule repo updated from c5377b to 3b185d

0 comments on commit 6b853ec

Please sign in to comment.