summaryrefslogtreecommitdiffstats
path: root/images
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2022-02-20 13:47:19 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2022-02-23 11:15:43 +0100
commitb07c1c88edd3753b8c10ef13b3c6daf78ab88b3f (patch)
treebcdbe9d409d51ea276c1040dd4e56461dbe4aff5 /images
parenteff5c04efa94e581f45f9d5811f3184ddab6ba9c (diff)
downloadbarebox-b07c1c88edd3753b8c10ef13b3c6daf78ab88b3f.tar.gz
barebox-b07c1c88edd3753b8c10ef13b3c6daf78ab88b3f.tar.xz
ARM: stm32mp: build extra barebox-stm32mp-generic-bl33.img
barebox-dt-2nd.img expects being loaded at an offset, so the stack can grow down from entry point. The STM32MP TF-A default is to not have an offset. Avoid this issue by having a stm32mp specific entry point that sets up a 64 byte stack after end of barebox. As it's stm32mp-specific anyway, we can skip the early FDT parsing and ask the SDRAM controller about RAM size. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220220124736.3052502-8-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'images')
-rw-r--r--images/Makefile.stm32mp5
1 files changed, 5 insertions, 0 deletions
diff --git a/images/Makefile.stm32mp b/images/Makefile.stm32mp
index eeb5d9ecf6..fa79e09f95 100644
--- a/images/Makefile.stm32mp
+++ b/images/Makefile.stm32mp
@@ -25,6 +25,11 @@ endef
# --------------------------------------
+# For use as --nt-fw (BL33) in FIP images
+pblb-$(CONFIG_ARCH_STM32MP) += start_stm32mp_bl33
+FILE_barebox-stm32mp-generic-bl33.img = start_stm32mp_bl33.pblb
+image-$(CONFIG_ARCH_STM32MP) += barebox-stm32mp-generic-bl33.img
+
$(call build_stm32mp_image, CONFIG_MACH_STM32MP15XX_DKX, start_stm32mp15xx_dkx, stm32mp15xx-dkx)
$(call build_stm32mp_image, CONFIG_MACH_STM32MP15X_EV1, start_stm32mp15x_ev1, stm32mp15x-ev1)