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.
This commit is contained in:
Ivan Grokhotkov 2021-11-15 23:58:32 +01:00
parent 9901fc3058
commit d5a1f6bafb

View File

@ -37,6 +37,10 @@ mainmenu "Espressif IoT Development Framework Configuration"
string string
default "$IDF_TARGET" default "$IDF_TARGET"
config IDF_TARGET_LINUX
bool
default "y" if IDF_TARGET="linux"
config IDF_TARGET_ESP32 config IDF_TARGET_ESP32
bool bool
default "y" if IDF_TARGET="esp32" default "y" if IDF_TARGET="esp32"
@ -163,6 +167,7 @@ mainmenu "Espressif IoT Development Framework Configuration"
config APP_BUILD_TYPE_APP_2NDBOOT config APP_BUILD_TYPE_APP_2NDBOOT
bool bool
prompt "Default (binary application + 2nd stage bootloader)" prompt "Default (binary application + 2nd stage bootloader)"
depends on !IDF_TARGET_LINUX
select APP_BUILD_GENERATE_BINARIES select APP_BUILD_GENERATE_BINARIES
select APP_BUILD_BOOTLOADER select APP_BUILD_BOOTLOADER
select APP_BUILD_USE_FLASH_SECTIONS select APP_BUILD_USE_FLASH_SECTIONS