summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kinney <michael.d.kinney@intel.com>2017-05-17 21:02:36 -0700
committerGuo Mang <mang.guo@intel.com>2017-07-12 11:24:49 +0800
commit7f7bd3ed1471c811007fc23d1559407641daa673 (patch)
tree8d33e2798849951d001567a2068db3a3c467c1ae
parentb360a2de9ebbb7aaf08b11c3ba58c50b56db7bb9 (diff)
downloadedk2-platforms-7f7bd3ed1471c811007fc23d1559407641daa673.tar.xz
MdeModulePkg/LogoDxe: Return error if HII Package not present
https://bugzilla.tianocore.org/show_bug.cgi?id=554 Update LogoDxe module to print a DEBUG() message and exit with an error instead of ASSERT_EFI_ERROR() if the HII Image Package with the logo image is not present. If a tool chain does not support generation of PE/COFF resource sections, then this module can not produce the logo from an HII Image Package. XCODE5 is an example of a tool chain that does not currently support generation of PE/COFF resource sections. Cc: Star Zeng <star.zeng@intel.com> Cc: Eric Dong <eric.dong@intel.com> Cc: Andrew Fish <afish@apple.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney <michael.d.kinney@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com> (cherry picked from commit 1c020add31d9ba5f556d97bad174e80d7325d973)
-rw-r--r--Core/MdeModulePkg/Logo/Logo.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/Core/MdeModulePkg/Logo/Logo.c b/Core/MdeModulePkg/Logo/Logo.c
index 313dd4a793..1789ad9d90 100644
--- a/Core/MdeModulePkg/Logo/Logo.c
+++ b/Core/MdeModulePkg/Logo/Logo.c
@@ -1,7 +1,7 @@
/** @file
Logo DXE Driver, install Edkii Platform Logo protocol.
-Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -133,7 +133,10 @@ InitializeLogo (
NULL,
EFI_OPEN_PROTOCOL_GET_PROTOCOL
);
- ASSERT_EFI_ERROR (Status);
+ if (EFI_ERROR (Status)) {
+ DEBUG ((DEBUG_ERROR, "HII Image Package with logo not found in PE/COFF resource section\n"));
+ return Status;
+ }
//
// Publish HII package list to HII Database.