aboutsummaryrefslogtreecommitdiff
path: root/Kconfig
diff options
context:
space:
mode:
authorAndreas Dannenberg <dannenberg@ti.com>2016-07-27 12:12:39 -0500
committerTom Rini <trini@konsulko.com>2016-08-12 09:22:18 -0400
commiteba3fbd6a12b1c4a75c24135535075f0d0fb8074 (patch)
treec6749d26585cd6448d764872fb606bfad99c1c40 /Kconfig
parentb25732c22beccb5a2ce3ec4174ea084ba0e176ab (diff)
downloadu-boot-eba3fbd6a12b1c4a75c24135535075f0d0fb8074.zip
u-boot-eba3fbd6a12b1c4a75c24135535075f0d0fb8074.tar.gz
u-boot-eba3fbd6a12b1c4a75c24135535075f0d0fb8074.tar.bz2
common: image: Add support for post-processing of images
This commit allows injecting a board/platform/device-specific post- processing function into the FIT image data loading process, which can include modifying the size and altering the starting source address of an image data artifact. This might be desired to do things like strip headers or footers attached to the images before they were packaged into the FIT, or to perform operations such as decryption or authentication. Introduce new configuration option CONFIG_FIT_IMAGE_POST_PROCESS to allow controlling this feature. If enabled, a platform-specific post- process function must be provided. Signed-off-by: Andreas Dannenberg <dannenberg@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'Kconfig')
-rw-r--r--Kconfig14
1 files changed, 14 insertions, 0 deletions
diff --git a/Kconfig b/Kconfig
index 1119b19..cb5af5b 100644
--- a/Kconfig
+++ b/Kconfig
@@ -344,6 +344,20 @@ config SPL_FIT_IMAGE_POST_PROCESS
injected into the FIT creation (i.e. the blobs would have been pre-
processed before being added to the FIT image).
+config FIT_IMAGE_POST_PROCESS
+ bool "Enable post-processing of FIT artifacts after loading by U-Boot"
+ depends on FIT && TI_SECURE_DEVICE
+ help
+ Allows doing any sort of manipulation to blobs after they got extracted
+ from FIT images like stripping off headers or modifying the size of the
+ blob, verification, authentication, decryption etc. in a platform or
+ board specific way. In order to use this feature a platform or board-
+ specific implementation of board_fit_image_post_process() must be
+ provided. Also, anything done during this post-processing step would
+ need to be comprehended in how the images were prepared before being
+ injected into the FIT creation (i.e. the blobs would have been pre-
+ processed before being added to the FIT image).
+
config SYS_CLK_FREQ
depends on ARC || ARCH_SUNXI
int "CPU clock frequency"