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.
pull/8291/head
Ivan Grokhotkov 2021-11-15 23:58:32 +01:00
rodzic 9901fc3058
commit d5a1f6bafb
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -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