[U-Boot] [PATCH] fastboot: getvar: correct/rename "has_slot" to "has-slot"
Alex Kiernan
alex.kiernan at gmail.com
Tue Mar 26 20:05:37 UTC 2019
On Tue, Mar 26, 2019 at 4:46 PM Eugeniu Rosca <erosca at de.adit-jv.com> wrote:
>
> Since its inception in upstream fastboot android-n-preview-1 [1],
> "has-slot" option has never taken the form of "has_slot". Amongst the
> users of "getvar has-slot:" is the upstream bootloadertest.py [2].
>
> Current U-Boot "has_slot" version must be a typo. Fix it.
>
Looks like it... typo when pulling from Android things U-Boot:
https://android.googlesource.com/platform/external/u-boot/+/android-o-mr1-iot-preview-8/net/fastboot.c#274
> [1] https://android.googlesource.com/platform/system/core/+/a797479bd51c
> ("Fix fastboot variable name")
> [2] https://android.googlesource.com/platform/system/extras/+/72de393e118e3
> ("Bootloader verification for AndroidThings.")
>
> Fixes: f73a7df984a9 ("net: fastboot: Merge AOSP UDP fastboot")
> Signed-off-by: Eugeniu Rosca <erosca at de.adit-jv.com>
Acked-by: Alex Kiernan <alex.kiernan at gmail.com>
> ---
> drivers/fastboot/fb_getvar.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/fastboot/fb_getvar.c b/drivers/fastboot/fb_getvar.c
> index 4d264c985d7e..91a774a345b6 100644
> --- a/drivers/fastboot/fb_getvar.c
> +++ b/drivers/fastboot/fb_getvar.c
> @@ -62,7 +62,7 @@ static const struct {
> .variable = "slot-suffixes",
> .dispatch = getvar_slot_suffixes
> }, {
> - .variable = "has_slot",
> + .variable = "has-slot",
> .dispatch = getvar_has_slot
> #if CONFIG_IS_ENABLED(FASTBOOT_FLASH_MMC)
> }, {
> --
> 2.21.0
>
--
Alex Kiernan
More information about the U-Boot
mailing list