mx7_common: add secure boot support
authorGary Bisson <gary.bisson@boundarydevices.com>
Thu, 25 Aug 2016 17:03:19 +0000 (19:03 +0200)
committerStefano Babic <sbabic@denx.de>
Mon, 17 Oct 2016 07:05:33 +0000 (09:05 +0200)
Selecting the proper options to enable the build of the HAB tools.

Note, this support is disabled by default, one will have to select
the SECURE_BOOT configuration through menuconfig to enable it.

See doc/README.mxc_hab for more details.

Also remove duplicate options from board config headers.

Cc: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
include/configs/colibri_imx7.h
include/configs/mx7_common.h
include/configs/mx7dsabresd.h

index 55d8fcf4d422a67ff6a1953f01deb738711209a9..68d1661a38efd17dc79a35bf88a4055f12f92ae8 100644 (file)
 /* Size of malloc() pool */
 #define CONFIG_SYS_MALLOC_LEN          (32 * SZ_1M)
 
-/* Uncomment to enable secure boot support */
-/* #define CONFIG_SECURE_BOOT */
-#define CONFIG_CSF_SIZE                        0x4000
-
 #define CONFIG_CMD_BMODE
 
 /* Network */
index 748029c26a6d7802d5cbf52f763aef05d705e7ff..06452288ba2d34107b0d7ff54da71d800e86bb8d 100644 (file)
 
 #define CONFIG_ARMV7_SECURE_BASE       0x00900000
 
+/* Secure boot (HAB) support */
+#ifdef CONFIG_SECURE_BOOT
+#define CONFIG_CSF_SIZE                        0x2000
+#define CONFIG_SYS_FSL_SEC_COMPAT      4
+#define CONFIG_FSL_CAAM
+#define CONFIG_CMD_DEKBLOB
+#define CONFIG_SYS_FSL_SEC_LE
+#endif
+
 #endif
index 8759685c1d7cace3650e2c640518365d13272b7c..4d65b1927437f1c31da8e145fb6d55512ec71b45 100644 (file)
 #define CONFIG_BOARD_EARLY_INIT_F
 #define CONFIG_BOARD_LATE_INIT
 
-/* Uncomment to enable secure boot support */
-/* #define CONFIG_SECURE_BOOT */
-#define CONFIG_CSF_SIZE                        0x4000
-
 /* Network */
 #define CONFIG_FEC_MXC
 #define CONFIG_MII