2023-08-11 13:40:05 -07:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
# FIXME: SHADOW_VARS: Remove this once we have enabled -Wshadow globally.
|
|
|
|
#
|
|
|
|
# Limit warning of shadow variables to in-tree SoC files for now.
|
|
|
|
cmake_path(IS_PREFIX ZEPHYR_BASE "${SOC_DIR}" NORMALIZE _SOC_IS_IN_TREE)
|
|
|
|
if(_SOC_IS_IN_TREE)
|
|
|
|
add_compile_options($<TARGET_PROPERTY:compiler,warning_shadow_variables>)
|
|
|
|
endif()
|
|
|
|
unset(_SOC_IS_IN_TREE)
|
|
|
|
|
2024-02-01 10:40:53 +01:00
|
|
|
add_subdirectory(common)
|
|
|
|
|
2023-08-11 13:40:05 -07:00
|
|
|
if(EXISTS ${SOC_DIR}/${ARCH}/CMakeLists.txt)
|
|
|
|
add_subdirectory(${SOC_DIR}/${ARCH} soc/${ARCH})
|
|
|
|
else()
|
|
|
|
add_subdirectory(${SOC_DIR}/${ARCH}/${SOC_PATH} soc/${ARCH}/${SOC_PATH})
|
|
|
|
endif()
|