aboutsummaryrefslogtreecommitdiff
path: root/drivers/fastboot
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/fastboot')
-rw-r--r--drivers/fastboot/fb_getvar.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/fastboot/fb_getvar.c b/drivers/fastboot/fb_getvar.c
index 9ee50544856..fd0823b2bfe 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.
*