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
|
if (NOT CONFIG_NEWLIB_LIBC AND
|
||||||
NOT COMPILER STREQUAL "xcc" AND
|
NOT COMPILER STREQUAL "xcc" AND
|
||||||
NOT ZEPHYR_TOOLCHAIN_VARIANT STREQUAL "espressif" AND
|
NOT CONFIG_HAS_ESPRESSIF_HAL AND
|
||||||
NOT CONFIG_NATIVE_APPLICATION)
|
NOT CONFIG_NATIVE_APPLICATION)
|
||||||
set_compiler_property(PROPERTY nostdinc -nostdinc)
|
set_compiler_property(PROPERTY nostdinc -nostdinc)
|
||||||
set_compiler_property(APPEND PROPERTY nostdinc_include ${NOSTDINC})
|
set_compiler_property(APPEND PROPERTY nostdinc_include ${NOSTDINC})
|
||||||
|
|
|
@ -13,6 +13,7 @@ source "modules/Kconfig.civetweb"
|
||||||
source "modules/Kconfig.cmsis"
|
source "modules/Kconfig.cmsis"
|
||||||
source "modules/Kconfig.cypress"
|
source "modules/Kconfig.cypress"
|
||||||
source "modules/Kconfig.eos_s3"
|
source "modules/Kconfig.eos_s3"
|
||||||
|
source "modules/Kconfig.esp32"
|
||||||
source "modules/Kconfig.imx"
|
source "modules/Kconfig.imx"
|
||||||
source "modules/Kconfig.infineon"
|
source "modules/Kconfig.infineon"
|
||||||
source "modules/Kconfig.libmetal"
|
source "modules/Kconfig.libmetal"
|
||||||
|
|
6
modules/Kconfig.esp32
Normal file
6
modules/Kconfig.esp32
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
# Copyright (c) 2022 Espressif Systems (Shanghai) Co., Ltd.
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
config HAS_ESPRESSIF_HAL
|
||||||
|
bool
|
||||||
|
depends on SOC_ESP32 || SOC_ESP32S2 || SOC_ESP32C3
|
|
@ -10,6 +10,7 @@ config SOC_ESP32C3
|
||||||
select CLOCK_CONTROL_ESP32
|
select CLOCK_CONTROL_ESP32
|
||||||
select PINCTRL
|
select PINCTRL
|
||||||
select XIP
|
select XIP
|
||||||
|
select HAS_ESPRESSIF_HAL
|
||||||
|
|
||||||
if SOC_ESP32C3
|
if SOC_ESP32C3
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,7 @@ config SOC_ESP32
|
||||||
select ARCH_SUPPORTS_COREDUMP
|
select ARCH_SUPPORTS_COREDUMP
|
||||||
select PINCTRL
|
select PINCTRL
|
||||||
select XIP
|
select XIP
|
||||||
|
select HAS_ESPRESSIF_HAL
|
||||||
|
|
||||||
if SOC_ESP32
|
if SOC_ESP32
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@ config SOC_ESP32S2
|
||||||
select CLOCK_CONTROL_ESP32
|
select CLOCK_CONTROL_ESP32
|
||||||
select PINCTRL
|
select PINCTRL
|
||||||
select XIP
|
select XIP
|
||||||
|
select HAS_ESPRESSIF_HAL
|
||||||
|
|
||||||
if SOC_ESP32S2
|
if SOC_ESP32S2
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue