scripts: imx-usb-loader: fully read images into memory
imx-usb-loader tries to safe memory by reading the image in chunks.
This is unnecessarily complicated. The images are small, so fully read
them into memory and store them in a single buffer. This makes handling
them a lot easier.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 2ae4056 commit eee4a26680c83bd128087bef4d4bcc0827b168e8
@Sascha Hauer Sascha Hauer authored on 22 Jan 2016
Showing 1 changed file
View
scripts/imx/imx-usb-loader.c