loader/u-boot: fix alignment of uimage components.

The "blobs" in a U-Boot uimage are aligned at 4 bytes, which we
did not take into account. Found this when adding a 3rd blob
containing the Flattened Device Tree for ARM.
This commit is contained in:
Ithamar R. Adema 2013-09-17 02:42:58 +02:00
parent c21a3b20c9
commit 7418443d12

View File

@ -55,7 +55,7 @@ image_multi_getimg(struct image_header *image, uint32 idx, uint32 *data, uint32
*size = ntohl(sizes[i]);
return true;
}
base += ntohl(sizes[i]);
base += (ntohl(sizes[i]) + 3) & ~3;
}
return false;
}