mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
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:
parent
9901fc3058
commit
d5a1f6bafb
5
Kconfig
5
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
|
||||
|
Loading…
Reference in New Issue
Block a user