mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-09 07:45:21 +00:00
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>
20 lines
555 B
CMake
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()
|