]> code.ossystems Code Review - meta-freescale.git/commitdiff
imx-cst: introduce the recipe for the version 3.3.1 842/head
authorThomas Perrot <thomas.perrot@bootlin.com>
Sat, 7 Aug 2021 08:30:14 +0000 (10:30 +0200)
committerThomas Perrot <thomas.perrot@bootlin.com>
Thu, 12 Aug 2021 14:30:45 +0000 (16:30 +0200)
It provides a code signing tool for signing images for i.MX-based NXP processors
using High Assurance Boot (HABv4) library in the internal boot ROM or the
Advanced High Assurance Boot (AHAB) subsystem.

Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com>
dynamic-layers/openembedded-layer/recipes-devtools/cst/imx-cst_3.3.1.bb [new file with mode: 0644]

diff --git a/dynamic-layers/openembedded-layer/recipes-devtools/cst/imx-cst_3.3.1.bb b/dynamic-layers/openembedded-layer/recipes-devtools/cst/imx-cst_3.3.1.bb
new file mode 100644 (file)
index 0000000..004eea9
--- /dev/null
@@ -0,0 +1,30 @@
+SUMMARY = "i.MX code signing tool"
+DESCRIPTION = "Provides software code signing support designed that integrate the HABv4 and AHAB library"
+SECTION = "cst"
+LICENSE = "BSD"
+
+LIC_FILES_CHKSUM = "file://LICENSE.bsd3;md5=1fbcd66ae51447aa94da10cbf6271530"
+
+DEPENDS = "byacc-native flex-native openssl"
+
+SRC_URI = "git://gitlab.apertis.org/pkg/imx-code-signing-tool.git;protocol=https;tag=debian/3.3.1+dfsg-2;nobranch=1"
+
+S = "${WORKDIR}/git"
+
+EXTRA_OEMAKE = 'CC="${CC}" LD="${CC}" AR="${AR}" OBJCOPY="${OBJCOPY}"'
+
+do_compile() {
+    cd ${S}/code/cst
+    oe_runmake build OSTYPE=linux64 ENCRYPTION=yes COPTIONS="${CFLAGS} ${CPPFLAGS}" LDOPTIONS="${LDFLAGS}"
+    cd -
+    oe_runmake -C code/hab_csf_parser COPTS="${CFLAGS} ${CPPFLAGS} ${LDFLAGS}"
+}
+
+do_install () {
+    install -d ${D}${bindir}
+    install -m 755 ${S}/code/cst/code/obj.linux64/cst ${D}${bindir}
+    install -m 755 ${S}/code/cst/code/obj.linux64/srktool ${D}${bindir}
+    install -m 755 ${S}/code/hab_csf_parser/csf_parser ${D}${bindir}
+}
+
+BBCLASSEXTEND = "native nativesdk"