diff options
Diffstat (limited to 'bitbake/lib/bb/utils.py')
-rw-r--r-- | bitbake/lib/bb/utils.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py index 68ca4ef25a..28368f0a60 100644 --- a/bitbake/lib/bb/utils.py +++ b/bitbake/lib/bb/utils.py | |||
@@ -556,6 +556,20 @@ def sha1_file(filename): | |||
556 | import hashlib | 556 | import hashlib |
557 | return _hasher(hashlib.sha1(), filename) | 557 | return _hasher(hashlib.sha1(), filename) |
558 | 558 | ||
559 | def sha384_file(filename): | ||
560 | """ | ||
561 | Return the hex string representation of the SHA384 checksum of the filename | ||
562 | """ | ||
563 | import hashlib | ||
564 | return _hasher(hashlib.sha384(), filename) | ||
565 | |||
566 | def sha512_file(filename): | ||
567 | """ | ||
568 | Return the hex string representation of the SHA512 checksum of the filename | ||
569 | """ | ||
570 | import hashlib | ||
571 | return _hasher(hashlib.sha512(), filename) | ||
572 | |||
559 | def preserved_envvars_exported(): | 573 | def preserved_envvars_exported(): |
560 | """Variables which are taken from the environment and placed in and exported | 574 | """Variables which are taken from the environment and placed in and exported |
561 | from the metadata""" | 575 | from the metadata""" |