[OE-core] [PATCH] classes/sstate: Update output hash

Richard Purdie richard.purdie at linuxfoundation.org
Tue Jan 15 22:00:36 UTC 2019


On Tue, 2019-01-15 at 13:39 -0600, Joshua Watt wrote:
> Updates the output hash calculation for determining if tasks are
> equivalent. The new algorithm does the following based on feedback:
>  1) All files are printed in a single line tabular format
>  2) Prints the file type and mode in a user-friendly ls-like format
>  3) Includes the file owner and group (by name, not ID). These are
> only
>     included if the task is run under pseudo, since that is the only
>     time they can be consistently determined.
>  4) File size is included for regular files
> 
> Signed-off-by: Joshua Watt <JPEWhacker at gmail.com>
> ---
>  meta/classes/sstate.bbclass | 91 +++++++++++++++++++++++++++++++--
> ----
>  1 file changed, 76 insertions(+), 15 deletions(-)

I've not really looked at the code itself yet but could we turn this
into a function in lib/oe/sstate*.py somewhere please?

I'd really like to start getting some of the python code into strong
function libraries where it makes sense and this lends itself toa 
library function.

Cheers,

Richard



More information about the Openembedded-core mailing list