|
|
|
@ -259,7 +259,7 @@ def write_header(args):
|
|
|
|
args.output.write(pack('I', BOOT_IMAGE_HEADER_V2_SIZE))
|
|
|
|
args.output.write(pack('I', BOOT_IMAGE_HEADER_V2_SIZE))
|
|
|
|
|
|
|
|
|
|
|
|
if args.header_version > 1:
|
|
|
|
if args.header_version > 1:
|
|
|
|
if filesize(args.dtb) == 0:
|
|
|
|
if filesize(args.dtb) == 0 and filesize(args.second) == 0:
|
|
|
|
raise ValueError('DTB image must not be empty.')
|
|
|
|
raise ValueError('DTB image must not be empty.')
|
|
|
|
|
|
|
|
|
|
|
|
# dtb size in bytes
|
|
|
|
# dtb size in bytes
|
|
|
|
|