diff options
| author | Chunrong Guo <chunrong.guo@nxp.com> | 2019-08-26 11:36:57 +0800 |
|---|---|---|
| committer | Otavio Salvador <otavio@ossystems.com.br> | 2019-09-04 18:33:08 -0300 |
| commit | 755319eed4fd490eea81ac6fa350c6dadf799f55 (patch) | |
| tree | 27e44914a810207cfe9f4daa97577b4456bd07e8 | |
| parent | 82b3f7ceeed76aed4c12bcf4e93433049f052a41 (diff) | |
| download | meta-freescale-755319eed4fd490eea81ac6fa350c6dadf799f55.tar.gz | |
cst: specify the non default keys pair
Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
| -rw-r--r-- | recipes-devtools/cst/cst_git.bb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/recipes-devtools/cst/cst_git.bb b/recipes-devtools/cst/cst_git.bb index dcac949c9..17fc9b381 100644 --- a/recipes-devtools/cst/cst_git.bb +++ b/recipes-devtools/cst/cst_git.bb | |||
| @@ -9,6 +9,10 @@ RDEPENDS_${PN} = "bash" | |||
| 9 | 9 | ||
| 10 | inherit kernel-arch | 10 | inherit 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 | |||
| 12 | SRC_URI = "git://source.codeaurora.org/external/qoriq/qoriq-components/cst;nobranch=1 \ | 16 | SRC_URI = "git://source.codeaurora.org/external/qoriq/qoriq-components/cst;nobranch=1 \ |
| 13 | " | 17 | " |
| 14 | SRCREV = "e04690ba2ca60f56eb126e01496ed0cacbd838d4" | 18 | SRCREV = "e04690ba2ca60f56eb126e01496ed0cacbd838d4" |
| @@ -21,6 +25,13 @@ PARALLEL_MAKE = "" | |||
| 21 | 25 | ||
| 22 | do_install () { | 26 | do_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 | ||
| 26 | FILES_${PN}-dbg += "${bindir}/cst/.debug" | 37 | FILES_${PN}-dbg += "${bindir}/cst/.debug" |
