summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/Kconfig
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-01-30 16:30:43 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-02-09 10:25:37 +0100
commite5098495d4be465d6a93b4bbd9a59257c48ce068 (patch)
tree963ac6423acedc42a5647d2491f00b7a065d4a6d /drivers/usb/gadget/Kconfig
parent31a7e68f1bd45c076262ccba2a5f3f9333c62644 (diff)
downloadbarebox-e5098495d4be465d6a93b4bbd9a59257c48ce068.tar.gz
barebox-e5098495d4be465d6a93b4bbd9a59257c48ce068.tar.xz
usb: gadget: fastboot: Add option to download to a buffer
This adds an option to download the image data to a temporary buffer rather than to a file. While a file is generally the better option, in some special cases a buffer is better for memory usage. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/usb/gadget/Kconfig')
-rw-r--r--drivers/usb/gadget/Kconfig12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig
index e2dc7807a0..b0408e3bbe 100644
--- a/drivers/usb/gadget/Kconfig
+++ b/drivers/usb/gadget/Kconfig
@@ -68,4 +68,16 @@ config USB_GADGET_FASTBOOT_SPARSE
images that are bigger than the available memory. If unsure,
say yes here.
+config USB_GADGET_FASTBOOT_BUF
+ bool
+ depends on USB_GADGET_FASTBOOT
+ prompt "Download files to temporary buffer instead of file"
+ help
+ With this option enabled the fastboot code will download files to a
+ temporary buffer instead of a temporary file. Normally you want to
+ use a file as this also works when your memory is fragmented. However,
+ in some special cases, when the file consumer also better copes with
+ a buffer, then using a buffer might be better.
+
+ Say no here unless you know what you are doing.
endif