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