diff options
author | Bastian Krause <bst@pengutronix.de> | 2020-05-15 16:26:29 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2020-05-15 17:22:07 +0200 |
commit | 62b473be8da55fdc020c630004efab881c78b9d4 (patch) | |
tree | eecd429f4fa338bd4584ca5baa0cf9b6b8d8e6bd | |
parent | 6c024da4d92217c468983d4a8bd8c3e252d36af8 (diff) | |
download | ptxdist-62b473be8da55fdc020c630004efab881c78b9d4.tar.gz ptxdist-62b473be8da55fdc020c630004efab881c78b9d4.tar.xz |
ptxd_lib_imx_hab: fix srk fuse file and table generation
srktool's help text states "certificate filenames must be separated by
a ',' with no spaces". Line continuating using "\" with the next line
being indented leads to a space being inserted between the SRK2
certificate and the SRK3 certificate.
srktool does not fail, but ignores everything after the space silently.
Thus only the first two certicates end up in the fuse file and table.
Fix this by specifying all certs on a single line.
Signed-off-by: Bastian Krause <bst@pengutronix.de>
Message-Id: <20200515142641.812-4-bst@pengutronix.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | scripts/lib/ptxd_lib_imx_hab.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/lib/ptxd_lib_imx_hab.sh b/scripts/lib/ptxd_lib_imx_hab.sh index 8be376ff1..034bf82b2 100644 --- a/scripts/lib/ptxd_lib_imx_hab.sh +++ b/scripts/lib/ptxd_lib_imx_hab.sh @@ -43,8 +43,7 @@ ptxd_make_imx_habv4_gen_table_impl() { --table "${table_bin}" \ --efuses "${srk_fuse_bin}" \ --digest sha256 \ - --certs ${tmpdir}/srk1.pem,${tmpdir}/srk2.pem,\ - ${tmpdir}/srk3.pem,${tmpdir}/srk4.pem + --certs ${tmpdir}/srk1.pem,${tmpdir}/srk2.pem,${tmpdir}/srk3.pem,${tmpdir}/srk4.pem } export -f ptxd_make_imx_habv4_gen_table_impl |