[oe-commits] Koen Kooi : binutils 2.20.1: add -Werror hack to get the target version to build

git version control git at git.openembedded.org
Mon Oct 10 17:59:38 UTC 2011


Module: meta-openembedded.git
Branch: master
Commit: 2b5f1a5e0c627d49d37d5eac2179c552e85d1c1a
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=2b5f1a5e0c627d49d37d5eac2179c552e85d1c1a

Author: Koen Kooi <koen at dominion.thruhere.net>
Date:   Mon Oct 10 19:22:47 2011 +0200

binutils 2.20.1: add -Werror hack to get the target version to build

Signed-off-by: Koen Kooi <koen at dominion.thruhere.net>

---

 .../recipes-devtools/binutils/binutils_2.20.1.bb   |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/meta-oe/recipes-devtools/binutils/binutils_2.20.1.bb b/meta-oe/recipes-devtools/binutils/binutils_2.20.1.bb
index d4eb516..ea61136 100644
--- a/meta-oe/recipes-devtools/binutils/binutils_2.20.1.bb
+++ b/meta-oe/recipes-devtools/binutils/binutils_2.20.1.bb
@@ -1,6 +1,6 @@
 require binutils.inc
 
-PR = "r7"
+PR = "r8"
 
 LIC_FILES_CHKSUM="\
     file://src-release;endline=17;md5=4830a9ef968f3b18dd5e9f2c00db2d35\
@@ -40,3 +40,13 @@ SRC_URI[md5sum] = "2b9dc8f2b7dbd5ec5992c6e29de0b764"
 SRC_URI[sha256sum] = "71d37c96451333c5c0b84b170169fdcb138bbb27397dc06281905d9717c8ed64"
 
 BBCLASSEXTEND = "native"
+
+do_configure_prepend() {
+	sed -i -e 's: -Werror::g' ${S}/bfd/warning.m4
+
+	# These aren't getting regenerated by autotools.bbclass
+	for i in $(find ${S} -name "configure") ; do
+		sed -i -e 's: -Werror::g' $i
+	done
+}
+





More information about the Openembedded-commits mailing list