All of lore.kernel.org
 help / color / mirror / Atom feed
* sha256sum and md5sum value.
@ 2022-06-10 22:04 kaustubha.s
  2022-06-13  9:03 ` [bitbake-devel] " Ross Burton
  0 siblings, 1 reply; 2+ messages in thread
From: kaustubha.s @ 2022-06-10 22:04 UTC (permalink / raw)
  To: bitbake-devel

[-- Attachment #1: Type: text/plain, Size: 747 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 2701 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [bitbake-devel] sha256sum and md5sum value.
  2022-06-10 22:04 sha256sum and md5sum value kaustubha.s
@ 2022-06-13  9:03 ` Ross Burton
  0 siblings, 0 replies; 2+ messages in thread
From: Ross Burton @ 2022-06-13  9:03 UTC (permalink / raw)
  To: kaustubha.s, bitbake-devel

[-- Attachment #1: Type: text/plain, Size: 1558 bytes --]

All you need to do is d.getVarFlag("SRC_URI", “sha256sum”), that returns the value of the specified flag.

Ross

From: bitbake-devel@lists.openembedded.org <bitbake-devel@lists.openembedded.org> on behalf of kaustubha.s via lists.openembedded.org <kaustubha.s=gmail.com@lists.openembedded.org>
Date: Monday, 13 June 2022 at 09:59
To: bitbake-devel@lists.openembedded.org <bitbake-devel@lists.openembedded.org>
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.

[-- Attachment #2: Type: text/html, Size: 6377 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-06-13  9:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-10 22:04 sha256sum and md5sum value kaustubha.s
2022-06-13  9:03 ` [bitbake-devel] " Ross Burton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.