zephyr/soc/ambiq/CMakeLists.txt
Swift Tian 681bc1aa82 modules: hal_ambiq: fix cmake warning when no BLE
Added CONFIG_AMBIQ_COMPONENT_USE_BT and CONFIG_SOC_AMBIQ_BT_SUPPORTED
to fix empty zephyr_library() warning when BLE is not needed for compile.
Added CMake message if BT related Ambiq specific Kconfig is overriden for
not supported SoC.

Signed-off-by: Swift Tian <swift.tian@ambiq.com>
2025-03-07 19:45:40 +01:00

20 lines
555 B
CMake

# SPDX-License-Identifier: Apache-2.0
#
# Copyright (c) 2023 Antmicro <www.antmicro.com>
add_subdirectory(${SOC_SERIES})
zephyr_include_directories(.)
if(CONFIG_SOC_AMBIQ_BT_SUPPORTED)
if(CONFIG_SOC_APOLLO4P)
if(CONFIG_AMBIQ_COMPONENT_USE_BT)
message(FATAL_ERROR "AMBIQ_COMPONENT_USE_BT is set to ${CONFIG_AMBIQ_COMPONENT_USE_BT} \
for not supported SoC ${CONFIG_SOC}")
else()
message(WARNING "SOC_AMBIQ_BT_SUPPORTED is set to ${CONFIG_SOC_AMBIQ_BT_SUPPORTED} \
for not supported SoC ${CONFIG_SOC}")
endif()
endif()
endif()