From 6c128c65b5ec0e5b8b5a0ccb165f3afd29e485f8 Mon Sep 17 00:00:00 2001 From: Guo Mang Date: Wed, 2 Aug 2017 09:54:47 +0800 Subject: Remove core packages since we can get them from edk2 repository Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Guo Mang --- .../ApplicationEntryPoint.c | 121 --------------------- .../UefiApplicationEntryPoint.inf | 40 ------- .../UefiApplicationEntryPoint.uni | Bin 1742 -> 0 bytes 3 files changed, 161 deletions(-) delete mode 100644 MdePkg/Library/UefiApplicationEntryPoint/ApplicationEntryPoint.c delete mode 100644 MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf delete mode 100644 MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.uni (limited to 'MdePkg/Library/UefiApplicationEntryPoint') diff --git a/MdePkg/Library/UefiApplicationEntryPoint/ApplicationEntryPoint.c b/MdePkg/Library/UefiApplicationEntryPoint/ApplicationEntryPoint.c deleted file mode 100644 index dc05b23fd8..0000000000 --- a/MdePkg/Library/UefiApplicationEntryPoint/ApplicationEntryPoint.c +++ /dev/null @@ -1,121 +0,0 @@ -/** @file - Entry point library instance to a UEFI application. - -Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.
-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 -http://opensource.org/licenses/bsd-license.php. - -THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. - -**/ - -#include -#include -#include -#include -#include - - -/** - Entry point to UEFI Application. - - This function is the entry point for a UEFI Application. This function must call - ProcessLibraryConstructorList(), ProcessModuleEntryPointList(), and ProcessLibraryDestructorList(). - The return value from ProcessModuleEntryPointList() is returned. - If _gUefiDriverRevision is not zero and SystemTable->Hdr.Revision is less than _gUefiDriverRevison, - then return EFI_INCOMPATIBLE_VERSION. - - @param ImageHandle The image handle of the UEFI Application. - @param SystemTable A pointer to the EFI System Table. - - @retval EFI_SUCCESS The UEFI Application exited normally. - @retval EFI_INCOMPATIBLE_VERSION _gUefiDriverRevision is greater than SystemTable->Hdr.Revision. - @retval Other Return value from ProcessModuleEntryPointList(). - -**/ -EFI_STATUS -EFIAPI -_ModuleEntryPoint ( - IN EFI_HANDLE ImageHandle, - IN EFI_SYSTEM_TABLE *SystemTable - ) -{ - EFI_STATUS Status; - - if (_gUefiDriverRevision != 0) { - // - // Make sure that the EFI/UEFI spec revision of the platform is >= EFI/UEFI spec revision of the application. - // - if (SystemTable->Hdr.Revision < _gUefiDriverRevision) { - return EFI_INCOMPATIBLE_VERSION; - } - } - - // - // Call constructor for all libraries. - // - ProcessLibraryConstructorList (ImageHandle, SystemTable); - - // - // Call the module's entry point - // - Status = ProcessModuleEntryPointList (ImageHandle, SystemTable); - - // - // Process destructor for all libraries. - // - ProcessLibraryDestructorList (ImageHandle, SystemTable); - - // - // Return the return status code from the driver entry point - // - return Status; -} - - -/** - Invokes the library destructors for all dependent libraries and terminates - the UEFI Application. - - This function calls ProcessLibraryDestructorList() and the EFI Boot Service Exit() - with a status specified by Status. - - @param Status Status returned by the application that is exiting. - -**/ -VOID -EFIAPI -Exit ( - IN EFI_STATUS Status - ) - -{ - ProcessLibraryDestructorList (gImageHandle, gST); - - gBS->Exit (gImageHandle, Status, 0, NULL); -} - - -/** - Required by the EBC compiler and identical in functionality to _ModuleEntryPoint(). - - @param ImageHandle The image handle of the UEFI Application. - @param SystemTable A pointer to the EFI System Table. - - @retval EFI_SUCCESS The UEFI Application exited normally. - @retval EFI_INCOMPATIBLE_VERSION _gUefiDriverRevision is greater than SystemTable->Hdr.Revision. - @retval Other Return value from ProcessModuleEntryPointList(). - -**/ -EFI_STATUS -EFIAPI -EfiMain ( - IN EFI_HANDLE ImageHandle, - IN EFI_SYSTEM_TABLE *SystemTable - ) -{ - return _ModuleEntryPoint (ImageHandle, SystemTable); -} diff --git a/MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf b/MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf deleted file mode 100644 index be92b3dc07..0000000000 --- a/MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf +++ /dev/null @@ -1,40 +0,0 @@ -## @file -# Module entry point library for UEFI Application. -# -# Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.
-# -# 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 -# http://opensource.org/licenses/bsd-license.php. -# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. -# -# -## - -[Defines] - INF_VERSION = 0x00010005 - BASE_NAME = UefiApplicationEntryPoint - MODULE_UNI_FILE = UefiApplicationEntryPoint.uni - FILE_GUID = DADE8301-CB29-4fd5-8148-56FD246C5B88 - MODULE_TYPE = UEFI_APPLICATION - VERSION_STRING = 1.0 - LIBRARY_CLASS = UefiApplicationEntryPoint|UEFI_APPLICATION - -# -# VALID_ARCHITECTURES = IA32 X64 IPF EBC -# - -[Sources] - ApplicationEntryPoint.c - - -[Packages] - MdePkg/MdePkg.dec - -[LibraryClasses] - UefiBootServicesTableLib - DebugLib - BaseLib - diff --git a/MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.uni b/MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.uni deleted file mode 100644 index 9efacd16d0..0000000000 Binary files a/MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.uni and /dev/null differ -- cgit v1.2.3