summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Rhodes <sean@starlabs.systems>2022-08-02 07:53:03 +0100
committerMartin L Roth <gaumless@gmail.com>2022-08-13 17:11:54 +0000
commit175445b4bbb16b8eedc2f6bd1b3ec37cb1095bf1 (patch)
treee0cfcbeceaef1bf2f8f57aa5979d3d445ba8cd5f
parentc3d2e9c593c9f30a82bd94375aaac2f9cd6a16fa (diff)
downloadcoreboot-175445b4bbb16b8eedc2f6bd1b3ec37cb1095bf1.tar.gz
coreboot-175445b4bbb16b8eedc2f6bd1b3ec37cb1095bf1.tar.bz2
coreboot-175445b4bbb16b8eedc2f6bd1b3ec37cb1095bf1.zip
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 <sean@starlabs.systems> Change-Id: Ie797ca26cd28eab0f633bd8dee5ec19634fcea99 Reviewed-on: https://review.coreboot.org/c/coreboot/+/66354 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com>
-rw-r--r--payloads/external/edk2/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/payloads/external/edk2/Makefile b/payloads/external/edk2/Makefile
index 3dbb1b5412d6..68e48459a5c0 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; \