meta-gbmc-staging: gbmc-sysinit: Refactor for multi-platform support

This commit refactors the gbmc-sysinit recipe to support multiple
platforms (server2 and server3) from a common code base.

- A new `gbmc-sysinit.inc` file has been created to hold common
  variables and tasks shared between the different platform recipes.

- The original `gbmc-sysinit.bb` has been renamed to
  `gbmc-sysinit_server2.bb` and updated to `require` the new `.inc`
  file. Its associated source files have been moved to a `server2/`
  subdirectory.

- A new `gbmc-sysinit_server3.bb` recipe has been added to support the
  server3 platform. This recipe also uses the common `.inc` file and
  adds its own set of systemd services and helper scripts, which are
  located in a new `server3/` subdirectory.

- The `transfer_bios_image_to_dram` function in the server3 helper
  script is intentionally left as a stub, as it is designed to be
  overridden by a machine-specific layer.

Tested: build and run on a Server3.0 machine and everything works as
expected.
Google-Bug-Id: 408930097
Change-Id: I18b867ae08b150d671c435563fd31f2bd356239f
Signed-off-by: Tom Tung <tomtung@google.com>
14 files changed
tree: def0da41dc6ce9851136f0b2b7248f535be1d3ae
  1. classes/
  2. conf/
  3. dynamic-layers/
  4. recipes-bsp/
  5. recipes-connectivity/
  6. recipes-core/
  7. recipes-devtools/
  8. recipes-extended/
  9. recipes-google/
  10. recipes-kernel/
  11. recipes-phosphor/
  12. recipes-support/
  13. recipes-tpm1/
  14. recipes-tpm2/
  15. LICENSE
  16. README.md
README.md

meta-gbmc-staging

This repository contains additions to the openbmc/meta-google layer that are not yet ready for OpenBMC inclusion.

How to use this layer

  1. Clone openbmc/openbmc from GitHub.
  2. Clone this layer from GitHub into a subdirectory of openbmc.