Files
zephyr/boards/u-blox/ubx_evk_iris_w1/CMakeLists.txt
Anas Nashif 303af992e5 style: fix 'if (' usage in cmake files
Replace with 'if(' and 'else(' per the cmake style guidelines.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2025-10-29 11:44:13 +02:00

35 lines
995 B
CMake

#
# Copyright 2022-2025 NXP
# Copyright (c) 2025 u-blox AG
# SPDX-License-Identifier: Apache-2.0
#
if(CONFIG_NXP_RW6XX_BOOT_HEADER)
dt_nodelabel(xtal32 NODELABEL "xtal32")
dt_node_has_status(xtal32_status PATH ${xtal32} STATUS okay)
zephyr_compile_definitions(BOARD_FLASH_SIZE=${CONFIG_FLASH_SIZE}*1024)
if(BOARD_REVISION STREQUAL "macronix")
zephyr_library_sources(macronix_flash_config.c)
elseif(BOARD_REVISION STREQUAL "fidelex")
zephyr_library_sources(fidelex_flash_config.c)
else()
message(FATAL_ERROR "Unsupported board revision: ${BOARD_REVISION}")
endif()
if(CONFIG_DT_HAS_NXP_ENET_MAC_ENABLED AND ${xtal32_status})
message(FATAL_ERROR "mutually exclusive on RW612_BGA due to shared PCB nets"
"between the ethernet PHY and the external oscillator")
endif()
# Set TX power limit
if(CONFIG_WIFI_NXP)
zephyr_include_directories(
tx_pwr_limits
)
zephyr_compile_definitions(WIFI_BT_TX_PWR_LIMITS_OVERRIDE="wlan_txpwrlimit_cfg_WW_rw610.h")
endif()
endif()