summaryrefslogtreecommitdiffstats
path: root/recipes-devtools
diff options
context:
space:
mode:
authorChunrong Guo <chunrong.guo@nxp.com>2019-08-26 11:36:57 +0800
committerOtavio Salvador <otavio@ossystems.com.br>2019-09-04 18:33:08 -0300
commit755319eed4fd490eea81ac6fa350c6dadf799f55 (patch)
tree27e44914a810207cfe9f4daa97577b4456bd07e8 /recipes-devtools
parent82b3f7ceeed76aed4c12bcf4e93433049f052a41 (diff)
downloadmeta-freescale-755319eed4fd490eea81ac6fa350c6dadf799f55.tar.gz
cst: specify the non default keys pair
Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
Diffstat (limited to 'recipes-devtools')
-rw-r--r--recipes-devtools/cst/cst_git.bb11
1 files changed, 11 insertions, 0 deletions
diff --git a/recipes-devtools/cst/cst_git.bb b/recipes-devtools/cst/cst_git.bb
index dcac949c..17fc9b38 100644
--- a/recipes-devtools/cst/cst_git.bb
+++ b/recipes-devtools/cst/cst_git.bb
@@ -9,6 +9,10 @@ RDEPENDS_${PN} = "bash"
9 9
10inherit kernel-arch 10inherit kernel-arch
11 11
12# specify the non default keys pair for secure boot if needed
13#SECURE_PRI_KEY = "/path/srk.pri"
14#SECURE_PUB_KEY = "/path/srk.pub"
15
12SRC_URI = "git://source.codeaurora.org/external/qoriq/qoriq-components/cst;nobranch=1 \ 16SRC_URI = "git://source.codeaurora.org/external/qoriq/qoriq-components/cst;nobranch=1 \
13" 17"
14SRCREV = "e04690ba2ca60f56eb126e01496ed0cacbd838d4" 18SRCREV = "e04690ba2ca60f56eb126e01496ed0cacbd838d4"
@@ -21,6 +25,13 @@ PARALLEL_MAKE = ""
21 25
22do_install () { 26do_install () {
23 oe_runmake install DESTDIR=${D} BIN_DEST_DIR=${bindir} 27 oe_runmake install DESTDIR=${D} BIN_DEST_DIR=${bindir}
28 if [ -n "${SECURE_PRI_KEY}" ]; then
29 cp -f ${SECURE_PRI_KEY} ${D}/${bindir}/cst/srk.pri
30 cp -f ${SECURE_PUB_KEY} ${D}/${bindir}/cst/srk.pub
31 elif [ ! -f ${D}/${bindir}/cst/srk.pri -o ! ${D}/${bindir}/cst/srk.pub ]; then
32 cd ${D}/${bindir}/cst && ./gen_keys 1024
33 fi
34
24} 35}
25 36
26FILES_${PN}-dbg += "${bindir}/cst/.debug" 37FILES_${PN}-dbg += "${bindir}/cst/.debug"