]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ti-u-boot/ti-u-boot.git/commit
tools: socfpgaimage: update padding flow
authorLey Foon Tan <ley.foon.tan@intel.com>
Wed, 13 Jan 2021 10:53:05 +0000 (18:53 +0800)
committerLey Foon Tan <ley.foon.tan@intel.com>
Fri, 15 Jan 2021 09:48:39 +0000 (17:48 +0800)
commit40551cf99c237f93d9e0e07b6dd8f31b3868a0f0
treecb980ab19def72fe9a0661f1639f7e2e5afb9e4b
parent53b59290c59a4b699d829655987d1b96e4810aaf
tools: socfpgaimage: update padding flow

The existing socfpgaimage always pads the image to the maximum size of
OCRAM size. This will break in the encryption flow where it expects the
image to be un-padded. The encryption tool will do the encryption for
the whole image and append the signature key at end of the image.
The signature key will append to beyond the size of OCRAM if the image
is padded with the maximum size before encryption.

Move the padding step from socfpgaimage to Makefile and pads with objcopy
command.

socfpgaimage will pad the image with 16 bytes aligned (including CRC word),
this is a requirement in encryption flow.

Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
Makefile
tools/socfpgaimage.c