Peter, Ross

On 1/19/22 1:56 PM, Peter Bergin wrote:
> Hi,
>
> On 2022-01-19 13:16, Michael Opdenacker wrote:
>> Greetings,
>>
>> I reused a simple "hello" recipe and added a non-matching checksum to
>> it:
>>
>> ...
>> SRC_URI = "file://helloworld.c"
>> SRC_URI[md5sum] = "34f0efd76b4f18888888888833cdd129"
>> ...
>>
>> The rest of the recipe comes from
>> https://git.openembedded.org/openembedded-core/tree/meta-skeleton/recipes-skeleton/hello-single.
>>
>>
>> Why doesn't Bitbake stop, reporting that the checksum doesn't match the
>> source file?
>> Anyway, why does the recipe build without a checksum? Shouldn't
>> checksums be mandatory?
>
> No they are not mandatory for all fetchers. They are only used for
> content downloaded from non-local archives.
> https://docs.yoctoproject.org/bitbake/bitbake-user-manual/bitbake-user-manual-fetching.html#the-download-fetch
>
>
> https://github.com/openembedded/bitbake/blob/32180d5057c818a69987aada482e82acf3c72ef2/lib/bb/fetch2/__init__.py#L1268
>
>
> ^^ here you can see the selection of URI's that automatically needs a
> checksum.


Thanks for your replies. This all makes perfect sense then.
Thanks again
Michael.

-- 
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#55912): https://lists.yoctoproject.org/g/yocto/message/55912
Mute This Topic: https://lists.yoctoproject.org/mt/88532562/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to