Skip to contentSkip to conversation

package/binutils: drop support for binutils 2.40

PATCH In review Waldemar Brodkorb 1 participant 1 message Aug 7, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 3/3 package/binutils: drop support for binutils 2.40

Now that we have integrated support for binutils 2.43, and made binutils 2.42 the default, following our tradition, we can drop support for binutils 2.40.

In addition to the usual things, there is an additional change in elf2flt.mk, which had a special condition applicable to binutils 2.40, which can be removed now.

---
 Config.in.legacy                              |   6 +
 package/binutils/2.40/0001-sh-conf.patch      |  50 ---
 .../2.40/0002-poison-system-directories.patch | 309 ------------------
 ...ertion-fail-in-nios2_elf32_install_i.patch | 125 -------
 package/binutils/Config.in.host               |   4 -
 package/binutils/binutils.hash                |   1 -
 package/elf2flt/elf2flt.mk                    |  12 +-
 7 files changed, 7 insertions(+), 500 deletions(-)
 delete mode 100644 package/binutils/2.40/0001-sh-conf.patch
 delete mode 100644 package/binutils/2.40/0002-poison-system-directories.patch
 delete mode 100644 package/binutils/2.40/0003-PR27597-nios-assertion-fail-in-nios2_elf32_install_i.patch
Config.in.legacy +6 -0
index 94092d38f4..6ab2524148 100644
@@ -146,6 +146,12 @@ endif
 
 comment "Legacy options removed in 2024.08"
 
+config BR2_BINUTILS_VERSION_2_40_X
+	bool "binutils 2.40 has been removed"
+	select BR2_LEGACY
+	help
+	  binutils 2.40 has been removed, use a newer version.
+
 config BR2_KERNEL_HEADERS_6_9
 	bool "kernel headers version 6.9.x are no longer supported"
 	select BR2_LEGACY
package/binutils/2.40/0001-sh-conf.patch deleted +0 -50

50 lines not on this page · raw message

package/binutils/2.40/0002-poison-system-directories.patch deleted +0 -309

309 lines not on this page · raw message

package/binutils/2.40/0003-PR27597-nios-assertion-fail-in-nios2_elf32_install_i.patch deleted +0 -125

125 lines not on this page · raw message

package/binutils/Config.in.host +0 -4
index 007728321c..36fd2bd377 100644
@@ -12,9 +12,6 @@ choice
 	help
 	  Select the version of binutils you wish to use.
 
-config BR2_BINUTILS_VERSION_2_40_X
-	bool "binutils 2.40"
-
 config BR2_BINUTILS_VERSION_2_41_X
 	bool "binutils 2.41"
 
@@ -33,7 +30,6 @@ endchoice
 config BR2_BINUTILS_VERSION
 	string
 	default "arc-2023.09-release"	if BR2_BINUTILS_VERSION_ARC
-	default "2.40"		if BR2_BINUTILS_VERSION_2_40_X
 	default "2.41"		if BR2_BINUTILS_VERSION_2_41_X
 	default "2.42"		if BR2_BINUTILS_VERSION_2_42_X
 	default "2.43"		if BR2_BINUTILS_VERSION_2_43_X
package/binutils/binutils.hash +0 -1
index 27df47e91b..74765a4fbf 100644
@@ -1,5 +1,4 @@
 # From https://gcc.gnu.org/pub/binutils/releases/sha512.sum
-sha512  a37e042523bc46494d99d5637c3f3d8f9956d9477b748b3b1f6d7dfbb8d968ed52c932e88a4e946c6f77b8f48f1e1b360ca54c3d298f17193f3b4963472f6925  binutils-2.40.tar.xz
 sha512  5df45d0bd6ddabdce4f35878c041e46a92deef01e7dea5facc97fd65cc06b59abc6fba0eb454b68e571c7e14038dc823fe7f2263843e6e627b7444eaf0fe9374  binutils-2.41.tar.xz
 sha512  155f3ba14cd220102f4f29a4f1e5cfee3c48aa03b74603460d05afb73c70d6657a9d87eee6eb88bf13203fe6f31177a5c9addc04384e956e7da8069c8ecd20a6  binutils-2.42.tar.xz
 sha512  93e063163e54d6a6ee2bd48dc754270bf757a3635b49a702ed6b310e929e94063958512d191e66beaf44275f7ea60865dbde138b624626739679fcc306b133bb  binutils-2.43.tar.xz
package/elf2flt/elf2flt.mk +1 -11
index d5a7b9b5fd..077e661b96 100644
@@ -16,18 +16,8 @@ HOST_ELF2FLT_AUTORECONF = YES
 
 # elf2flt needs to link against libbfd.a and libiberty.a which are
 # provided by host-binutils, but not installed, so we poke directly
-# into the host-binutils build directory. Turns out that the location
-# of libbfd.a has changed in binutils >= 2.41, so we special case
-# binutils 2.39 and 2.40, which are the two remaining versions still
-# using the "old" path". Note: the ARC-special binutils version is not
-# considered because Buildroot only supports ARC CPUs with a MMU and
-# therefore host-elf2flt is never used on ARC. libiberty.a has
-# remained at the same location.
-ifeq ($(BR2_BINUTILS_VERSION_2_40_X),y)
-HOST_ELF2FLT_LIBBFD_PATH = $(HOST_BINUTILS_DIR)/bfd/libbfd.a
-else
+# into the host-binutils build directory.
 HOST_ELF2FLT_LIBBFD_PATH = $(HOST_BINUTILS_DIR)/bfd/.libs/libbfd.a
-endif
 
 # It is not exactly a host variant, but more a cross variant, which is
 # why we pass a special --target option.
Signature · 6 lines
2.30.2

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot