summaryrefslogtreecommitdiffstats
path: root/include/filetype.h
diff options
context:
space:
mode:
authorMarkus Pargmann <mpa@pengutronix.de>2016-02-17 12:28:19 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2016-02-18 16:10:11 +0100
commit24ff0ab0fa0354d74c03c6a1cfddb05c52d9d113 (patch)
tree99bceacbbcd52441e962c5cf6c52b44eb5093139 /include/filetype.h
parent7290110f1a6f4643beb7695ba7d26e472f8290c6 (diff)
downloadbarebox-24ff0ab0fa0354d74c03c6a1cfddb05c52d9d113.tar.gz
fastboot: Fix usage of ubiformat for UBI image transfers
Currently all fastboot flash commands with UBI images are handled by a final call to 'ubiformat'. This only makes sense for flash commands where the target file is a mtd device. If we just want to transfer a UBI image we would expect a simple copy to the correct location. This patch checks if the destination file is a MTD device by opening it and calling an ioctl MEMGETINFO. Only for MTD devices, ubiformat is called. Signed-off-by: Markus Pargmann <mpa@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/filetype.h')
0 files changed, 0 insertions, 0 deletions