From 175445b4bbb16b8eedc2f6bd1b3ec37cb1095bf1 Mon Sep 17 00:00:00 2001 From: Sean Rhodes Date: Tue, 2 Aug 2022 07:53:03 +0100 Subject: payloads/edk2: Move printing the build options to a separate recipe Move the code that prints the edk2 build options to it's own recipe so that it can be called for different targets. This change also fixes the print, as it accounts for recent switches such as `--pcd` and `-s`. Signed-off-by: Sean Rhodes Change-Id: Ie797ca26cd28eab0f633bd8dee5ec19634fcea99 Reviewed-on: https://review.coreboot.org/c/coreboot/+/66354 Tested-by: build bot (Jenkins) Reviewed-by: Lean Sheng Tan --- payloads/external/edk2/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'payloads/external') diff --git a/payloads/external/edk2/Makefile b/payloads/external/edk2/Makefile index 3dbb1b5412..68e48459a5 100644 --- a/payloads/external/edk2/Makefile +++ b/payloads/external/edk2/Makefile @@ -150,18 +150,22 @@ checktools: exit 1; \ fi -build: update logo checktools +print: echo " ##### $(project_name) Build Summary #####" echo " Repository: $(CONFIG_EDK2_REPOSITORY)" echo " Branch: $(CONFIG_EDK2_TAG_OR_REV)" echo " $(BUILD_STR)" | \ - sed 's/-/\n /g' | sort | sed \ + sed -e 's/--/-/g' -e 's/-/\n /g' | sort | sed \ -e 's/a /Architecture: /g' \ -e 's/b /Release: /g' \ -e 's/D /Option: /g' \ + -e 's/pcd /Pcd: /g' \ -e 's/p /Payload: /g' \ -e 's/q /Build: Quiet/' \ + -e 's/s /Build: Silent/' \ -e 's/t /Toolchain: /' + +build: update print logo checktools unset CC; $(MAKE) -C $(project_dir)/BaseTools 2>&1 cd $(project_dir); \ export EDK_TOOLS_PATH=$(project_dir)/BaseTools; \ -- cgit v1.2.3