summaryrefslogtreecommitdiffstats
path: root/images
diff options
context:
space:
mode:
authorRouven Czerwinski <r.czerwinski@pengutronix.de>2019-08-06 07:10:58 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-08-07 09:42:09 +0200
commitb1dcb6a921a5922cd95fdaef72eabfe7ce3f4794 (patch)
treebea5fb05d3743c83ed179b949326fe91177bcc74 /images
parent3c857568f1cc6805cd24200ee7598ecbf35d2632 (diff)
downloadbarebox-b1dcb6a921a5922cd95fdaef72eabfe7ce3f4794.tar.gz
barebox-b1dcb6a921a5922cd95fdaef72eabfe7ce3f4794.tar.xz
scripts: imx: support signing for i.MX8MQ
Implement signing of the PBL for i.MX8MQ. The imagesize is also modified to i.MX8MQ to only contain the PBL. This obsoletes the max_load_size, which is kept for other boards currently using it. Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'images')
-rw-r--r--images/Makefile.imx8
1 files changed, 8 insertions, 0 deletions
diff --git a/images/Makefile.imx b/images/Makefile.imx
index 42c194ba63..76beccb5d8 100644
--- a/images/Makefile.imx
+++ b/images/Makefile.imx
@@ -8,6 +8,14 @@
$(obj)/%.imximg: $(obj)/% FORCE
$(call if_changed,imx_image,$(CFG_$(@F)),)
+$(obj)/%.pimximg: $(obj)/% FORCE
+ $(call if_changed,imx_image,$(CFG_$(patsubst %.pimximg,%.imximg,$(@F))),\
+ -p $($(patsubst $(obj)/%.pblb,PBL_MEMORY_SIZE_%,$<)))
+
+$(obj)/%.psimximg: $(obj)/% FORCE
+ $(call if_changed,imx_image,$(CFG_$(patsubst %.psimximg,%.imximg,$(@F))),-s \
+ -p $($(patsubst $(obj)/%.pblb,PBL_MEMORY_SIZE_%,$<)))
+
$(obj)/%.simximg: $(obj)/% FORCE
$(call if_changed,imx_image,$(CFG_$(patsubst %.simximg,%.imximg,$(@F))),-s)