mirror of https://github.com/acidanthera/audk.git
UefiPayloadPkg: Use dummy constructor for PlatformHookLib
The Library constructor is only used for library dependency. So use a dummy function to make it clear instead of using an actual function. Cc: Ray Ni <ray.ni@intel.com> Cc: Maurice Ma <maurice.ma@intel.com> Cc: Benjamin You <benjamin.you@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com> Signed-off-by: Guo Dong <guo.dong@intel.com>
This commit is contained in:
parent
cc5a67269e
commit
dc430ccf3f
|
@ -13,6 +13,23 @@
|
|||
#include <Library/PcdLib.h>
|
||||
#include <Library/HobLib.h>
|
||||
|
||||
|
||||
/** Library Constructor
|
||||
|
||||
@retval RETURN_SUCCESS Success.
|
||||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
PlatformHookSerialPortConstructor (
|
||||
VOID
|
||||
)
|
||||
{
|
||||
// Nothing to do here. This constructor is added to
|
||||
// enable the chain of constructor invocation for
|
||||
// dependent libraries.
|
||||
return RETURN_SUCCESS;
|
||||
}
|
||||
|
||||
/**
|
||||
Performs platform specific initialization required for the CPU to access
|
||||
the hardware associated with a SerialPortLib instance. This function does
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
MODULE_TYPE = BASE
|
||||
VERSION_STRING = 1.0
|
||||
LIBRARY_CLASS = PlatformHookLib
|
||||
CONSTRUCTOR = PlatformHookSerialPortInitialize
|
||||
CONSTRUCTOR = PlatformHookSerialPortConstructor
|
||||
|
||||
[Sources]
|
||||
PlatformHookLib.c
|
||||
|
|
Loading…
Reference in New Issue