Patchwork [meta-fsl-ppc,22/26] cst: add recipe

login
register
mail settings
Submitter Ting Liu
Date June 27, 2013, 9:25 a.m.
Message ID <1372325114-4423-13-git-send-email-b28495@freescale.com>
Download mbox | patch
Permalink /patch/52441/
State Accepted
Delegated to: Zhenhua Luo
Headers show

Comments

Ting Liu - June 27, 2013, 9:25 a.m.
From: Zhenhua Luo <zhenhua.luo@freescale.com>

cst is the utility for security boot.

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
---
 recipes-tools/cst/cst_git.bb |   29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+), 0 deletions(-)
 create mode 100644 recipes-tools/cst/cst_git.bb

Patch

diff --git a/recipes-tools/cst/cst_git.bb b/recipes-tools/cst/cst_git.bb
new file mode 100644
index 0000000..177f23c
--- /dev/null
+++ b/recipes-tools/cst/cst_git.bb
@@ -0,0 +1,29 @@ 
+DESCRIPTION = "CST Tool"
+SECTION = "cst"
+LICENSE = "BSD"
+
+# TODO: fix license - this file is not a license
+LIC_FILES_CHKSUM = "file://RELEASENOTES;beginline=8;endline=43;md5=5a7b22a2c96b5f94e0498c5f413aa8d3"
+
+DEPENDS += "openssl"
+
+SRC_URI = "git://git.freescale.com/ppc/sdk/cst.git"
+SRCREV = "e4035cbf54ed481147c6ae65c741ef75dc9ec37f"
+
+S = "${WORKDIR}/git"
+
+EXTRA_OEMAKE = 'OPENSSL_LIB_PATH=${STAGING_LIBDIR} OPENSSL_INC_PATH=${STAGING_INCDIR} CC="${CC}" LD="${CC}" LDFLAGS="${LDFLAGS}"'
+
+do_install () {
+	install -d ${D}/${bindir}/cst
+	install -m 755 ${S}/gen_keys ${D}/${bindir}/cst/
+	install -m 755 ${S}/gen_otpmk ${D}/${bindir}/cst/
+	install -m 755 ${S}/uni_cfsign ${D}/${bindir}/cst/
+	install -m 755 ${S}/uni_sign ${D}/${bindir}/cst/
+	cp -rf ${S}/input_files ${D}/${bindir}/cst
+}
+
+BBCLASSEXTEND = "native nativesdk"
+PARALLEL_MAKE = ""
+
+FILES_${PN}-dbg += "${bindir}/cst/.debug"