usb: gadget: f_sdp: Provide filesize env variable for downloaded images
authorPetr Štetiar <ynezz@true.cz>
Fri, 23 Nov 2018 13:37:52 +0000 (14:37 +0100)
committerMarek Vasut <marex@denx.de>
Fri, 14 Dec 2018 16:59:08 +0000 (17:59 +0100)
commitbb00a015d624f683c66c9e30341f93b678d03d2e
tree75d6339c3885040d9eb22aaded53ed296d74db03
parentd117d8f19b0625f88309e47a8a32c2faa384dddc
usb: gadget: f_sdp: Provide filesize env variable for downloaded images

Currently it's not possible to get filesize of downloaded images and
it's impossible to automate some tasks in scripts. So this patch adds
`filesize` environment variable with size (as hex number in bytes) of
the last successfully downloaded file via `sdp` command.

Cc: Lukasz Majewski <lukma@denx.de>
Cc: Marek Vasut <marex@denx.de>
Cc: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
Reviewed-by: Stefan Agner <stefan.agner@toradex.com>
drivers/usb/gadget/f_sdp.c