waf: fixed embed error on python2

This commit is contained in:
Andrew Tridgell 2021-02-26 09:04:56 +11:00
parent 6d25b02508
commit b137f9e319
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ def embed_file(out, f, idx, embedded_name, uncompressed):
contents += bytes(chr(0xff))
print("Padded %u bytes for %s to %u" % (pad, embedded_name, len(contents)))
crc = crc32(contents)
crc = crc32(bytearray(contents))
write_encode(out, 'static const uint8_t ap_romfs_%u[] = {' % idx)
compressed = tempfile.NamedTemporaryFile()