summaryrefslogtreecommitdiffstats
path: root/images
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2019-08-15 10:58:11 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-08-15 10:58:11 +0200
commita3e62ffc7341254fd754886e560865556bc731c8 (patch)
tree927d7536f9a66998b807d8943b05f3242dab6dd2 /images
parenta6aab0ebab471e91beb4e14c2d305b326ac18928 (diff)
parentd15760e59897f71252294b2bea8fe986efdcb1b8 (diff)
downloadbarebox-a3e62ffc7341254fd754886e560865556bc731c8.tar.gz
barebox-a3e62ffc7341254fd754886e560865556bc731c8.tar.xz
Merge branch 'for-next/stm32'
Diffstat (limited to 'images')
-rw-r--r--images/Makefile.stm32mp15
1 files changed, 13 insertions, 2 deletions
diff --git a/images/Makefile.stm32mp b/images/Makefile.stm32mp
index c49b1d72b7..910e029a5b 100644
--- a/images/Makefile.stm32mp
+++ b/images/Makefile.stm32mp
@@ -1,8 +1,19 @@
# SPDX-License-Identifier: GPL-2.0-or-later
#
-# barebox image generation Makefile for STMicroelectronics MP1
+# barebox image generation Makefile for STMicroelectronics MP
#
+# %.stm32 - convert into STM32MP image
+# --------------------------------------
+
+$(obj)/%.stm32: $(obj)/% FORCE
+ $(call if_changed,stm32_image)
+
+STM32MP1_OPTS = -a 0xc0100000 -e 0xc0100000 -v1
+
+# --------------------------------------
+
pblb-$(CONFIG_MACH_STM32MP157C_DK2) += start_stm32mp157c_dk2
-FILE_barebox-stm32mp157c-dk2.img = start_stm32mp157c_dk2.pblb
+FILE_barebox-stm32mp157c-dk2.img = start_stm32mp157c_dk2.pblb.stm32
+OPTS_start_stm32mp157c_dk2.pblb.stm32 = $(STM32MP1_OPTS)
image-$(CONFIG_MACH_STM32MP157C_DK2) += barebox-stm32mp157c-dk2.img