public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Help on AutoGen Files
@ 2018-07-19  7:32 Udit Kumar
  2018-07-19 18:14 ` Marvin H?user
  0 siblings, 1 reply; 4+ messages in thread
From: Udit Kumar @ 2018-07-19  7:32 UTC (permalink / raw)
  To: edk2-devel@lists.01.org

Hi Experts,
How I can change the order of initialization in Constructor list of autogen file.
In my build system, if I look at
MdeModulePkg/Universal/PCD/Pei/Pcd/DEBUG/AutoGen.c
Below is function of Library Constructor List

VOID
EFIAPI
ProcessLibraryConstructorList (
  IN       EFI_PEI_FILE_HANDLE       FileHandle,
  IN CONST EFI_PEI_SERVICES          **PeiServices
  )
{
  EFI_STATUS  Status;

  Status = BaseDebugLibSerialPortConstructor ();
  ASSERT_EFI_ERROR (Status);

  Status = PeiServicesTablePointerLibConstructor (FileHandle, PeiServices);
  ASSERT_EFI_ERROR (Status);

  Status = TimerConstructor ();
  ASSERT_EFI_ERROR (Status);

  Status = FpgaInterfaceInit ();
  ASSERT_EFI_ERROR (Status);

}


My problem is SerialPortConstructor needs frequency, which can be retrieved after  FpgaInterfaceInit()
Therefore, my preferred way for this constructor list will be
FpgaInterfaceInit() followed by  BaseDebugLibSerialPortConstructor()

how I can achieve this.


Many Thanks
Udit


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-07-20  4:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-19  7:32 Help on AutoGen Files Udit Kumar
2018-07-19 18:14 ` Marvin H?user
2018-07-19 18:25   ` Andrew Fish
2018-07-20  4:07     ` Udit Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox