1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-25 08:13:20 +02:00

Zcomax device firmware tool endianness fix

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22885 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
mb 2010-09-04 05:40:56 +00:00
parent 217d24ebbd
commit 5fd261fc89

View File

@ -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 */