]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
configs: meson64_android: use CONFIG_FASTBOOT_USB_DEV
authorMattijs Korpershoek <mkorpershoek@baylibre.com>
Thu, 29 Jul 2021 07:21:10 +0000 (09:21 +0200)
committerNeil Armstrong <narmstrong@baylibre.com>
Thu, 29 Jul 2021 09:37:17 +0000 (11:37 +0200)
Right now, when running fastboot we use a hard-coded "0" for the
device number.

Use the Kconfig option named CONFIG_FASTBOOT_USB_DEV instead.

Signed-off-by: Guillaume La Roque <mkorpershoek@baylibre.com>
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
include/configs/meson64_android.h

index 661de76fd771ecd186f7c17cd61e3cfd95ecc583..4027a7fe0dbe63e11c6e400b761bcdab3c64b8b4 100644 (file)
@@ -38,7 +38,7 @@
                "fi;" \
                "if test \"${run_fastboot}\" -eq 1; then " \
                        "echo Running Fastboot...;" \
-                       "fastboot 0;" \
+                       "fastboot " __stringify(CONFIG_FASTBOOT_USB_DEV) "; " \
                "fi\0"
 
 #define BOOTENV_DEV_NAME_FASTBOOT(devtypeu, devtypel, instance)        \
@@ -69,7 +69,7 @@
                "fi;" \
                "if test \"${run_recovery}\" -eq 1; then " \
                        "echo Running Recovery...;" \
-                       "fastboot 0;" \
+                       "fastboot " __stringify(CONFIG_FASTBOOT_USB_DEV) "; " \
                "fi\0"
 
 #define BOOTENV_DEV_NAME_RECOVERY(devtypeu, devtypel, instance)        \