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