sha256sum and md5sum value.
Hi All,
I am new to bitbake, I was going through the bitbake documentation to get the value of sha256sum and md5sum into the recipeinfo file from *.bb file.
for example in *.bb file:
SRC_URI[md5sum] = "XXXXXXXX"
SRC_URI[sha256sum] = "YYYYYYYY"
to recipe info file:
LICENSE: MIT
PR: r0
PV: x.x.x.x.x
SHA256SUM: XXXXXXXX
MD5SUM: YYYYYYYY
Can you someone please help me how to get this information into the recipeinfo file?
i tried using below instructionget_name = d.getVarFlag("SRC_URI", 'sha256sum', expand=True) if get_name:
info["SHA256SUM"] = data.getVar("SHA256SUM", d)
but is always prints "SHA256SUM : None". i am not sure what instruction to use for sha256sum or md5sum to log to recipeinfo file
-Kaustubha
All you need to do is d.getVarFlag("SRC_URI", “sha256sum”), that returns the value of the specified flag.
Ross
From: [email protected] <[email protected]> on behalf of kaustubha.s via lists.openembedded.org <[email protected]>
Date: Monday, 13 June 2022 at 09:59
To: [email protected] <[email protected]>
Subject: [bitbake-devel] sha256sum and md5sum value.
Hi All,
I am new to bitbake, I was going through the bitbake documentation to get the value of sha256sum and md5sum into the recipeinfo file from *.bb file.
for example in *.bb file:
SRC_URI[md5sum] = "XXXXXXXX"
SRC_URI[sha256sum] = "YYYYYYYY"
to recipe info file:
LICENSE: MIT
PR: r0
PV: x.x.x.x.x
SHA256SUM: XXXXXXXX
MD5SUM: YYYYYYYY
Can you someone please help me how to get this information into the recipeinfo file?
i tried using below instruction
get_name = d.getVarFlag("SRC_URI", 'sha256sum', expand=True)
if get_name:
info["SHA256SUM"] = data.getVar("SHA256SUM", d)but is always prints "SHA256SUM : None". i am not sure what instruction to use for sha256sum or md5sum to log to recipeinfo file
-Kaustubha
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.