diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2020-06-11 20:52:18 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-06-18 14:45:56 +0200 |
commit | fc02309887efe3d88e598f9079bf48f63427bcb5 (patch) | |
tree | a0476e7dfdedf434cb1e4baba3054fc783ded08a /include | |
parent | 5e2ebdbcbf07d045583a36523770cb2eb42cafee (diff) | |
download | barebox-fc02309887efe3d88e598f9079bf48f63427bcb5.tar.gz barebox-fc02309887efe3d88e598f9079bf48f63427bcb5.tar.xz |
fastboot: Drop support for downloading to buffer
The option to download to a buffer instead of a file was introduced
because in some workloads it is required to have a contiguous image
in memory. With recent changes now ramfs can provide such a buffer
via memmap API even when it downloaded the data to a file. This makes
the explicit download to buffer option unnecessary, so remove it.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/fastboot.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/fastboot.h b/include/fastboot.h index b3e7155efa..d33f9d1851 100644 --- a/include/fastboot.h +++ b/include/fastboot.h @@ -22,9 +22,8 @@ struct fastboot { struct file_list *files; int (*cmd_exec)(struct fastboot *fb, const char *cmd); int (*cmd_flash)(struct fastboot *fb, struct file_list_entry *entry, - const char *filename, const void *buf, size_t len); + const char *filename, size_t len); int download_fd; - void *buf; char *tempname; bool active; @@ -44,7 +43,7 @@ struct fastboot_opts { bool export_bbu; int (*cmd_exec)(struct fastboot *fb, const char *cmd); int (*cmd_flash)(struct fastboot *fb, struct file_list_entry *entry, - const char *filename, const void *buf, size_t len); + const char *filename, size_t len); }; enum fastboot_msg_type { |