Civetweb does not work properly with mbedtls if Posix APIs are enabled. For example time function prototypes are not found by the mbedtls module if we enable mbedtls in the sample. Disable TCP ISN RFC6528 support because of this for civetweb samples, as setting that option will pull in mbedtls and we get a compilation warning because time() is not declared by any header file that mbedtls is including. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
37 lines
819 B
Plaintext
37 lines
819 B
Plaintext
# General config
|
|
CONFIG_CIVETWEB=y
|
|
CONFIG_JSON_LIBRARY=y
|
|
|
|
# pthreads
|
|
CONFIG_POSIX_API=y
|
|
CONFIG_PTHREAD_IPC=y
|
|
CONFIG_POSIX_MQUEUE=y
|
|
|
|
# networking
|
|
CONFIG_NETWORKING=y
|
|
CONFIG_NET_IPV4=y
|
|
# CONFIG_NET_IPV6 is not set
|
|
CONFIG_NET_TCP=y
|
|
CONFIG_NET_SOCKETS=y
|
|
CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE=16384
|
|
CONFIG_NET_TX_STACK_SIZE=2048
|
|
CONFIG_NET_RX_STACK_SIZE=2048
|
|
CONFIG_ISR_STACK_SIZE=2048
|
|
CONFIG_MAIN_STACK_SIZE=2048
|
|
CONFIG_IDLE_STACK_SIZE=1024
|
|
|
|
CONFIG_DNS_RESOLVER=y
|
|
|
|
CONFIG_NET_CONFIG_SETTINGS=y
|
|
CONFIG_NET_CONFIG_MY_IPV4_ADDR="192.0.2.1"
|
|
CONFIG_NET_CONFIG_MY_IPV4_NETMASK="255.255.255.0"
|
|
CONFIG_NET_CONFIG_MY_IPV4_GW="192.0.2.2"
|
|
CONFIG_NET_CONFIG_PEER_IPV4_ADDR="192.0.2.2"
|
|
|
|
# logging
|
|
CONFIG_NET_LOG=y
|
|
|
|
# Do not include mbedtls via this option as civetweb does not
|
|
# work properly with mbedtls.
|
|
CONFIG_NET_TCP_ISN_RFC6528=n
|