Revert "binutils: allow build on RHEL6"
Drop support for RHEL6 which has been unsupported by Poky
since 2.1.
This reverts commit e6870323bed60378abc8f8ae4a8ba2f5d1e7c790.
Tested: Built a witherspoon image
Change-Id: I37020fff870cf652dc344eca65d1ad869f0ef45f
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/common/recipes-devtools/binutils/binutils-cross-canadian_%.bbappend b/common/recipes-devtools/binutils/binutils-cross-canadian_%.bbappend
deleted file mode 120000
index 5cef5a7..0000000
--- a/common/recipes-devtools/binutils/binutils-cross-canadian_%.bbappend
+++ /dev/null
@@ -1 +0,0 @@
-binutils_%.bbappend
\ No newline at end of file
diff --git a/common/recipes-devtools/binutils/binutils-cross_%.bbappend b/common/recipes-devtools/binutils/binutils-cross_%.bbappend
deleted file mode 120000
index 5cef5a7..0000000
--- a/common/recipes-devtools/binutils/binutils-cross_%.bbappend
+++ /dev/null
@@ -1 +0,0 @@
-binutils_%.bbappend
\ No newline at end of file
diff --git a/common/recipes-devtools/binutils/binutils-crosssdk_%.bbappend b/common/recipes-devtools/binutils/binutils-crosssdk_%.bbappend
deleted file mode 120000
index 5cef5a7..0000000
--- a/common/recipes-devtools/binutils/binutils-crosssdk_%.bbappend
+++ /dev/null
@@ -1 +0,0 @@
-binutils_%.bbappend
\ No newline at end of file
diff --git a/common/recipes-devtools/binutils/binutils/0001-Remove-Wstack-usage-to-support-old-gcc.patch b/common/recipes-devtools/binutils/binutils/0001-Remove-Wstack-usage-to-support-old-gcc.patch
deleted file mode 100644
index fe79c27..0000000
--- a/common/recipes-devtools/binutils/binutils/0001-Remove-Wstack-usage-to-support-old-gcc.patch
+++ /dev/null
@@ -1,207 +0,0 @@
-From d3d5f6e646cec760c2f48455580da338f687d553 Mon Sep 17 00:00:00 2001
-From: Patrick Williams <patrick@stwcx.xyz>
-Date: Tue, 28 Mar 2017 22:01:58 -0500
-Subject: [PATCH] Remove -Wstack-usage to support old gcc
-
-Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
----
- bfd/configure | 14 --------------
- bfd/warning.m4 | 1 -
- binutils/configure | 14 --------------
- gas/configure | 14 --------------
- gold/configure | 14 --------------
- gprof/configure | 14 --------------
- ld/configure | 14 --------------
- opcodes/configure | 14 --------------
- 8 files changed, 99 deletions(-)
-
-diff --git a/bfd/configure b/bfd/configure
-index a437569..aa56ae0 100755
---- a/bfd/configure
-+++ b/bfd/configure
-@@ -12257,20 +12257,6 @@ fi
- rm -f conftest*
-
-
--# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
--cat confdefs.h - <<_ACEOF >conftest.$ac_ext
--/* end confdefs.h. */
--__GNUC__
--_ACEOF
--if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-- $EGREP "^[0-4]$" >/dev/null 2>&1; then :
--
--else
-- GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
--fi
--rm -f conftest*
--
--
- # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
- WARN_WRITE_STRINGS=""
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-diff --git a/bfd/warning.m4 b/bfd/warning.m4
-index 4c5b55d..2ceea02 100644
---- a/bfd/warning.m4
-+++ b/bfd/warning.m4
-@@ -28,7 +28,6 @@ GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
- AC_EGREP_CPP([^[0-3]$],[__GNUC__],,GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow")
-
- # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
--AC_EGREP_CPP([^[0-4]$],[__GNUC__],,GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144")
-
- # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
- WARN_WRITE_STRINGS=""
-diff --git a/binutils/configure b/binutils/configure
-index 6cbf17c..d789156 100755
---- a/binutils/configure
-+++ b/binutils/configure
-@@ -11962,20 +11962,6 @@ fi
- rm -f conftest*
-
-
--# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
--cat confdefs.h - <<_ACEOF >conftest.$ac_ext
--/* end confdefs.h. */
--__GNUC__
--_ACEOF
--if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-- $EGREP "^[0-4]$" >/dev/null 2>&1; then :
--
--else
-- GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
--fi
--rm -f conftest*
--
--
- # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
- WARN_WRITE_STRINGS=""
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-diff --git a/gas/configure b/gas/configure
-index f7753b8..76e5d43 100755
---- a/gas/configure
-+++ b/gas/configure
-@@ -11738,20 +11738,6 @@ fi
- rm -f conftest*
-
-
--# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
--cat confdefs.h - <<_ACEOF >conftest.$ac_ext
--/* end confdefs.h. */
--__GNUC__
--_ACEOF
--if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-- $EGREP "^[0-4]$" >/dev/null 2>&1; then :
--
--else
-- GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
--fi
--rm -f conftest*
--
--
- # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
- WARN_WRITE_STRINGS=""
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-diff --git a/gold/configure b/gold/configure
-index 8240c28..58273df 100755
---- a/gold/configure
-+++ b/gold/configure
-@@ -6740,20 +6740,6 @@ fi
- rm -f conftest*
-
-
--# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
--cat confdefs.h - <<_ACEOF >conftest.$ac_ext
--/* end confdefs.h. */
--__GNUC__
--_ACEOF
--if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-- $EGREP "^[0-4]$" >/dev/null 2>&1; then :
--
--else
-- GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
--fi
--rm -f conftest*
--
--
- # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
- WARN_WRITE_STRINGS=""
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-diff --git a/gprof/configure b/gprof/configure
-index bf3ecaa..37ef760 100755
---- a/gprof/configure
-+++ b/gprof/configure
-@@ -12118,20 +12118,6 @@ fi
- rm -f conftest*
-
-
--# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
--cat confdefs.h - <<_ACEOF >conftest.$ac_ext
--/* end confdefs.h. */
--__GNUC__
--_ACEOF
--if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-- $EGREP "^[0-4]$" >/dev/null 2>&1; then :
--
--else
-- GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
--fi
--rm -f conftest*
--
--
- # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
- WARN_WRITE_STRINGS=""
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-diff --git a/ld/configure b/ld/configure
-index f9be51a..350ea53 100755
---- a/ld/configure
-+++ b/ld/configure
-@@ -15575,20 +15575,6 @@ fi
- rm -f conftest*
-
-
--# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
--cat confdefs.h - <<_ACEOF >conftest.$ac_ext
--/* end confdefs.h. */
--__GNUC__
--_ACEOF
--if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-- $EGREP "^[0-4]$" >/dev/null 2>&1; then :
--
--else
-- GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
--fi
--rm -f conftest*
--
--
- # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
- WARN_WRITE_STRINGS=""
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-diff --git a/opcodes/configure b/opcodes/configure
-index f615634..c983a12 100755
---- a/opcodes/configure
-+++ b/opcodes/configure
-@@ -11525,20 +11525,6 @@ fi
- rm -f conftest*
-
-
--# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
--cat confdefs.h - <<_ACEOF >conftest.$ac_ext
--/* end confdefs.h. */
--__GNUC__
--_ACEOF
--if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-- $EGREP "^[0-4]$" >/dev/null 2>&1; then :
--
--else
-- GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
--fi
--rm -f conftest*
--
--
- # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
- WARN_WRITE_STRINGS=""
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
---
-2.7.2
-
diff --git a/common/recipes-devtools/binutils/binutils_%.bbappend b/common/recipes-devtools/binutils/binutils_%.bbappend
deleted file mode 100644
index 79a0e3d..0000000
--- a/common/recipes-devtools/binutils/binutils_%.bbappend
+++ /dev/null
@@ -1,3 +0,0 @@
-# TODO: openbmc/openbmc#1407 - Remove with RHEL6 support deprecation.
-FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:"
-SRC_URI += "file://0001-Remove-Wstack-usage-to-support-old-gcc.patch"