mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/4] Makefile-imx: replace static variant to dynamic for signing images
@ 2019-05-24 11:32 Maik Otto
  2019-05-24 11:32 ` [PATCH 2/4] imx6, imx7, imx8: changing hardcoded suffix to variable Maik Otto
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Maik Otto @ 2019-05-24 11:32 UTC (permalink / raw)
  To: barebox; +Cc: Maik Otto

Insert in the Kconfig the selection for the build type signed, usb signed,
encrypted/signed and  unsigned as basic for the replacement the static
variant in the Makefile.imx

Signed-off-by: Maik Otto <m.otto@phytec.de>
---
 arch/arm/mach-imx/Kconfig | 25 +++++++++++++++++++++++++
 images/Makefile.imx       |  1 +
 2 files changed, 26 insertions(+)

diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
index 71d37ce..fdb4239 100644
--- a/arch/arm/mach-imx/Kconfig
+++ b/arch/arm/mach-imx/Kconfig
@@ -845,6 +845,24 @@ config HABV4_IMG_CRT_PEM
 
 endif
 
+if HABV4
+
+choice
+	prompt "Select Building Signed/Encrypted Bootloader"
+
+config HABV4_IMAGE_SIGNED
+	bool "build signed images"
+
+config HABV4_IMAGE_SIGNED_USB
+	bool "build signed images and signed USB images"
+
+config HABV4_IMAGE_SIGNED_ENCRYPTED
+	bool "build signed encrypted images"
+
+endchoice
+
+endif
+
 config HABV3
 	tristate "HABv3 support"
 	select HAB
@@ -870,6 +888,13 @@ config HABV3_IMG_CRT_DER
 
 endif
 
+config IMX_IMG_SUFFIX
+	string
+	default "simximg" if HABV4_IMAGE_SIGNED
+	default "uimximg" if HABV4_IMAGE_SIGNED_USB
+	default "esimximg" if HABV4_IMAGE_SIGNED_ENCRYPTED
+	default "imximg"
+
 endmenu
 
 endif
diff --git a/images/Makefile.imx b/images/Makefile.imx
index e6f741c..0824b8c 100644
--- a/images/Makefile.imx
+++ b/images/Makefile.imx
@@ -22,6 +22,7 @@ $(obj)/%.img.dek: $(obj)/$$(FILE_$$(@F))
 	$(Q)if [ -z $(FILE_$(@F)) ]; then echo "FILE_$(@F) empty!"; false; fi
 	$(call if_changed,shipped)
 
+imximg_suffix := $(patsubst "%",%,${CONFIG_IMX_IMG_SUFFIX})
 # ----------------------- i.MX25 based boards ---------------------------
 pblb-$(CONFIG_MACH_TX25) += start_imx25_karo_tx25
 FILE_barebox-karo-tx25.img = start_imx25_karo_tx25.pblb
-- 
2.7.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-06-04 15:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-24 11:32 [PATCH 1/4] Makefile-imx: replace static variant to dynamic for signing images Maik Otto
2019-05-24 11:32 ` [PATCH 2/4] imx6, imx7, imx8: changing hardcoded suffix to variable Maik Otto
2019-05-24 11:32 ` [PATCH 3/4] i.mx6: signed boot: add habv4-imx6-gencsf.h to the flash header of the PHYTEC boards Maik Otto
2019-06-04 15:11   ` Bastian Krause
2019-05-24 11:32 ` [PATCH 4/4] imx6: added fit image signature to the devicetree for " Maik Otto
2019-05-24 12:55 ` [PATCH 1/4] Makefile-imx: replace static variant to dynamic for signing images Rouven Czerwinski
2019-05-27 13:08   ` Maik Otto
2019-05-28  6:36     ` Rouven Czerwinski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox