configs: mt8183: move recovery test logic into macro

The recovery testing logic is quite complex as of today:
- we check the BCB partition for any reboot commands set by Android
- we check Android system properties (from userdata) for the special
  case where the BCB is not populated (adb reboot recovery)

Document the testing logic and extract it into a dedicated macro.

The macro sets androidboot_recovery, which is then used to decide
whether we should boot Android or RecoveryOS.

Bug: https://baylibre.atlassian.net/browse/RITA-63
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
1 file changed