mirror of
https://git.yoctoproject.org/poky
synced 2026-04-25 15:32:13 +02:00
insane.bbclass: Allow hashlib version that only accepts on parameter
Some versions of hashlib don't appear to implement the second FIPS related argument. Detect this and support both versions. (From OE-Core rev: 01af6453baccc926c245c51dda81aba5e15725c5) Signed-off-by: Mark Hatle <mark.hatle@amd.com> Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org> Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 2bbabed51e3aca138486d3feef640f5d3249be40) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
38ae1b6e5f
commit
8c13777e74
@@ -552,7 +552,10 @@ python populate_lic_qa_checksum() {
|
||||
import hashlib
|
||||
lineno = 0
|
||||
license = []
|
||||
m = hashlib.new('MD5', usedforsecurity=False)
|
||||
try:
|
||||
m = hashlib.new('MD5', usedforsecurity=False)
|
||||
except TypeError:
|
||||
m = hashlib.new('MD5')
|
||||
for line in f:
|
||||
lineno += 1
|
||||
if (lineno >= beginline):
|
||||
|
||||
Reference in New Issue
Block a user