From 295535985c8743da018e643e76a1319fb2237f4d Mon Sep 17 00:00:00 2001 From: Konstantin Kondrashov Date: Tue, 15 Apr 2025 18:51:24 +0300 Subject: [PATCH] feat(soc): Adds core_num definition for Linux target Closes https://github.com/espressif/esp-idf/issues/15758 --- components/soc/linux/include/soc/Kconfig.soc_caps.in | 4 ++++ components/soc/linux/include/soc/soc_caps.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a/components/soc/linux/include/soc/Kconfig.soc_caps.in b/components/soc/linux/include/soc/Kconfig.soc_caps.in index d85f53b8ec..2a8fa96b00 100644 --- a/components/soc/linux/include/soc/Kconfig.soc_caps.in +++ b/components/soc/linux/include/soc/Kconfig.soc_caps.in @@ -11,6 +11,10 @@ config SOC_EFUSE_KEY_PURPOSE_FIELD bool default y +config SOC_CPU_CORES_NUM + int + default 1 + config SOC_GPIO_IN_RANGE_MAX int default 65535 diff --git a/components/soc/linux/include/soc/soc_caps.h b/components/soc/linux/include/soc/soc_caps.h index 5b1a8379f1..73f1a552d5 100644 --- a/components/soc/linux/include/soc/soc_caps.h +++ b/components/soc/linux/include/soc/soc_caps.h @@ -25,6 +25,9 @@ #define SOC_EFUSE_SUPPORTED (1) #define SOC_EFUSE_KEY_PURPOSE_FIELD (1) +/*-------------------------- CPU CAPS ----------------------------------------*/ +#define SOC_CPU_CORES_NUM (1U) + /*-------------------------- GPIO CAPS ---------------------------------------*/ #define SOC_GPIO_IN_RANGE_MAX (65535) #define SOC_GPIO_OUT_RANGE_MAX (65535)