diff options
| author | Mattijs Korpershoek <[email protected]> | 2021-08-05 17:17:24 +0200 |
|---|---|---|
| committer | Neil Armstrong <[email protected]> | 2021-08-10 10:43:54 +0200 |
| commit | 7039cbd2f5011e46e9f7e5f6b69b1af66b44f740 (patch) | |
| tree | bc4919b1ccdf9603b6da6820b94d1c8924029889 /include | |
| parent | efc28f6e4d01d14e10bcc45007929ecbe1b40c38 (diff) | |
configs: meson64_android: define BOOT_CMD macro
BOOT_CMD might be different based on CONFIG_CMD_ABOOTIMG.
To prepare for abootimg support, extract the boot command
to a dedicated macro.
Signed-off-by: Guillaume La Roque <[email protected]>
Signed-off-by: Mattijs Korpershoek <[email protected]>
Acked-by: Neil Armstrong <[email protected]>
Signed-off-by: Neil Armstrong <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/configs/meson64_android.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/configs/meson64_android.h b/include/configs/meson64_android.h index 83fa25bfb1f..0ce616c17ed 100644 --- a/include/configs/meson64_android.h +++ b/include/configs/meson64_android.h @@ -81,6 +81,8 @@ #define RECOVERY_PARTITION "recovery" #endif +#define BOOT_CMD "bootm ${loadaddr};" + #define BOOTENV_DEV_FASTBOOT(devtypeu, devtypel, instance) \ "bootcmd_fastboot=" \ "setenv run_fastboot 0;" \ @@ -152,7 +154,7 @@ "part size mmc ${mmcdev} " RECOVERY_PARTITION "${slot_suffix} boot_size;" \ "if mmc read ${loadaddr} ${boot_start} ${boot_size}; then " \ "echo Running Android Recovery...;" \ - "bootm ${loadaddr};" \ + BOOT_CMD \ "fi;" \ "echo Failed to boot Android...;" \ "reset;" \ @@ -174,7 +176,7 @@ "if mmc read ${loadaddr} ${boot_start} ${boot_size}; then " \ "setenv bootargs \"${bootargs} " AB_BOOTARGS "\" ; " \ "echo Running Android...;" \ - "bootm ${loadaddr};" \ + BOOT_CMD \ "fi;" \ "echo Failed to boot Android...;" \ "reset\0" |
