1# Copyright 2024 NXP 2# SPDX-License-Identifier: Apache-2.0 3 4config NXP_FLEXSPI_ROM_RAMLOADER 5 bool "Create output image that NXP ROM can load from FlexSPI to ram" 6 select BUILD_OUTPUT_HEX 7 depends on !FLASH_MCUX_FLEXSPI_XIP 8 help 9 Builds an output image that the BootROM can load from the 10 FlexSPI boot device into RAM region. The image will be loaded 11 from FLEXSPI into the region specified by `zephyr,flash` node. 12 13if NXP_FLEXSPI_ROM_RAMLOADER 14 15FLASH_CHOSEN := zephyr,flash 16FLASH_BASE := $(dt_chosen_reg_addr_hex,$(FLASH_CHOSEN)) 17FLEXSPI_BASE := $(dt_nodelabel_reg_addr_hex,flexspi,1) 18config BUILD_OUTPUT_ADJUST_LMA 19 default "$(FLEXSPI_BASE) - $(FLASH_BASE)" 20 21endif # NXP_FLEXSPI_ROM_RAMLOADER 22