From 57e7fba288cb0b48cc9dbc1190caacd99d548bd7 Mon Sep 17 00:00:00 2001 From: Sylvio Alves Date: Mon, 16 Aug 2021 20:24:32 -0300 Subject: [PATCH] soc: esp32: move board config to soc context log and libc optimization default config are soc related and should be moved out from board context. Signed-off-by: Sylvio Alves --- boards/xtensa/esp32/Kconfig.defconfig | 7 ------- boards/xtensa/esp32/esp32_defconfig | 1 - soc/riscv/esp32c3/Kconfig.defconfig | 6 ++++++ soc/xtensa/esp32/Kconfig.defconfig | 6 ++++++ soc/xtensa/esp32s2/Kconfig.defconfig | 6 ++++++ 5 files changed, 18 insertions(+), 8 deletions(-) diff --git a/boards/xtensa/esp32/Kconfig.defconfig b/boards/xtensa/esp32/Kconfig.defconfig index 7711584fb8b8..1c9cf9283d42 100644 --- a/boards/xtensa/esp32/Kconfig.defconfig +++ b/boards/xtensa/esp32/Kconfig.defconfig @@ -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 diff --git a/boards/xtensa/esp32/esp32_defconfig b/boards/xtensa/esp32/esp32_defconfig index 41046fc6aa64..c9dedd181880 100644 --- a/boards/xtensa/esp32/esp32_defconfig +++ b/boards/xtensa/esp32/esp32_defconfig @@ -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 diff --git a/soc/riscv/esp32c3/Kconfig.defconfig b/soc/riscv/esp32c3/Kconfig.defconfig index 8657a06db6af..f400b939223c 100644 --- a/soc/riscv/esp32c3/Kconfig.defconfig +++ b/soc/riscv/esp32c3/Kconfig.defconfig @@ -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 diff --git a/soc/xtensa/esp32/Kconfig.defconfig b/soc/xtensa/esp32/Kconfig.defconfig index 1a1967ceca77..167db4bb678d 100644 --- a/soc/xtensa/esp32/Kconfig.defconfig +++ b/soc/xtensa/esp32/Kconfig.defconfig @@ -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 diff --git a/soc/xtensa/esp32s2/Kconfig.defconfig b/soc/xtensa/esp32s2/Kconfig.defconfig index e4aa20f18011..065ccaeee303 100644 --- a/soc/xtensa/esp32s2/Kconfig.defconfig +++ b/soc/xtensa/esp32s2/Kconfig.defconfig @@ -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