From d5a1f6bafb7668f7a3545e053fe642ef5865ad62 Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Mon, 15 Nov 2021 23:58:32 +0100 Subject: [PATCH] global: Kconfig: add CONFIG_IDF_TARGET_LINUX Can be used in target-specific C code to distinguish when Linux target is used. Also don't enable CONFIG_APP_BUILD_GENERATE_BINARIES and CONFIG_APP_BUILD_BOOTLOADER when building for Linux, since the bootloader is not used. CONFIG_APP_BUILD_GENERATE_BINARIES might make sense in some cases, can be re-enabled later. --- Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Kconfig b/Kconfig index 9a18909c8b..17ca73813b 100644 --- a/Kconfig +++ b/Kconfig @@ -37,6 +37,10 @@ mainmenu "Espressif IoT Development Framework Configuration" string default "$IDF_TARGET" + config IDF_TARGET_LINUX + bool + default "y" if IDF_TARGET="linux" + config IDF_TARGET_ESP32 bool default "y" if IDF_TARGET="esp32" @@ -163,6 +167,7 @@ mainmenu "Espressif IoT Development Framework Configuration" config APP_BUILD_TYPE_APP_2NDBOOT bool prompt "Default (binary application + 2nd stage bootloader)" + depends on !IDF_TARGET_LINUX select APP_BUILD_GENERATE_BINARIES select APP_BUILD_BOOTLOADER select APP_BUILD_USE_FLASH_SECTIONS