summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-core/ovmf/ovmf_git.bb8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/recipes-core/ovmf/ovmf_git.bb b/meta/recipes-core/ovmf/ovmf_git.bb
index 898c5b76af..73fdfc6239 100644
--- a/meta/recipes-core/ovmf/ovmf_git.bb
+++ b/meta/recipes-core/ovmf/ovmf_git.bb
@@ -98,6 +98,14 @@ fix_toolchain_append_class-native() {
98 -e '/^LINKER/a LFLAGS += ${BUILD_LDFLAGS}\nCFLAGS += ${BUILD_CFLAGS}' \ 98 -e '/^LINKER/a LFLAGS += ${BUILD_LDFLAGS}\nCFLAGS += ${BUILD_CFLAGS}' \
99 ${S}/BaseTools/Source/C/Makefiles/app.makefile \ 99 ${S}/BaseTools/Source/C/Makefiles/app.makefile \
100 ${S}/BaseTools/Source/C/VfrCompile/GNUmakefile 100 ${S}/BaseTools/Source/C/VfrCompile/GNUmakefile
101 # Linking with gold fails:
102 # internal error in do_layout, at ../../gold/object.cc:1821
103 # make: *** [.../OUTPUT/Facs.acpi] Error 1
104 # We intentionally hard-code the use of ld.bfd regardless of DISTRO_FEATURES
105 # to make ovmf-native reusable across distros.
106 sed -i \
107 -e 's#^\(DEFINE GCC.*DLINK.*FLAGS *=\)#\1 -fuse-ld=bfd#' \
108 ${S}/BaseTools/Conf/tools_def.template
101} 109}
102 110
103GCC_VER="$(${CC} -v 2>&1 | tail -n1 | awk '{print $3}')" 111GCC_VER="$(${CC} -v 2>&1 | tail -n1 | awk '{print $3}')"