summaryrefslogtreecommitdiffstats
path: root/images
diff options
context:
space:
mode:
authorMaik Otto <m.otto@phytec.de>2019-08-21 16:21:47 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-11-12 12:35:01 +0100
commit5f848457fac9c2694796dc6080ae35fb59f16190 (patch)
treeef33a10c2d16cf0614b4f4722cc64b91ba1d3d2c /images
parent0cfac571e28793ab0fe8c1c2b868114f1cd90b5f (diff)
downloadbarebox-5f848457fac9c2694796dc6080ae35fb59f16190.tar.gz
barebox-5f848457fac9c2694796dc6080ae35fb59f16190.tar.xz
Makefile.imx: add build_imx_habv4img for creation of signed/encrypted images
add the function build_imx_habv4img, which based on the prototype of Roland Hieber, for creation of unsigned,signed and encrypted images Signed-off-by: Maik Otto <m.otto@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'images')
-rw-r--r--images/Makefile.imx18
1 files changed, 18 insertions, 0 deletions
diff --git a/images/Makefile.imx b/images/Makefile.imx
index a8f8a9b7d6..3b081fa20c 100644
--- a/images/Makefile.imx
+++ b/images/Makefile.imx
@@ -2,6 +2,24 @@
# barebox image generation Makefile for i.MX images
#
+# params: CONFIG symbol, entry point, flash header path string, board identifier string
+define build_imx_habv4img =
+$(eval
+ifeq ($($(strip $(1))), y)
+ pblb-y += $(strip $(2))
+ CFG_$(strip $(2)).pblb.imximg = $(board)/$(strip $(3)).imxcfg
+ FILE_barebox-$(strip $(4)).img = $(strip $(2)).pblb.imximg
+ FILE_barebox-$(strip $(4))-s.img = $(strip $(2)).pblb.simximg
+ FILE_barebox-$(strip $(4))-us.img = $(strip $(2)).pblb.usimximg
+ FILE_barebox-$(strip $(4))-es.img = $(strip $(2)).pblb.esimximg
+ image-y += barebox-$(strip $(4)).img
+ image-$(CONFIG_HABV4_IMAGE_SIGNED) += barebox-$(strip $(4))-s.img
+ image-$(CONFIG_HABV4_IMAGE_SIGNED_USB) += barebox-$(strip $(4))-us.img
+ image-$(CONFIG_HABV4_IMAGE_SIGNED_ENCRYPTED) += barebox-$(strip $(4))-es.img
+endif
+)
+endef
+
# %.imximg - convert into i.MX image
# ----------------------------------------------------------------