diff options
author | Edmund Henniges <eh@emlix.com> | 2020-05-14 20:21:54 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-05-20 15:43:59 +0200 |
commit | 2879373370eb3685cd6622f5d800e9f72ec81df1 (patch) | |
tree | d57b9103755336b550b7e8397dfeb586e728ef02 /common/Kconfig | |
parent | 754f2e0d106d44dc89fdb4edbb54641d9525e62c (diff) | |
download | barebox-2879373370eb3685cd6622f5d800e9f72ec81df1.tar.gz barebox-2879373370eb3685cd6622f5d800e9f72ec81df1.tar.xz |
fastboot: split generic code from USB gadget
The fastboot specification describes other protocols beyond USB. Allow
these to reuse the generic parts of the existing fastboot code when they
are implemented.
Most of the changes in common/fastboot.c are due to the renaming of struct
f_fastboot *f_fb to struct fastboot *fb.
Signed-off-by: Edmund Henniges <eh@emlix.com>
Signed-off-by: Daniel Glöckner <dg@emlix.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/Kconfig')
-rw-r--r-- | common/Kconfig | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/common/Kconfig b/common/Kconfig index 460ac487cb..18796c6888 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -113,6 +113,9 @@ config USBGADGET_START config BOOT bool +config FASTBOOT_BASE + bool + menu "General Settings" config LOCALVERSION @@ -1009,6 +1012,43 @@ config PBL_OPTEE endmenu +if FASTBOOT_BASE + +menu "Android Fastboot" + +config FASTBOOT_SPARSE + bool + select IMAGE_SPARSE + prompt "Enable Fastboot sparse image support" + help + Sparse images are a way for the fastboot protocol to write + images that are bigger than the available memory. If unsure, + say yes here. + +config FASTBOOT_BUF + bool + 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. + +config FASTBOOT_CMD_OEM + bool + prompt "Enable OEM commands" + help + This option enables the fastboot "oem" group of commands. They allow to + executing arbitrary barebox commands and may be disabled in secure + environments. + +endmenu + +endif + endmenu menu "Debugging" |