public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH v2 0/3] EmbeddedPkg: revert DTB loading to platform lib
@ 2017-03-31 10:56 Ard Biesheuvel
  2017-03-31 10:56 ` [PATCH v2 1/3] EmbeddedPkg: add DtPlatformDtbLoaderLib library class Ard Biesheuvel
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Ard Biesheuvel @ 2017-03-31 10:56 UTC (permalink / raw)
  To: edk2-devel, lersek; +Cc: leif.lindholm, Ard Biesheuvel

This updates the recently added DtPlatformDxe to indirect loading of the
actual DTB binary to a separate library. A base implementation is provided
that preserves the original behavior.

This way, we can allow platforms such as FVP or Juno (which use the same
firmware image but different DTB images) to override this library class
and insert its own logic to select the correct DTB, without resorting to
BEFORE depexes and dynamic PCDs, and the associated load order issues.

v2: - drop ArmPlatformPkg changes for now

Ard Biesheuvel (3):
  EmbeddedPkg: add DtPlatformDtbLoaderLib library class
  EmbeddedPkg: add base DtPlatformDtbLoaderLib implementation
  EmbeddedPkg/DtPlatformDxe: load platform DTB via new library

 EmbeddedPkg/Drivers/DtPlatformDxe/DtPlatformDxe.c                             | 26 ++++-----
 EmbeddedPkg/Drivers/DtPlatformDxe/DtPlatformDxe.inf                           |  2 +-
 EmbeddedPkg/EmbeddedPkg.dec                                                   |  1 +
 EmbeddedPkg/EmbeddedPkg.dsc                                                   |  6 ++
 EmbeddedPkg/Include/Library/DtPlatformDtbLoaderLib.h                          | 37 ++++++++++++
 EmbeddedPkg/Library/DtPlatformDtbLoaderBaseLib/DtPlatformDtbLoaderBaseLib.c   | 60 ++++++++++++++++++++
 EmbeddedPkg/Library/DtPlatformDtbLoaderBaseLib/DtPlatformDtbLoaderBaseLib.inf | 36 ++++++++++++
 7 files changed, 154 insertions(+), 14 deletions(-)
 create mode 100644 EmbeddedPkg/Include/Library/DtPlatformDtbLoaderLib.h
 create mode 100644 EmbeddedPkg/Library/DtPlatformDtbLoaderBaseLib/DtPlatformDtbLoaderBaseLib.c
 create mode 100644 EmbeddedPkg/Library/DtPlatformDtbLoaderBaseLib/DtPlatformDtbLoaderBaseLib.inf

-- 
2.9.3



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

end of thread, other threads:[~2017-03-31 13:38 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-31 10:56 [PATCH v2 0/3] EmbeddedPkg: revert DTB loading to platform lib Ard Biesheuvel
2017-03-31 10:56 ` [PATCH v2 1/3] EmbeddedPkg: add DtPlatformDtbLoaderLib library class Ard Biesheuvel
2017-03-31 11:15   ` Laszlo Ersek
2017-03-31 10:56 ` [PATCH v2 2/3] EmbeddedPkg: add base DtPlatformDtbLoaderLib implementation Ard Biesheuvel
2017-03-31 11:29   ` Laszlo Ersek
2017-03-31 10:56 ` [PATCH v2 3/3] EmbeddedPkg/DtPlatformDxe: load platform DTB via new library Ard Biesheuvel
2017-03-31 11:39   ` Laszlo Ersek
2017-03-31 12:22     ` Ard Biesheuvel
2017-03-31 13:38       ` Laszlo Ersek
2017-03-31 12:26 ` [PATCH v2 0/3] EmbeddedPkg: revert DTB loading to platform lib Ard Biesheuvel

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