# HG changeset patch # User Yann Diorcet # Date 1353357909 -3600 # Node ID 5016315d88ba935c45381728965366a8c990f15d # Parent f32c0f8ffaa359ba8c288072ff2c867da63f2a66 binutils/binutils: simplify gold dependencies In preparation of adding a new kernel-type, Yann D. came up with a change in semantic on binutils/gold availability. So far, it was architectures' responsibility to declare that they did support binutils/gold or not. It makes much more sense that binutils/gold declares its own availability depending on the current architecture; after all, architectures have no way to know wether gold supports them, while gold does know it. Signed-off-by:Yann Diorcet [yann.morin.1998@free.fr: split up original patch for self-contained changes] Signed-off-by: "Yann E. MORIN" Message-Id: Patchwork-Id: 199971 diff -r f32c0f8ffaa3 -r 5016315d88ba config/binutils/binutils.in --- a/config/binutils/binutils.in Mon Nov 19 21:39:58 2012 +0100 +++ b/config/binutils/binutils.in Mon Nov 19 21:45:09 2012 +0100 @@ -115,8 +115,11 @@ config BINUTILS_HAS_GOLD bool +# gold only suports the listed architectures config BINUTILS_GOLD_SUPPORTS_ARCH bool + default y if ARCH_arm + default y if ARCH_x86 config BINUTILS_HAS_PLUGINS bool @@ -124,13 +127,6 @@ config BINUTILS_HAS_PKGVERSION_BUGURL bool -# Only these architectures have support in gold -config ARCH_arm - select BINUTILS_GOLD_SUPPORTS_ARCH - -config ARCH_x86 - select BINUTILS_GOLD_SUPPORTS_ARCH - # Force using the BFD linker if needed # This is the case for some C libraries (eg. glibc and # eglibc at least) and affected components can select this