diff options
author | Sam Protsenko <semen.protsenko@linaro.org> | 2019-07-03 19:00:22 +0300 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2019-08-08 12:35:02 +0300 |
commit | 139db354b18014e224068a4f2b3b95e025812b17 (patch) | |
tree | 17c8d2b9519a45eec2c50337944bf91df3f15671 /drivers/fastboot | |
parent | fe876984a428cc0058bdb536ac948397762f3c0d (diff) | |
download | u-boot-139db354b18014e224068a4f2b3b95e025812b17.tar.xz |
fastboot: getvar: Add "is-userspace" variable
As per documentation [1], Android-Q requires for bootloader to provide
"is-userspace" variable. "no" value should be always returned. This
patch implements this fastboot variable.
[1] https://android.googlesource.com/platform/system/core/+/refs/tags/android-q-preview-4/fastboot/README.md
Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Reviewed-by: Eugeniu Rosca <erosca@de.adit-jv.com>
Diffstat (limited to 'drivers/fastboot')
-rw-r--r-- | drivers/fastboot/fb_getvar.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/fastboot/fb_getvar.c b/drivers/fastboot/fb_getvar.c index 9ee5054485..fd0823b2bf 100644 --- a/drivers/fastboot/fb_getvar.c +++ b/drivers/fastboot/fb_getvar.c @@ -28,6 +28,7 @@ static void getvar_partition_type(char *part_name, char *response); #if CONFIG_IS_ENABLED(FASTBOOT_FLASH) static void getvar_partition_size(char *part_name, char *response); #endif +static void getvar_is_userspace(char *var_parameter, char *response); static const struct { const char *variable; @@ -78,6 +79,9 @@ static const struct { .variable = "partition-size", .dispatch = getvar_partition_size #endif + }, { + .variable = "is-userspace", + .dispatch = getvar_is_userspace } }; @@ -243,6 +247,11 @@ static void getvar_partition_size(char *part_name, char *response) } #endif +static void getvar_is_userspace(char *var_parameter, char *response) +{ + fastboot_okay("no", response); +} + /** * fastboot_getvar() - Writes variable indicated by cmd_parameter to response. * |