1#
2# Copyright 2023 NXP
3#
4# SPDX-License-Identifier: Apache-2.0
5#
6
7if(CONFIG_NXP_IMXRT_BOOT_HEADER)
8  zephyr_library()
9  set(RT1170_BOARD_DIR
10    "${ZEPHYR_HAL_NXP_MODULE_DIR}/mcux/mcux-sdk/boards/evkmimxrt1170")
11  if(CONFIG_BOOT_FLEXSPI_NOR)
12    # Include flash configuration block for RT1170 EVK from NXP's HAL.
13    # This configuration block may need modification if another flash chip is
14    # used on your custom board. See NXP AN12238 for more information.
15    zephyr_compile_definitions(XIP_BOOT_HEADER_ENABLE=1)
16    zephyr_compile_definitions(BOARD_FLASH_SIZE=CONFIG_FLASH_SIZE*1024)
17    zephyr_library_sources(flexspi_nor_config.c)
18    zephyr_library_include_directories(${RT1170_BOARD_DIR}/xip)
19  endif()
20endif()
21
22if(CONFIG_MCUX_GPT_TIMER)
23  message(WARNING "You appear to be using the GPT hardware timer. "
24    "This timer will enable lower power modes, but at the cost of reduced "
25    "hardware timer resolution")
26endif()
27