mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-26 11:58:52 +09:00
![Patrick Delaunay](/assets/img/avatar_default.png)
Add support of trusted boot, using TF-A as first stage bootloader, The boot sequence is BootRom >=> TF-A.stm32 (clock & DDR) >=> U-Boot.stm32 The TF-A monitor provides secure monitor with support of SMC - proprietary to manage secure devices (BSEC for example) - PSCI for power The same device tree is used for STMicroelectronics boards with basic boot and with trusted boot. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
30 lines
738 B
Makefile
30 lines
738 B
Makefile
# SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
|
|
#
|
|
# Copyright (C) 2018, STMicroelectronics - All Rights Reserved
|
|
#
|
|
|
|
ifndef CONFIG_SPL
|
|
ALL-y += u-boot.stm32
|
|
else
|
|
ifdef CONFIG_SPL_BUILD
|
|
ALL-y += u-boot-spl.stm32
|
|
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)
|
|
|
|
MKIMAGEFLAGS_u-boot-spl.stm32 = -T stm32image -a $(CONFIG_SPL_TEXT_BASE) -e $(CONFIG_SPL_TEXT_BASE)
|
|
|
|
spl/u-boot-spl.stm32: MKIMAGEOUTPUT = spl/u-boot-spl.stm32.log
|
|
|
|
spl/u-boot-spl.stm32: spl/u-boot-spl.bin FORCE
|
|
$(call if_changed,mkimage)
|
|
|
|
u-boot-spl.stm32 : spl/u-boot-spl.stm32
|
|
$(call if_changed,copy)
|