soc: esp32: add Espressif HAL config
Current Espressif porting requires standard include as part of hal implementation. compiler_flags.cmake checks for variant name to keep those stdinc in build. Instead of using variant name as check, use this new CONFIG to make it clear and to allow having toolchain integrated in zephyr-sdk package. stdinc dependency in hal_espressif will be worked out and removed soon. Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
This commit is contained in:
parent
a53e3c1b2b
commit
c9f6d18dfc
6 changed files with 11 additions and 1 deletions
|
@ -106,7 +106,7 @@ set_compiler_property(PROPERTY cstd -std=)
|
|||
|
||||
if (NOT CONFIG_NEWLIB_LIBC AND
|
||||
NOT COMPILER STREQUAL "xcc" AND
|
||||
NOT ZEPHYR_TOOLCHAIN_VARIANT STREQUAL "espressif" AND
|
||||
NOT CONFIG_HAS_ESPRESSIF_HAL AND
|
||||
NOT CONFIG_NATIVE_APPLICATION)
|
||||
set_compiler_property(PROPERTY nostdinc -nostdinc)
|
||||
set_compiler_property(APPEND PROPERTY nostdinc_include ${NOSTDINC})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue