Skip to content

Commit

Permalink
soc: esp32: move board config to soc context
Browse files Browse the repository at this point in the history
log and libc optimization default config are soc related
and should be moved out from board context.

Signed-off-by: Sylvio Alves <[email protected]>
  • Loading branch information
sylvioalves authored and cfriedt committed Aug 18, 2021
1 parent d04a58b commit 57e7fba
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 8 deletions.
7 changes: 0 additions & 7 deletions boards/xtensa/esp32/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@ config BOARD
config ENTROPY_ESP32_RNG
default y if ENTROPY_GENERATOR

if LOG

config LOG_DETECT_MISSED_STRDUP
default n

endif

if BT

config HEAP_MEM_POOL_SIZE
Expand Down
1 change: 0 additions & 1 deletion boards/xtensa/esp32/esp32_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,3 @@ CONFIG_I2C_1=y
CONFIG_CLOCK_CONTROL=y

CONFIG_BOOTLOADER_ESP_IDF=y
CONFIG_MINIMAL_LIBC_OPTIMIZE_STRING_FOR_SIZE=n
6 changes: 6 additions & 0 deletions soc/riscv/esp32c3/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,10 @@ config ISR_STACK_SIZE
config ATOMIC_OPERATIONS_C
default y

config MINIMAL_LIBC_OPTIMIZE_STRING_FOR_SIZE
default n

config LOG_DETECT_MISSED_STRDUP
default n

endif
6 changes: 6 additions & 0 deletions soc/xtensa/esp32/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,10 @@ config IRQ_OFFLOAD_INTNUM
config MP_NUM_CPUS
default 2

config MINIMAL_LIBC_OPTIMIZE_STRING_FOR_SIZE
default n

config LOG_DETECT_MISSED_STRDUP
default n

endif
6 changes: 6 additions & 0 deletions soc/xtensa/esp32s2/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,10 @@ config IRQ_OFFLOAD_INTNUM
config MP_NUM_CPUS
default 1

config MINIMAL_LIBC_OPTIMIZE_STRING_FOR_SIZE
default n

config LOG_DETECT_MISSED_STRDUP
default n

endif

0 comments on commit 57e7fba

Please sign in to comment.