Tom Rini | 8b0c8a1 | 2018-05-06 18:27:01 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause |
Patrick Delaunay | 85b5397 | 2018-03-12 10:46:10 +0100 | [diff] [blame] | 2 | # |
| 3 | # Copyright (C) 2018, STMicroelectronics - All Rights Reserved |
| 4 | # |
Patrick Delaunay | 85b5397 | 2018-03-12 10:46:10 +0100 | [diff] [blame] | 5 | |
Patrick Delaunay | 5d06141 | 2019-02-12 11:44:39 +0100 | [diff] [blame] | 6 | ifndef CONFIG_SPL |
Patrick Delaunay | ba4b8b0 | 2021-07-26 11:21:34 +0200 | [diff] [blame] | 7 | INPUTS-$(CONFIG_STM32MP15x_STM32IMAGE) += u-boot.stm32 |
Patrick Delaunay | 5d06141 | 2019-02-12 11:44:39 +0100 | [diff] [blame] | 8 | else |
| 9 | ifdef CONFIG_SPL_BUILD |
Simon Glass | c46090d | 2020-07-19 13:56:01 -0600 | [diff] [blame] | 10 | INPUTS-y += u-boot-spl.stm32 |
Patrick Delaunay | 5d06141 | 2019-02-12 11:44:39 +0100 | [diff] [blame] | 11 | endif |
| 12 | endif |
| 13 | |
| 14 | MKIMAGEFLAGS_u-boot.stm32 = -T stm32image -a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_TEXT_BASE) |
| 15 | |
| 16 | u-boot.stm32: MKIMAGEOUTPUT = u-boot.stm32.log |
| 17 | |
| 18 | u-boot.stm32: u-boot.bin FORCE |
| 19 | $(call if_changed,mkimage) |
Patrick Delaunay | 85b5397 | 2018-03-12 10:46:10 +0100 | [diff] [blame] | 20 | |
| 21 | MKIMAGEFLAGS_u-boot-spl.stm32 = -T stm32image -a $(CONFIG_SPL_TEXT_BASE) -e $(CONFIG_SPL_TEXT_BASE) |
| 22 | |
Patrick Delaunay | 1051f1a | 2019-01-28 11:13:27 +0100 | [diff] [blame] | 23 | spl/u-boot-spl.stm32: MKIMAGEOUTPUT = spl/u-boot-spl.stm32.log |
Patrick Delaunay | 85b5397 | 2018-03-12 10:46:10 +0100 | [diff] [blame] | 24 | |
Patrick Delaunay | 1051f1a | 2019-01-28 11:13:27 +0100 | [diff] [blame] | 25 | spl/u-boot-spl.stm32: spl/u-boot-spl.bin FORCE |
Patrick Delaunay | 85b5397 | 2018-03-12 10:46:10 +0100 | [diff] [blame] | 26 | $(call if_changed,mkimage) |
Patrick Delaunay | 1051f1a | 2019-01-28 11:13:27 +0100 | [diff] [blame] | 27 | |
| 28 | u-boot-spl.stm32 : spl/u-boot-spl.stm32 |
| 29 | $(call if_changed,copy) |