Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by mx.groups.io with SMTP id smtpd.web09.4274.1628325141379573854 for ; Sat, 07 Aug 2021 01:32:22 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: bootlin.com, ip: 217.70.183.198, mailfrom: thomas.perrot@bootlin.com) Received: (Authenticated sender: thomas.perrot@bootlin.com) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 332DFC0003; Sat, 7 Aug 2021 08:32:18 +0000 (UTC) From: "Thomas Perrot" To: meta-freescale@lists.yoctoproject.org Cc: Thomas Perrot Subject: [PATCH] imx-cst: introduce the recipe for the version 3.3.0 Date: Sat, 7 Aug 2021 10:30:14 +0200 Message-Id: <20210807083014.768204-1-thomas.perrot@bootlin.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Perrot --- .../recipes-devtools/cst/imx-cst_3.3.0.bb | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 dynamic-layers/openembedded-layer/recipes-devtools/cst/imx-cst_3.3.0.bb diff --git a/dynamic-layers/openembedded-layer/recipes-devtools/cst/imx-cst_3.3.0.bb b/dynamic-layers/openembedded-layer/recipes-devtools/cst/imx-cst_3.3.0.bb new file mode 100644 index 000000000000..3ba04c8b3d3c --- /dev/null +++ b/dynamic-layers/openembedded-layer/recipes-devtools/cst/imx-cst_3.3.0.bb @@ -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.0+dfsg2-1;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" -- 2.31.1