1# SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause 2# 3# Copyright (C) 2018, STMicroelectronics - All Rights Reserved 4# 5 6ifndef CONFIG_SPL 7INPUTS-y += u-boot.stm32 8else 9ifdef CONFIG_SPL_BUILD 10INPUTS-y += u-boot-spl.stm32 11endif 12endif 13 14MKIMAGEFLAGS_u-boot.stm32 = -T stm32image -a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_TEXT_BASE) 15 16u-boot.stm32: MKIMAGEOUTPUT = u-boot.stm32.log 17 18u-boot.stm32: u-boot.bin FORCE 19 $(call if_changed,mkimage) 20 21MKIMAGEFLAGS_u-boot-spl.stm32 = -T stm32image -a $(CONFIG_SPL_TEXT_BASE) -e $(CONFIG_SPL_TEXT_BASE) 22 23spl/u-boot-spl.stm32: MKIMAGEOUTPUT = spl/u-boot-spl.stm32.log 24 25spl/u-boot-spl.stm32: spl/u-boot-spl.bin FORCE 26 $(call if_changed,mkimage) 27 28u-boot-spl.stm32 : spl/u-boot-spl.stm32 29 $(call if_changed,copy) 30