diff options
author | Jeff Brasen <jbrasen@nvidia.com> | 2021-09-13 23:18:50 +0000 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-09-23 18:36:39 +0000 |
commit | c0cd26f43c278781bf9a24a8268104292494f655 (patch) | |
tree | 5e98d2e8ed0e3f82a3b934f0debeae2b922fe075 /EmbeddedPkg | |
parent | f2a7e24e38210dd061c7db1d85df6175dd4f7030 (diff) | |
download | edk2-c0cd26f43c278781bf9a24a8268104292494f655.tar.gz edk2-c0cd26f43c278781bf9a24a8268104292494f655.tar.bz2 edk2-c0cd26f43c278781bf9a24a8268104292494f655.zip |
EmbeddedPkg: Install FDT if UpdateDtb is not present
Currently if mAndroidBootImg->UpdateDtb is not supported on the platform
the device tree updates of the initrd are not made.
Signed-off-by: Jeff Brasen <jbrasen@nvidia.com>
Reviewed-by: Leif Lindholm <leif@nuviainc.com>
Diffstat (limited to 'EmbeddedPkg')
-rw-r--r-- | EmbeddedPkg/Library/AndroidBootImgLib/AndroidBootImgLib.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/EmbeddedPkg/Library/AndroidBootImgLib/AndroidBootImgLib.c b/EmbeddedPkg/Library/AndroidBootImgLib/AndroidBootImgLib.c index 324933013d..4f8ff5b261 100644 --- a/EmbeddedPkg/Library/AndroidBootImgLib/AndroidBootImgLib.c +++ b/EmbeddedPkg/Library/AndroidBootImgLib/AndroidBootImgLib.c @@ -349,12 +349,13 @@ AndroidBootImgUpdateFdt ( if (EFI_ERROR (Status)) {
goto Fdt_Exit;
}
-
- Status = gBS->InstallConfigurationTable (
- &gFdtTableGuid,
- (VOID *)(UINTN)NewFdtBase
- );
+ } else {
+ NewFdtBase = UpdatedFdtBase;
}
+ Status = gBS->InstallConfigurationTable (
+ &gFdtTableGuid,
+ (VOID *)(UINTN)NewFdtBase
+ );
if (!EFI_ERROR (Status)) {
return EFI_SUCCESS;
|