[PATCH] imx-cst: introduce the recipe for the version 3.3.0


Thomas Perrot
 

Hello Otavio,

On Sat, 2021-08-07 at 08:33 -0300, Otavio Salvador wrote:
Em sáb., 7 de ago. de 2021 às 05:32, Thomas Perrot
<thomas.perrot@...> escreveu:

Signed-off-by: Thomas Perrot <thomas.perrot@...>
Please prepare a PR to github.
I prepared a PR to Github:
https://github.com/Freescale/meta-freescale/pull/842

Best regards,
Thomas




--
Thomas Perrot, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com


Thomas Perrot
 

Hello Fabio,
On Sat, 2021-08-07 at 08:46 -0300, Fabio Estevam wrote:
Hi Thomas,

On Sat, Aug 7, 2021 at 5:32 AM Thomas Perrot <
thomas.perrot@...> wrote:

+SRC_URI = "git://gitlab.apertis.org/pkg/imx-code-signing-
tool.git;protocol=https;tag=debian/3.3.0+dfsg2-1;nobranch=1"
Could you please use CST 3.3.1 instead? It is the latest one available
at:
https://www.nxp.com/webapp/Download?colCode=IMX_CST_TOOL_NEW
I have already tried to use the https link above, but it is necessary
to be identified, otherwise the archive isn't downloaded:

cat work/armv7at2hf-neon-oe-linux-gnueabi/imx-cst/3.3.1-
r0/Download\?colCode\=IMX_CST_TOOL_NEW

</script>
<script type="text/javascript" charset="utf-8">
var i18n_en = { 'We detected that your email is a Freescale
account. Please go to SPS X.500 Directory Services indicated on top of
the page to request for password reset.' : 'We detected that your email
is an employee account. Please go to SPS X.500 Directory Services
indicated on top of the page to request for password reset.','<b>NXP
(Non-legacy Freescale) employees:</b> Please use your WBI ID and
nxp.com password after <a
href="http://password.freescale.net">activating your nxp.com login
here</a>. (VPN access required)' : '<b>If you do NOT have a core ID
(Legacy NXP employees and new employees hired at a legacy NXP
facility):</b> Please use your WBI ID and nxp.com password after <a
href="http://password.freescale.net">activating your nxp.com login
here</a>. (VPN access required)','We detected that your email is a
Freescale account. To reset your password, please go to' : 'We detected
that your email is a NXP account. To reset your password, please go
to','Country' : 'Territory/Country',', Your request to reset your
Freescale.com Password' : ', Your request to reset your NXP.com
Password','<b>Legacy Freescale employees:</b> Please use your core ID
and OneIT password to log in.' : '<b>If you have a core ID (Legacy
Freescale employees and new employees hired at a legacy Freescale
facility):</b> Please use your core ID and OneIT password to log in.'}

i18n.set({lang: 'en', data : i18n_en } );
</script>
<script type="text/javascript" charset="UTF-8">
function getTranslatedText(input){
var translatedValue = i18n._(input);
return translatedValue;
}
</script>
</body>
<footer class="loadnav">
<!-- // /* FOOTER CONTENT GOES HERE */ -->
</footer>



<!--
/data/devs_git_repositories/b56858/ebiz/projects/ebiz/WebContent/NewCoS
ectionalNavRules.json -->
<script type="text/javascript" src="/resources/scripts/nxp-cms/global-
bundle.js"></script>


<script type="text/javascript">
var XMLRequest=getAjaxRequest();
function
openfeedBackBlock(window_title,blockDiagUrl,code,psp_URL,width,height,f
astpreview){
if(document.getElementById('feedBackajaxbox')!=null){

document.getElementById('feedBackajaxbox').contentarea.innerHTML="";
}
var url =
getPreviewUrl('/webapp/sps/components/hotFeedback.jsp?collateralCode=NE
WCO_FEEDBACK_FORM');
ajaxwin=dhtmlwindow.open('feedBackajaxbox',url,window_title,
'width='+width+'px,height='+height+'px,left=172px,top=1px,resize=0,scro
lling=1');
return ajaxwin ;
}

function
openthankYouBlock(window_title,blockDiagUrl,code,psp_URL,width,height,f
astpreview){
var url =
getPreviewUrl('/webapp/sps/components/hotFeedback.jsp?collateralCode=ON
LINE_THANK_YOU');
ajaxwin=dhtmlwindow.open('feedBackajaxbox',url,window_title,
'width='+width+'px,height='+height+'px,left=165px,top=1px,resize=0,scro
lling=1');
return ajaxwin ;
}

function getPreviewUrl(url, fastpreview){
if(fastpreview!=null && (trim(fastpreview) != '' ) ){
return url+'&fastpreview=1' ;
}else{
return url ;
}
}

</script>

Best regards,
Thomas



Fabio Estevam
 

Hi Thomas,

On Sat, Aug 7, 2021 at 5:32 AM Thomas Perrot <thomas.perrot@...> wrote:

+SRC_URI = "git://gitlab.apertis.org/pkg/imx-code-signing-tool.git;protocol=https;tag=debian/3.3.0+dfsg2-1;nobranch=1"
Could you please use CST 3.3.1 instead? It is the latest one available at:
https://www.nxp.com/webapp/Download?colCode=IMX_CST_TOOL_NEW


Otavio Salvador
 

Em sáb., 7 de ago. de 2021 às 05:32, Thomas Perrot
<thomas.perrot@...> escreveu:

Signed-off-by: Thomas Perrot <thomas.perrot@...>
Please prepare a PR to github.


--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750


Thomas Perrot
 

Signed-off-by: Thomas Perrot <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