diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2022-07-23 12:50:00 -0300 |
---|---|---|
committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2022-07-25 22:40:39 +0000 |
commit | dea213f25f1113b5c836739d83ba22a238c75c78 (patch) | |
tree | 59f528026fe92b4dfcf5595fb7f658734279c86f /recipes-devtools/qoriq-cst/qoriq-cst_git.bb | |
parent | 28af4ece686e2dda0ae01258cdfafcc16cfaf77c (diff) | |
download | meta-freescale-dea213f25f1113b5c836739d83ba22a238c75c78.tar.gz |
qoriq-cst: rename cst to qoriq-cst
The QoriQ SoCs use a different cst tool for secure boot than i.MX SoCs
so we should name it with SoC family prefix to avoid confusion.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
(cherry picked from commit 2f26da887f04c639e0e0bb405dfb8f87c174e627)
Diffstat (limited to 'recipes-devtools/qoriq-cst/qoriq-cst_git.bb')
-rw-r--r-- | recipes-devtools/qoriq-cst/qoriq-cst_git.bb | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/recipes-devtools/qoriq-cst/qoriq-cst_git.bb b/recipes-devtools/qoriq-cst/qoriq-cst_git.bb new file mode 100644 index 00000000..ca0f35fb --- /dev/null +++ b/recipes-devtools/qoriq-cst/qoriq-cst_git.bb | |||
@@ -0,0 +1,43 @@ | |||
1 | SUMMARY = "utility for security boot" | ||
2 | SECTION = "cst" | ||
3 | LICENSE = "BSD-3-Clause" | ||
4 | |||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=e959d5d617e33779d0e90ce1d9043eff" | ||
6 | |||
7 | DEPENDS += "openssl qoriq-cst-native" | ||
8 | RDEPENDS:${PN} = "bash" | ||
9 | |||
10 | GENKEYS ?= "${STAGING_BINDIR_NATIVE}/cst/gen_keys" | ||
11 | GENKEYS:class-native = "./gen_keys" | ||
12 | |||
13 | inherit kernel-arch | ||
14 | |||
15 | # specify the non default keys pair for secure boot if needed | ||
16 | #SECURE_PRI_KEY = "/path/srk.pri" | ||
17 | #SECURE_PUB_KEY = "/path/srk.pub" | ||
18 | |||
19 | SRC_URI = "git://source.codeaurora.org/external/qoriq/qoriq-components/cst;nobranch=1 \ | ||
20 | file://0001-tools-Mark-struct-input_field-file_field-extern.patch \ | ||
21 | " | ||
22 | SRCREV = "dfe30d3f05cfe281896482839e57ed49c52f2088" | ||
23 | |||
24 | S = "${WORKDIR}/git" | ||
25 | |||
26 | EXTRA_OEMAKE = 'CC="${CC}" LD="${CC}"' | ||
27 | CFLAGS:append = ' -Wno-deprecated-declarations' | ||
28 | |||
29 | PARALLEL_MAKE = "" | ||
30 | |||
31 | do_install () { | ||
32 | oe_runmake install DESTDIR=${D} BIN_DEST_DIR=${bindir} | ||
33 | |||
34 | if [ -n "${SECURE_PRI_KEY}" ]; then | ||
35 | cp -f ${SECURE_PRI_KEY} ${D}/${bindir}/cst/srk.pri | ||
36 | cp -f ${SECURE_PUB_KEY} ${D}/${bindir}/cst/srk.pub | ||
37 | elif [ ! -f ${D}/${bindir}/cst/srk.pri -o ! ${D}/${bindir}/cst/srk.pub ]; then | ||
38 | cd ${D}/${bindir}/cst && ${GENKEYS} 1024 | ||
39 | fi | ||
40 | } | ||
41 | |||
42 | FILES:${PN}-dbg += "${bindir}/cst/.debug" | ||
43 | BBCLASSEXTEND = "native nativesdk" | ||