Merge "BootLib: Add command line support for Non A/B"
diff --git a/QcomModulePkg/Library/BootLib/UpdateCmdLine.c b/QcomModulePkg/Library/BootLib/UpdateCmdLine.c
index dfb65a5..4a3f888 100644
--- a/QcomModulePkg/Library/BootLib/UpdateCmdLine.c
+++ b/QcomModulePkg/Library/BootLib/UpdateCmdLine.c
@@ -508,9 +508,11 @@
AsciiStrCatS (Dst, MaxCmdLineLen, Src);
}
- if (IsBuildUseRecoveryAsBoot () &&
+ if ((IsBuildUseRecoveryAsBoot () &&
IsDynamicPartitionSupport () &&
- !Param->Recovery) {
+ !Param->Recovery) ||
+ (!Param->MultiSlotBoot &&
+ !IsBuildUseRecoveryAsBoot ())) {
Src = AndroidBootForceNormalBoot;
AsciiStrCatS (Dst, MaxCmdLineLen, Src);
}
@@ -687,9 +689,11 @@
}
}
- if (IsBuildUseRecoveryAsBoot () &&
+ if ((IsBuildUseRecoveryAsBoot () &&
IsDynamicPartitionSupport () &&
- !Recovery) {
+ !Recovery) ||
+ (!MultiSlotBoot &&
+ !IsBuildUseRecoveryAsBoot ())) {
CmdLineLen += AsciiStrLen (AndroidBootForceNormalBoot);
}