简体   繁体   English

如何在Yocto的bbappend文件中覆盖校验和

[英]How to override checksum in a bbappend file in Yocto

I would like to override the checksum for a file without editing the actual bb file. 我想重写文件的校验和而不编辑实际的bb文件。 I have my own meta layer and any way to write a bbappened file and can I override the checksum value? 我有自己的元层,并且可以通过任何方式写入bbappened文件,并且可以覆盖校验和值吗?

The issue here is the original BB file contains bad checksum for the source file and I need to change it without editing the original file. 这里的问题是原始BB文件包含源文件的错误校验和,我需要在不编辑原始文件的情况下进行更改。 But at the build time, bitbake should consider the new checksum which I have provided through the bbappend file via my own layer. 但是在构建时,bitbake应该考虑通过我自己的层通过bbappend文件提供的新校验和。 Is there nay way to do this ? 有没有办法做到这一点?

You should be able to do this in a .bbappend file in your own layer. 您应该能够在自己层的.bbappend文件中执行此操作。 Just add 只需添加

SRC_URI[md5sum] =
SRC_URI[sha256sum] =

in your bbappend-file. 在您的bbappend文件中。

However, you really should update the upstream layer, if the upstream tarball has had their checksum's changed. 但是,如果上游tarball的校验和已更改,则确实应该更新上游层。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM