Add the "efi" target to "Makefile".
Introduce "Makefile.edk2" for building and cleaning the firmware images
and varstore templates.
Collect the common bits from the recipes in the helper script
"edk2-build.sh".
Signed-off-by: Laszlo Ersek <address@hidden>
---
Notes:
v2:
- drop comma after copyright year, in both new files [Eric]
- define the SHELL macro as /bin/bash near the top of "Makefile.edk2",
so that various bashisms (e.g. the "source" built-in, and the ==
operator of "[") work even if /bin/sh isn't bash [Phil, Eric]
- rework "Makefile.edk2" to produce xz-compressed flash device files
[Dan, Michael, Phil]:
- add implicit rule for compression,
- mark uncompressed FD files as intermediate,
- factor out the "flashdevs" macro for sharing between the "all" and
".INTERMEDIATE" targets
- due to said rework above, do not pick up Phil's R-b / T-b, and
Michal's and Michael's R-b's
roms/Makefile | 5 +
roms/Makefile.edk2 | 148 ++++++++++++++++++++
roms/edk2-build.sh | 55 ++++++++
3 files changed, 208 insertions(+)