summaryrefslogtreecommitdiff
path: root/payloads/external/tianocore/Makefile
diff options
context:
space:
mode:
authorSean Rhodes <sean@starlabs.systems>2022-07-15 13:58:52 +0100
committerMartin L Roth <gaumless@tutanota.com>2022-07-25 23:46:11 +0000
commit108e53792804293a13b48a1f6e7dddcb4f0b1250 (patch)
tree2bb8d4d74c11585191cab4509bbe43ef367ae6f9 /payloads/external/tianocore/Makefile
parentb1c9f7fd122123305f9773f07de408f93779f430 (diff)
payloads/tianocore: Add a proper target for the Boot Splash
edk2's default is to show a Boot Splash with their own logo which looks like it's from the 1960's. Therefore, we replace this image with coreboot's logo, taken from https://coreboot.org unless a custom one is specified. Signed-off-by: Sean Rhodes <sean@starlabs.systems> Change-Id: I1b133e2a2cfd45a6650e4523b267f7508974137b Reviewed-on: https://review.coreboot.org/c/coreboot/+/65881 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com> Reviewed-by: Martin L Roth <gaumless@tutanota.com>
Diffstat (limited to 'payloads/external/tianocore/Makefile')
-rw-r--r--payloads/external/tianocore/Makefile43
1 files changed, 26 insertions, 17 deletions
diff --git a/payloads/external/tianocore/Makefile b/payloads/external/tianocore/Makefile
index 49e49ddb96..ad7887b68c 100644
--- a/payloads/external/tianocore/Makefile
+++ b/payloads/external/tianocore/Makefile
@@ -136,18 +136,36 @@ update: $(project_dir)
fi; \
git submodule update --init --checkout
+logo: $(project_dir)/edk2
+ case "$(CONFIG_TIANOCORE_BOOTSPLASH_FILE)" in \
+ /*) convert -background None $(CONFIG_TIANOCORE_BOOTSPLASH_FILE) \
+ BMP3:$(project_dir)/MdeModulePkg/Logo/Logo.bmp;; \
+ *) convert -background None $(top)/$(CONFIG_TIANOCORE_BOOTSPLASH_FILE) \
+ BMP3:$(project_dir)/MdeModulePkg/Logo/Logo.bmp;; \
+ esac \
+
checktools:
- echo "Checking uuid-dev..."
+ echo -n "EDK2: Checking uuid-dev:"
echo "#include <uuid/uuid.h>" > libtest.c
echo "int main(int argc, char **argv) { (void) argc; (void) argv; return 0; }" >> libtest.c
- $(HOSTCC) $(HOSTCCFLAGS) libtest.c -o libtest >/dev/null 2>&1 && echo " found uuid-dev." || \
- ( echo " Not found."; echo "ERROR: please_install uuid-dev (libuuid-devel)"; exit 1 )
+ $(HOSTCC) $(HOSTCCFLAGS) libtest.c -o libtest >/dev/null 2>&1 && echo " Found!" || \
+ ( echo " Not found!"; \
+ echo "ERROR: please_install uuid-dev (libuuid-devel)"; exit 1 )
rm -rf libtest.c libtest
- echo "Checking nasm..."
- type nasm > /dev/null 2>&1 && echo " found nasm." || \
- ( echo " Not found."; echo "Error: Please install nasm."; exit 1 )
+ echo -n "EDK2: Checking nasm:"
+ type nasm > /dev/null 2>&1 && echo " Found!" || \
+ ( echo " Not found!"; echo "ERROR: Please install nasm."; exit 1 )
+ echo -n "EDK2: Checking imagemagick:"
+ -convert -size 1x1 xc: test.png &> /dev/null;
+ if [ -f test.png ]; then \
+ rm test.png && echo " Found!"; \
+ else \
+ echo " Not found!"; \
+ echo "ERROR: Please install imagemagick"; \
+ exit 1; \
+ fi
-build: update checktools
+build: update logo checktools
echo " ##### $(project_name) Build Summary #####"
echo " Repository: $(CONFIG_TIANOCORE_REPOSITORY)"
echo " Branch: $(CONFIG_TIANOCORE_TAG_OR_REV)"
@@ -160,15 +178,6 @@ build: update checktools
-e 's/q /Build: Quiet/' \
-e 's/t /Toolchain: /'
unset CC; $(MAKE) -C $(project_dir)/BaseTools 2>&1
- if [ -n "$(CONFIG_TIANOCORE_BOOTSPLASH_FILE)" ]; then \
- echo " Copying custom bootsplash image"; \
- case "$(CONFIG_TIANOCORE_BOOTSPLASH_FILE)" in \
- /*) convert $(CONFIG_TIANOCORE_BOOTSPLASH_FILE) \
- BMP3:$(project_dir)/MdeModulePkg/Logo/Logo.bmp;; \
- *) convert $(top)/$(CONFIG_TIANOCORE_BOOTSPLASH_FILE) \
- BMP3:$(project_dir)/MdeModulePkg/Logo/Logo.bmp;; \
- esac \
- fi; \
cd $(project_dir); \
export EDK_TOOLS_PATH=$(project_dir)/BaseTools; \
export WORKSPACE=$(project_dir); \
@@ -188,4 +197,4 @@ clean:
distclean:
rm -rf */
-.PHONY: all update checktools config build clean distclean
+.PHONY: all update checktools config build clean distclean logo