diff options
-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 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 | ||
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" |