[yocto] Checksum of an external file

Alexander Kanavin alexander.kanavin at linux.intel.com
Mon Dec 11 06:55:32 PST 2017


On 12/11/2017 03:19 PM, Anton Gerasimov wrote:
> Unfortunately this doesn't work as expected (the recipe doesn't get
> rebuilt when the file changes, looks like calculate_file_sha256 doesn't
> run unless PATH_TO_FILE has changed) and at the same time if I
> 'cleanall' the recipe and change the file before rebuilding I get a lot
> of "metadata is not deterministic" errors.
> 
> Is there a proper way to do that with bitbake?

I don't think so. You need to write an external script that copies the 
file into the layer, then runs bitbake. The recipe should simply refer 
to the file via SRC_URI file fetcher.

Alex



More information about the yocto mailing list