2018-05-06 22:27:01 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
|
2018-03-12 09:46:10 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2018, STMicroelectronics - All Rights Reserved
|
|
|
|
#
|
|
|
|
|
2019-02-12 10:44:39 +00:00
|
|
|
ifndef CONFIG_SPL
|
2020-07-19 19:56:01 +00:00
|
|
|
INPUTS-y += u-boot.stm32
|
2019-02-12 10:44:39 +00:00
|
|
|
else
|
|
|
|
ifdef CONFIG_SPL_BUILD
|
2020-07-19 19:56:01 +00:00
|
|
|
INPUTS-y += u-boot-spl.stm32
|
2019-02-12 10:44:39 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
MKIMAGEFLAGS_u-boot.stm32 = -T stm32image -a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_TEXT_BASE)
|
|
|
|
|
|
|
|
u-boot.stm32: MKIMAGEOUTPUT = u-boot.stm32.log
|
|
|
|
|
|
|
|
u-boot.stm32: u-boot.bin FORCE
|
|
|
|
$(call if_changed,mkimage)
|
2018-03-12 09:46:10 +00:00
|
|
|
|
|
|
|
MKIMAGEFLAGS_u-boot-spl.stm32 = -T stm32image -a $(CONFIG_SPL_TEXT_BASE) -e $(CONFIG_SPL_TEXT_BASE)
|
|
|
|
|
2019-01-28 10:13:27 +00:00
|
|
|
spl/u-boot-spl.stm32: MKIMAGEOUTPUT = spl/u-boot-spl.stm32.log
|
2018-03-12 09:46:10 +00:00
|
|
|
|
2019-01-28 10:13:27 +00:00
|
|
|
spl/u-boot-spl.stm32: spl/u-boot-spl.bin FORCE
|
2018-03-12 09:46:10 +00:00
|
|
|
$(call if_changed,mkimage)
|
2019-01-28 10:13:27 +00:00
|
|
|
|
|
|
|
u-boot-spl.stm32 : spl/u-boot-spl.stm32
|
|
|
|
$(call if_changed,copy)
|