mx8m: csf.sh: use vars for keys to avoid file edits when signing
authorTim Harvey <tharvey@gateworks.com>
Thu, 15 Jun 2023 15:21:08 +0000 (08:21 -0700)
committerStefano Babic <sbabic@denx.de>
Thu, 13 Jul 2023 09:29:40 +0000 (11:29 +0200)
commitff1dd520243320259b654065821b0f5cdea9f551
treef746b3c59bd3abfab11ce8c7a5f9f5d9792148f7
parent77b5ad0ea3d132412f21daaa997b6249266ff71c
mx8m: csf.sh: use vars for keys to avoid file edits when signing

The csf_spl.txt and csf_fit.txt templates contain file paths which must
be edited for the location of your NXP CST generated key files.

Streamline the process of signing an image by assigning unique var names
to these which can be expended from env variables in the csf.sh script.

The following vars are used:
 SRK_TABLE - full path to SRK_1_2_3_4_table.bin
 CSF_KEY - full path to the CSF Key CSF1_1_sha256_4096_65537_v3_usr_crt.pem
 IMG_KEY - full path to the IMG Key IMG1_1_sha256_4096_65537_v3_usr_crt.pem

Additionally provide an example of running the csf.sh script.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Reviewed-by: Fabio Estevam <festevam@denx.de>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
doc/imx/habv4/csf_examples/mx8m/csf.sh
doc/imx/habv4/csf_examples/mx8m/csf_fit.txt
doc/imx/habv4/csf_examples/mx8m/csf_spl.txt
doc/imx/habv4/guides/mx8m_spl_secure_boot.txt