summaryrefslogtreecommitdiff
path: root/payloads/external
diff options
context:
space:
mode:
Diffstat (limited to 'payloads/external')
-rw-r--r--payloads/external/Makefile.inc1
-rw-r--r--payloads/external/edk2/Kconfig7
-rw-r--r--payloads/external/edk2/Makefile2
3 files changed, 10 insertions, 0 deletions
diff --git a/payloads/external/Makefile.inc b/payloads/external/Makefile.inc
index 3ca3fc9c75..70096f5135 100644
--- a/payloads/external/Makefile.inc
+++ b/payloads/external/Makefile.inc
@@ -167,6 +167,7 @@ $(obj)/UEFIPAYLOAD.fd: $(DOTCONFIG)
CONFIG_EDK2_CUSTOM_BUILD_PARAMS=$(CONFIG_EDK2_CUSTOM_BUILD_PARAMS) \
CONFIG_EDK2_DEBUG=$(CONFIG_EDK2_DEBUG) \
CONFIG_EDK2_RELEASE=$(CONFIG_EDK2_RELEASE) \
+ CONFIG_EDK2_VERBOSE_BUILD=$(CONFIG_EDK2_VERBOSE_BUILD) \
CONFIG_EDK2_ABOVE_4G_MEMORY=$(CONFIG_EDK2_ABOVE_4G_MEMORY) \
CONFIG_EDK2_BOOTSPLASH_FILE=$(CONFIG_EDK2_BOOTSPLASH_FILE) \
CONFIG_EDK2_BOOT_MANAGER_ESCAPE=$(CONFIG_EDK2_BOOT_MANAGER_ESCAPE) \
diff --git a/payloads/external/edk2/Kconfig b/payloads/external/edk2/Kconfig
index d2a589bdbb..f753ad973e 100644
--- a/payloads/external/edk2/Kconfig
+++ b/payloads/external/edk2/Kconfig
@@ -78,6 +78,13 @@ config EDK2_RELEASE
endchoice
+config EDK2_VERBOSE_BUILD
+ bool "Output verbose build log for troubleshooting build failures"
+ help
+ Switch off the `-q` (quiet) and `-s` (silent) build arguments which makes the
+ build log extremely verbose. This can be used to troubleshoot failed builds
+ which are usually down to missing tools or toolchain.
+
config EDK2_ABOVE_4G_MEMORY
bool "Enable above 4G memory"
default n
diff --git a/payloads/external/edk2/Makefile b/payloads/external/edk2/Makefile
index 045ef09dc7..4a854c9b29 100644
--- a/payloads/external/edk2/Makefile
+++ b/payloads/external/edk2/Makefile
@@ -11,7 +11,9 @@ export PACKAGES_PATH := $(EDK2_PATH)
BUILD_STR = -p UefiPayloadPkg/UefiPayloadPkg.dsc
BUILD_STR += -t COREBOOT
BUILD_STR += -D BOOTLOADER=COREBOOT
+ifneq ($(CONFIG_EDK2_VERBOSE_BUILD),y)
BUILD_STR += -q -s
+endif
#
# EDK II has the following build options relevant to coreboot: