Re: [yocto] Checksum of an external file

2017-12-11 Thread Anton Gerasimov
> 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. Thank you a lot, that actually works without copying: SRC_URI works with absolute pathes as well. Such a straig

Re: [yocto] Checksum of an external file

2017-12-11 Thread Alexander Kanavin
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 befor

[yocto] Checksum of an external file

2017-12-11 Thread Anton Gerasimov
Hi, my recipe takes a path to a file on user's file system as an input, processes it and stores on the device. Sometimes user wants to update this file and I'd like the recipe to be rebuilt every time the file itself changes, even if the file path didn't. So I had an illusion to understand how ss