From d8de64bff89292ece595bbf0f1c149c07ba3fb73 Mon Sep 17 00:00:00 2001 From: wuzhenghui Date: Fri, 6 May 2022 15:22:29 +0800 Subject: [PATCH] Kconfig: add depends --- components/hal/Kconfig | 2 ++ components/heap/Kconfig | 1 + components/spi_flash/Kconfig | 1 + 3 files changed, 4 insertions(+) diff --git a/components/hal/Kconfig b/components/hal/Kconfig index d414181d7b..fa8588620a 100644 --- a/components/hal/Kconfig +++ b/components/hal/Kconfig @@ -67,6 +67,7 @@ menu "Hardware Abstraction Layer (HAL) and Low Level (LL)" config HAL_SYSTIMER_HAS_ROM_IMPL bool + depends on IDF_TARGET_ESP32C2 || IDF_TARGET_ESP32S3 default y if IDF_TARGET_ESP32C2 # TODO: IDF-4917 config HAL_SYSTIMER_ROM_IMPL @@ -84,6 +85,7 @@ menu "Hardware Abstraction Layer (HAL) and Low Level (LL)" config HAL_WDT_HAS_ROM_IMPL bool + depends on IDF_TARGET_ESP32C2 || IDF_TARGET_ESP32S3 default y if IDF_TARGET_ESP32C2 || IDF_TARGET_ESP32S3 config HAL_WDT_ROM_IMPL diff --git a/components/heap/Kconfig b/components/heap/Kconfig index 6fdd0ab40c..67720aa3ca 100644 --- a/components/heap/Kconfig +++ b/components/heap/Kconfig @@ -73,6 +73,7 @@ menu "Heap memory debugging" config HEAP_HAS_ROM_IMPL bool + depends on IDF_TARGET_ESP32C2 default y if IDF_TARGET_ESP32C2 config HEAP_ROM_IMPL diff --git a/components/spi_flash/Kconfig b/components/spi_flash/Kconfig index 8a1e852386..ba8c559b12 100644 --- a/components/spi_flash/Kconfig +++ b/components/spi_flash/Kconfig @@ -55,6 +55,7 @@ menu "SPI Flash driver" config SPI_FLASH_HAS_ROM_IMPL bool + depends on IDF_TARGET_ESP32S3 || IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32C2 default y if IDF_TARGET_ESP32S3 || IDF_TARGET_ESP32C3 || IDF_TARGET_ESP32C2 config SPI_FLASH_ROM_IMPL