[edk2] [PATCH v3] MdeModulePkg: Skip registering BootManagerMenu if its FFS is not found

2016-06-30 Thread Sunny Wang
s can directly return without doing anything. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Sunny Wang --- MdeModulePkg/Include/Library/UefiBootManagerLib.h | 10 +++-- MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c | 39 +++ MdeModulePkg/Universal/B

[edk2] [PATCH v2] MdeModulePkg: Skip registering BootManagerMenu if its FFS is not found

2016-06-27 Thread Sunny Wang
s can directly return without doing anything. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Sunny Wang --- MdeModulePkg/Include/Library/UefiBootManagerLib.h | 7 ++-- MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c | 39 ++ MdeModulePkg/Li

[edk2] [PATCH v2] MdeModulePkg/UefiBootManagerLib: Fix for wrong data built into MemoryTypeInformation variable

2016-06-23 Thread Sunny Wang
ribution Agreement 1.0 Signed-off-by: Sunny Wang Reviewed-by: Samer El-Haj-Mahmoud Reviewed-by: Ruiyu Ni Reviewed-by: Star Zeng --- MdeModulePkg/Library/UefiBootManagerLib/BmMisc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Library/UefiBootManagerLib

[edk2] [PATCH] MdeModulePkg/UefiBootManagerLib: Skip registering BootManagerMenu if its FFS is not found

2016-06-20 Thread Sunny Wang
tatus code reported. Therefore, it would be good to return EFI_NOT_FOUND status and NULL BootOption pointer to skip registering and booting BootManagerMenu boot option for this case. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Sunny Wang --- MdeModulePkg/Li

[edk2] [PATCH] MdeModulePkg/UefiBootManagerLib: Keep HTTP boot mounted RAM disk

2016-06-20 Thread Sunny Wang
. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Sunny Wang --- MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c b/MdeModulePkg/Library/UefiBootManagerLib

[edk2] [PATCH] MdeModulePkg/UefiBootManagerLib: Fix for wrong data updated into MemoryTypeInformation variable

2016-06-20 Thread Sunny Wang
ger than RamDiskSizeInPages to prevent BDS core code updating wrong data (very big value) to MemoryTypeInformation variable in this case. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Sunny Wang --- MdeModulePkg/Library/UefiBootManagerLib/BmMisc.c | 4 +++- 1 file changed, 3 in

[edk2] [PATCH] NetworkPkg/HttpBootDxe: Fix for the issue that the HTTP boot option can't be booted more than once

2016-05-04 Thread Sunny Wang
Register a RAM Disk for downloaded HTTP ISO file and then BDS code can't find the RAM disk to boot. Solution: Save ImageType to private data for next time HTTP boot. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Sunny Wang --- NetworkPkg/HttpBootDxe/HttpBootDxe.

[edk2] [PATCH v2] MdeModulePkg: Fix memory leak issues

2015-11-02 Thread Sunny Wang
Fix memory leak issues Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Sunny Wang --- MdeModulePkg/Library/UefiBootManagerLib/BmConsole.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MdeModulePkg/Library/UefiBootManagerLib/BmConsole.c b/MdeModulePkg/Library

[edk2] [PATCH] MdeModulePkg: Add a BDS platform hook function PlatformBootManagerBeforeDefaultBoot to PlatformBootManagerLib

2015-10-27 Thread Sunny Wang
booting Boot Manager Menu (for OS request by setting OsIndications) and Hotkey option. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Sunny Wang --- MdeModulePkg/Include/Library/PlatformBootManagerLib.h | 14 ++ .../PlatformBootManagerLibNull

[edk2] [PATCH] MdeModulePkg: Add a BDS platform hook function PlatformBootManagerDefaultBootFail to PlatformBootManagerLib

2015-10-27 Thread Sunny Wang
tatus of EFI_SUCCESS, platform firmware supports boot manager menu, and if firmware is configured to boot in an interactive mode, the boot manager will stop processing the BootOrder variable and present a boot manager menu to the user. Contributed-under: TianoCore Contribution Agreement 1.0 Signe

[edk2] [PATCH] MdeModulePkg: Fix memory leak issues

2015-10-27 Thread Sunny Wang
Fix memory leak issues Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Sunny Wang --- MdeModulePkg/Library/UefiBootManagerLib/BmConsole.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Library/UefiBootManagerLib/BmConsole.c b

[edk2] [PATCH v2] MdeModulePkg: Make the BmFindLoadOption function public

2015-10-13 Thread Sunny Wang
Make the BmFindLoadOption function public Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Sunny Wang Reviewed-by: Samer El-Haj-Mahmoud --- MdeModulePkg/Include/Library/UefiBootManagerLib.h | 22 ++ MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c

[edk2] [PATCH] MdeModulePkg: Make the BmFindLoadOption function public

2015-10-12 Thread Sunny Wang
Make the BmFindLoadOption function public Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Sunny Wang --- MdeModulePkg/Include/Library/UefiBootManagerLib.h | 21 + 1 file changed, 21 insertions(+) diff --git a/MdeModulePkg/Include/Library