Skip to content
Snippets Groups Projects
Commit f40f0c00 authored by Michael Büsch's avatar Michael Büsch
Browse files

Zcomax device firmware tool endianness fix

SVN-Revision: 22885
parent fcfe5692
No related branches found
No related tags found
No related merge requests found
...@@ -297,7 +297,7 @@ static int build_fw(void) ...@@ -297,7 +297,7 @@ static int build_fw(void)
/* fill firmware header */ /* fill firmware header */
hdr = (struct fw_header *) p; hdr = (struct fw_header *) p;
hdr->magic = HOST_TO_LE32(MAGIC_FIRMWARE); hdr->magic = HOST_TO_LE32(MAGIC_FIRMWARE);
hdr->length = HOST_TO_LE32(buflen) - sizeof(struct fw_header); hdr->length = HOST_TO_LE32(buflen - sizeof(struct fw_header));
p += sizeof(struct fw_header); p += sizeof(struct fw_header);
/* fill kernel block header */ /* fill kernel block header */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment