blob: f7f5b77c417b0891f00c3b5535755f0d387fb413 [file] [log] [blame]
Tom Rini8b0c8a12018-05-06 18:27:01 -04001# SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
Patrick Delaunay85b53972018-03-12 10:46:10 +01002#
3# Copyright (C) 2018, STMicroelectronics - All Rights Reserved
4#
Patrick Delaunay85b53972018-03-12 10:46:10 +01005
Patrick Delaunay5d061412019-02-12 11:44:39 +01006ifndef CONFIG_SPL
Patrick Delaunayba4b8b02021-07-26 11:21:34 +02007INPUTS-$(CONFIG_STM32MP15x_STM32IMAGE) += u-boot.stm32
Patrick Delaunay5d061412019-02-12 11:44:39 +01008else
9ifdef CONFIG_SPL_BUILD
Simon Glassc46090d2020-07-19 13:56:01 -060010INPUTS-y += u-boot-spl.stm32
Patrick Delaunay5d061412019-02-12 11:44:39 +010011endif
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)
Patrick Delaunay85b53972018-03-12 10:46:10 +010020
21MKIMAGEFLAGS_u-boot-spl.stm32 = -T stm32image -a $(CONFIG_SPL_TEXT_BASE) -e $(CONFIG_SPL_TEXT_BASE)
22
Patrick Delaunay1051f1a2019-01-28 11:13:27 +010023spl/u-boot-spl.stm32: MKIMAGEOUTPUT = spl/u-boot-spl.stm32.log
Patrick Delaunay85b53972018-03-12 10:46:10 +010024
Patrick Delaunay1051f1a2019-01-28 11:13:27 +010025spl/u-boot-spl.stm32: spl/u-boot-spl.bin FORCE
Patrick Delaunay85b53972018-03-12 10:46:10 +010026 $(call if_changed,mkimage)
Patrick Delaunay1051f1a2019-01-28 11:13:27 +010027
28u-boot-spl.stm32 : spl/u-boot-spl.stm32
29 $(call if_changed,copy)