From 29b6e00368b4f74c4d4a1cd22da7fdabdcd1d6ea Mon Sep 17 00:00:00 2001 From: Chris Packham Date: Mon, 8 Aug 2022 21:09:12 +1200 Subject: binutils: Add binutils 2.39 https://sourceware.org/pipermail/binutils/2022-August/122246.html Add binutils 2.39 and regenerate patches. 0008-binutils-2.38-vs.-ppc32-linux-kernel.patch is dropped as it has been applied upstream. Add a milestone for 2.39 which will be handy for Loongarch. Binutils now requires bison >= 3.0.4 to build gprofng for x86/aarch64 so we build our own bison when the host bison does not meet that requirement (which appears to be the case on macOS). Signed-off-by: Chris Packham --- config/binutils/binutils.in | 6 ++++++ config/configure.in.in | 3 +++ 2 files changed, 9 insertions(+) (limited to 'config') diff --git a/config/binutils/binutils.in b/config/binutils/binutils.in index 286ed4b5..2aa877fc 100644 --- a/config/binutils/binutils.in +++ b/config/binutils/binutils.in @@ -24,6 +24,12 @@ config BINUTILS_FORCE_LD_BFD_DEFAULT config BINUTILS_FORCE_LD_BFD_ONLY bool +# Binutils 2.39 requires bison 3.0.4 or later for gprofng on x86/aarch64 +config BINUTILS_DEP_BISON + def_bool y + depends on BINUTILS_2_39_or_later && !CONFIGURE_has_bison_3_0_4_or_newer && (ARCH_X86 || (ARCH_ARM && ARCH_64)) + select COMP_TOOLS_BISON + choice bool prompt "Linkers to enable" diff --git a/config/configure.in.in b/config/configure.in.in index a43fb61b..c67fd35f 100644 --- a/config/configure.in.in +++ b/config/configure.in.in @@ -54,6 +54,9 @@ config CONFIGURE_has_python_3_4_or_newer config CONFIGURE_has_bison_2_7_or_newer @KCONFIG_bison_2_7_or_newer@ +config CONFIGURE_has_bison_3_0_4_or_newer + @KCONFIG_bison_3_0_4_or_newer@ + config CONFIGURE_has_python @KCONFIG_python@ -- cgit v1.2.3