diff options
author | Olivier Martin <Olivier.Martin@arm.com> | 2015-07-14 14:41:46 +0000 |
---|---|---|
committer | oliviermartin <oliviermartin@Edk2> | 2015-07-14 14:41:46 +0000 |
commit | 5d9e9d1a1c0aac8d3a1f60be50b2f504dac8d761 (patch) | |
tree | 64ba48f5ab76bb7bea0e671473a0e6dffb17f34e /ArmPlatformPkg/Bds/BdsHelper.c | |
parent | a81ccae41acfb4905d9b06c1f3223d43226c0152 (diff) | |
download | edk2-5d9e9d1a1c0aac8d3a1f60be50b2f504dac8d761.zip edk2-5d9e9d1a1c0aac8d3a1f60be50b2f504dac8d761.tar.gz edk2-5d9e9d1a1c0aac8d3a1f60be50b2f504dac8d761.tar.bz2 |
ArmPlatformPkg/Bds: Added support for booting legacy kernel from BDS
When PcdBdsLinuxSupport is enabled, users can create boot
entries for the legacy EFI Linux loader.
The ARM BDS detects if the image is a EFI image if not
then it assumes it is a legacy Linux kernel (a kernel
without EFI Stub).
If the Boot Manager did not manage to load the binary
(it could happen when the binary is on the network or
not present on the media yet).
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <Olivier.Martin@arm.com>
Reviewed-by: Ronald Cron <Ronald.Cron@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17974 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPlatformPkg/Bds/BdsHelper.c')
-rw-r--r-- | ArmPlatformPkg/Bds/BdsHelper.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/ArmPlatformPkg/Bds/BdsHelper.c b/ArmPlatformPkg/Bds/BdsHelper.c index b3003e9..732292c 100644 --- a/ArmPlatformPkg/Bds/BdsHelper.c +++ b/ArmPlatformPkg/Bds/BdsHelper.c @@ -256,15 +256,6 @@ GetHIInputBoolean ( }
}
-BOOLEAN
-HasFilePathEfiExtension (
- IN CHAR16* FilePath
- )
-{
- return (StrCmp (FilePath + (StrSize (FilePath) / sizeof (CHAR16)) - 5, L".EFI") == 0) ||
- (StrCmp (FilePath + (StrSize (FilePath) / sizeof (CHAR16)) - 5, L".efi") == 0);
-}
-
// Return the last non end-type Device Path Node from a Device Path
EFI_DEVICE_PATH*
GetLastDevicePathNode (
|