mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00: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: 2bbabed51e3aca138486d3feef640f5d3249be40) 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>
This commit is contained in:
committed by
Richard Purdie
parent
1582d7d3e9
commit
5f60768030
@@ -555,7 +555,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