1# 2# Copyright 2022 NXP 3# 4# SPDX-License-Identifier: Apache-2.0 5# 6 7 8if(CONFIG_NXP_IMXRT_BOOT_HEADER) 9 zephyr_library() 10 if(NOT DEFINED CONFIG_BOARD_MIMXRT1015_EVK) 11 message(WARNING "It appears you are using the board definition for " 12 "the MIMXRT1015-EVK, but targeting a custom board. You may need to " 13 "update your flash configuration data blocks") 14 endif() 15 if(CONFIG_BOOT_FLEXSPI_NOR) 16 # Include flash configuration block for RT1015 EVK from NXP's HAL. 17 # This configuration block may need modification if another flash chip is 18 # used on your custom board. See NXP AN12238 for more information. 19 zephyr_compile_definitions(XIP_BOOT_HEADER_ENABLE=1) 20 zephyr_compile_definitions(BOARD_FLASH_SIZE=CONFIG_FLASH_SIZE*1024) 21 set(RT1015_BOARD_DIR 22 "${ZEPHYR_HAL_NXP_MODULE_DIR}/mcux/mcux-sdk/boards/evkmimxrt1015") 23 zephyr_library_sources(${RT1015_BOARD_DIR}/xip/evkmimxrt1015_flexspi_nor_config.c) 24 zephyr_library_include_directories(${RT1015_BOARD_DIR}/xip) 25 endif() 26endif() 27 28if(CONFIG_MCUX_GPT_TIMER) 29 message(WARNING "You appear to be using the GPT hardware timer. " 30 "This timer will enable lower power modes, but at the cost of reduced " 31 "hardware timer resolution") 32endif() 33