crossgcc: Replace binutils no-bfd-doc patch with configure option

It is not more necessary to patch binutils, we can
pass an argument during build time to not build docs.
Regenerate binutils-2.37_no-makeinfo.patch.

Change-Id: If600f0bb46db5f84956940683a7adc83eaca01e5
Signed-off-by: Elias Souza <eliascontato@protonmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/73115
Reviewed-by: Felix Singer <felixsinger@posteo.net>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
This commit is contained in:
Elias Souza 2023-02-18 12:53:34 -03:00 committed by Felix Singer
parent 1548032c98
commit 17d9d897f0
3 changed files with 80 additions and 118 deletions

View File

@ -718,6 +718,8 @@ build_BINUTILS() {
--enable-lto \ --enable-lto \
--enable-gold \ --enable-gold \
--enable-multilib \ --enable-multilib \
--disable-docs \
--disable-texinfo \
${BINUTILS_OPTIONS} \ ${BINUTILS_OPTIONS} \
CFLAGS="$HOSTCFLAGS" \ CFLAGS="$HOSTCFLAGS" \
CXXFLAGS="$HOSTCFLAGS" || touch .failed CXXFLAGS="$HOSTCFLAGS" || touch .failed

View File

@ -1,12 +0,0 @@
diff -ur binutils-2.32/bfd/Makefile.in binutils-2.32.patched/bfd/Makefile.in
--- binutils-2.32/bfd/Makefile.in
+++ binutils-2.32.patched/bfd/Makefile.in
@@ -459,7 +459,7 @@
ACLOCAL_AMFLAGS = -I . -I .. -I ../config
INCDIR = $(srcdir)/../include
CSEARCH = -I. -I$(srcdir) -I$(INCDIR)
-SUBDIRS = doc po
+SUBDIRS = po
bfddocdir = doc
libbfd_la_LDFLAGS = $(am__append_1) -release `cat libtool-soversion` \
@SHARED_LDFLAGS@ $(am__empty)

View File

@ -1,22 +1,7 @@
It fails to compile when using "MAKEINFO = @MAKEINFO@": diff --git a/Makefile.in b/Makefile.in
binutils-gdb/missing: 81: makeinfo: not found index 9b3a5d75..b8347953 100644
WARNING: 'makeinfo' is missing on your system. --- a/Makefile.in
You should only need it if you modified a '.texi' file, or +++ b/Makefile.in
any other file indirectly affecting the aspect of the manual.
You might want to install the Texinfo package:
<http://www.gnu.org/software/texinfo/>
The spurious makeinfo call might also be the consequence of
using a buggy 'make' (AIX, DU, IRIX), in which case you might
want to install GNU make:
<http://www.gnu.org/software/make/>
make[4]: *** [Makefile:507: as.info] Error 127
Current patch will change that to "MAKEINFO = true"
diff --git binutils-2.34/Makefile.in binutils-2.34/Makefile.in
index af38671cbe..978d445825 100644
--- binutils-2.34/Makefile.in
+++ binutils-2.34/Makefile.in
@@ -370,7 +370,7 @@ YACC = @YACC@ @@ -370,7 +370,7 @@ YACC = @YACC@
FLEX = @FLEX@ FLEX = @FLEX@
LEX = @LEX@ LEX = @LEX@
@ -26,10 +11,10 @@ index af38671cbe..978d445825 100644
EXPECT = @EXPECT@ EXPECT = @EXPECT@
RUNTEST = @RUNTEST@ RUNTEST = @RUNTEST@
diff --git binutils-2.34/Makefile.tpl binutils-2.34/Makefile.tpl diff --git a/Makefile.tpl b/Makefile.tpl
index 5b118a8ba4..2b41fa28ce 100644 index 84fee3dd..79a3ea7a 100644
--- binutils-2.34/Makefile.tpl --- a/Makefile.tpl
+++ binutils-2.34/Makefile.tpl +++ b/Makefile.tpl
@@ -373,7 +373,7 @@ YACC = @YACC@ @@ -373,7 +373,7 @@ YACC = @YACC@
FLEX = @FLEX@ FLEX = @FLEX@
LEX = @LEX@ LEX = @LEX@
@ -39,11 +24,11 @@ index 5b118a8ba4..2b41fa28ce 100644
EXPECT = @EXPECT@ EXPECT = @EXPECT@
RUNTEST = @RUNTEST@ RUNTEST = @RUNTEST@
diff --git binutils-2.34/bfd/Makefile.in binutils-2.34/bfd/Makefile.in diff --git a/bfd/Makefile.in b/bfd/Makefile.in
index 7d3b9c1c5a..c062314063 100644 index 12807d99..c42976cb 100644
--- binutils-2.34/bfd/Makefile.in --- a/bfd/Makefile.in
+++ binutils-2.34/bfd/Makefile.in +++ b/bfd/Makefile.in
@@ -342,7 +342,7 @@ LIPO = @LIPO@ @@ -343,7 +343,7 @@ LIPO = @LIPO@
LN_S = @LN_S@ LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@ LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@ MAINT = @MAINT@
@ -52,11 +37,11 @@ index 7d3b9c1c5a..c062314063 100644
MKDIR_P = @MKDIR_P@ MKDIR_P = @MKDIR_P@
MKINSTALLDIRS = @MKINSTALLDIRS@ MKINSTALLDIRS = @MKINSTALLDIRS@
MSGFMT = @MSGFMT@ MSGFMT = @MSGFMT@
diff --git binutils-2.34/bfd/Makefile.in.orig binutils-2.34/bfd/Makefile.in.orig diff --git a/bfd/doc/Makefile.in b/bfd/doc/Makefile.in
index 78555ccbbc..861fc3570d 100644 index 0724b778..ff6cf159 100644
--- binutils-2.34/bfd/Makefile.in.orig --- a/bfd/doc/Makefile.in
+++ binutils-2.34/bfd/Makefile.in.orig +++ b/bfd/doc/Makefile.in
@@ -342,7 +342,7 @@ LIPO = @LIPO@ @@ -285,7 +285,7 @@ LIPO = @LIPO@
LN_S = @LN_S@ LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@ LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@ MAINT = @MAINT@
@ -65,24 +50,11 @@ index 78555ccbbc..861fc3570d 100644
MKDIR_P = @MKDIR_P@ MKDIR_P = @MKDIR_P@
MKINSTALLDIRS = @MKINSTALLDIRS@ MKINSTALLDIRS = @MKINSTALLDIRS@
MSGFMT = @MSGFMT@ MSGFMT = @MSGFMT@
diff --git binutils-2.34/bfd/doc/Makefile.in binutils-2.34/bfd/doc/Makefile.in diff --git a/binutils/Makefile.in b/binutils/Makefile.in
index 2c1ddd45b8..b3972192e7 100644 index bed8fef6..4066d24f 100644
--- binutils-2.34/bfd/doc/Makefile.in --- a/binutils/Makefile.in
+++ binutils-2.34/bfd/doc/Makefile.in +++ b/binutils/Makefile.in
@@ -284,7 +284,7 @@ LIPO = @LIPO@ @@ -469,7 +469,7 @@ LN_S = @LN_S@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@
-MAKEINFO = @MAKEINFO@
+MAKEINFO = true
MKDIR_P = @MKDIR_P@
MKINSTALLDIRS = @MKINSTALLDIRS@
MSGFMT = @MSGFMT@
diff --git binutils-2.34/binutils/Makefile.in binutils-2.34/binutils/Makefile.in
index 39f08563f9..91d2287c75 100644
--- binutils-2.34/binutils/Makefile.in
+++ binutils-2.34/binutils/Makefile.in
@@ -463,7 +463,7 @@ LN_S = @LN_S@
LTLIBICONV = @LTLIBICONV@ LTLIBICONV = @LTLIBICONV@
LTLIBOBJS = @LTLIBOBJS@ LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@ MAINT = @MAINT@
@ -91,11 +63,11 @@ index 39f08563f9..91d2287c75 100644
MKDIR_P = @MKDIR_P@ MKDIR_P = @MKDIR_P@
MKINSTALLDIRS = @MKINSTALLDIRS@ MKINSTALLDIRS = @MKINSTALLDIRS@
MSGFMT = @MSGFMT@ MSGFMT = @MSGFMT@
diff --git binutils-2.34/binutils/doc/Makefile.in binutils-2.34/binutils/doc/Makefile.in diff --git a/binutils/doc/Makefile.in b/binutils/doc/Makefile.in
index b0e7b7b6c8..dbb21dd47a 100644 index 024a642e..c66d21de 100644
--- binutils-2.34/binutils/doc/Makefile.in --- a/binutils/doc/Makefile.in
+++ binutils-2.34/binutils/doc/Makefile.in +++ b/binutils/doc/Makefile.in
@@ -298,7 +298,7 @@ LN_S = @LN_S@ @@ -302,7 +302,7 @@ LN_S = @LN_S@
LTLIBICONV = @LTLIBICONV@ LTLIBICONV = @LTLIBICONV@
LTLIBOBJS = @LTLIBOBJS@ LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@ MAINT = @MAINT@
@ -104,11 +76,11 @@ index b0e7b7b6c8..dbb21dd47a 100644
MKDIR_P = @MKDIR_P@ MKDIR_P = @MKDIR_P@
MKINSTALLDIRS = @MKINSTALLDIRS@ MKINSTALLDIRS = @MKINSTALLDIRS@
MSGFMT = @MSGFMT@ MSGFMT = @MSGFMT@
diff --git binutils-2.34/gas/Makefile.in binutils-2.34/gas/Makefile.in diff --git a/gas/Makefile.in b/gas/Makefile.in
index 85c7b04daa..882db6dd81 100644 index f3d66b8e..5a53a9cb 100644
--- binutils-2.34/gas/Makefile.in --- a/gas/Makefile.in
+++ binutils-2.34/gas/Makefile.in +++ b/gas/Makefile.in
@@ -318,7 +318,7 @@ LIPO = @LIPO@ @@ -319,7 +319,7 @@ LIPO = @LIPO@
LN_S = @LN_S@ LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@ LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@ MAINT = @MAINT@
@ -117,11 +89,11 @@ index 85c7b04daa..882db6dd81 100644
MKDIR_P = @MKDIR_P@ MKDIR_P = @MKDIR_P@
MKINSTALLDIRS = @MKINSTALLDIRS@ MKINSTALLDIRS = @MKINSTALLDIRS@
MSGFMT = @MSGFMT@ MSGFMT = @MSGFMT@
diff --git binutils-2.34/gas/doc/Makefile.in binutils-2.34/gas/doc/Makefile.in diff --git a/gas/doc/Makefile.in b/gas/doc/Makefile.in
index f2336ec8c9..d4c36366a1 100644 index 89d2ca06..d98a8883 100644
--- binutils-2.34/gas/doc/Makefile.in --- a/gas/doc/Makefile.in
+++ binutils-2.34/gas/doc/Makefile.in +++ b/gas/doc/Makefile.in
@@ -280,7 +280,7 @@ LIPO = @LIPO@ @@ -281,7 +281,7 @@ LIPO = @LIPO@
LN_S = @LN_S@ LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@ LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@ MAINT = @MAINT@
@ -130,10 +102,10 @@ index f2336ec8c9..d4c36366a1 100644
MKDIR_P = @MKDIR_P@ MKDIR_P = @MKDIR_P@
MKINSTALLDIRS = @MKINSTALLDIRS@ MKINSTALLDIRS = @MKINSTALLDIRS@
MSGFMT = @MSGFMT@ MSGFMT = @MSGFMT@
diff --git binutils-2.34/gold/Makefile.in binutils-2.34/gold/Makefile.in diff --git a/gold/Makefile.in b/gold/Makefile.in
index f2906ede8b..ac4fad5d55 100644 index 9fd21214..52e5f365 100644
--- binutils-2.34/gold/Makefile.in --- a/gold/Makefile.in
+++ binutils-2.34/gold/Makefile.in +++ b/gold/Makefile.in
@@ -558,7 +558,7 @@ LIBS = @LIBS@ @@ -558,7 +558,7 @@ LIBS = @LIBS@
LN_S = @LN_S@ LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@ LTLIBOBJS = @LTLIBOBJS@
@ -143,11 +115,11 @@ index f2906ede8b..ac4fad5d55 100644
MERGE_CONSTANTS_FLAG = @MERGE_CONSTANTS_FLAG@ MERGE_CONSTANTS_FLAG = @MERGE_CONSTANTS_FLAG@
MKDIR_P = @MKDIR_P@ MKDIR_P = @MKDIR_P@
MKINSTALLDIRS = @MKINSTALLDIRS@ MKINSTALLDIRS = @MKINSTALLDIRS@
diff --git binutils-2.34/gold/testsuite/Makefile.in binutils-2.34/gold/testsuite/Makefile.in diff --git a/gold/testsuite/Makefile.in b/gold/testsuite/Makefile.in
index 9f29dc638c..6907fe1f9a 100644 index 7b4b7832..090a555f 100644
--- binutils-2.34/gold/testsuite/Makefile.in --- a/gold/testsuite/Makefile.in
+++ binutils-2.34/gold/testsuite/Makefile.in +++ b/gold/testsuite/Makefile.in
@@ -2625,7 +2625,7 @@ LIBS = @LIBS@ @@ -2644,7 +2644,7 @@ LIBS = @LIBS@
LN_S = @LN_S@ LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@ LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@ MAINT = @MAINT@
@ -156,11 +128,11 @@ index 9f29dc638c..6907fe1f9a 100644
MERGE_CONSTANTS_FLAG = @MERGE_CONSTANTS_FLAG@ MERGE_CONSTANTS_FLAG = @MERGE_CONSTANTS_FLAG@
MKDIR_P = @MKDIR_P@ MKDIR_P = @MKDIR_P@
MKINSTALLDIRS = @MKINSTALLDIRS@ MKINSTALLDIRS = @MKINSTALLDIRS@
diff --git binutils-2.34/gprof/Makefile.in binutils-2.34/gprof/Makefile.in diff --git a/gprof/Makefile.in b/gprof/Makefile.in
index efc2b80eb8..012f186281 100644 index 0f766a36..b8c07e2b 100644
--- binutils-2.34/gprof/Makefile.in --- a/gprof/Makefile.in
+++ binutils-2.34/gprof/Makefile.in +++ b/gprof/Makefile.in
@@ -349,7 +349,7 @@ LIPO = @LIPO@ @@ -351,7 +351,7 @@ LIPO = @LIPO@
LN_S = @LN_S@ LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@ LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@ MAINT = @MAINT@
@ -169,11 +141,11 @@ index efc2b80eb8..012f186281 100644
MKDIR_P = @MKDIR_P@ MKDIR_P = @MKDIR_P@
MKINSTALLDIRS = @MKINSTALLDIRS@ MKINSTALLDIRS = @MKINSTALLDIRS@
MSGFMT = @MSGFMT@ MSGFMT = @MSGFMT@
diff --git binutils-2.34/ld/Makefile.in binutils-2.34/ld/Makefile.in diff --git a/ld/Makefile.in b/ld/Makefile.in
index 46d9b14077..2f2b0ae3ce 100644 index ef2e99e0..9775d3d2 100644
--- binutils-2.34/ld/Makefile.in --- a/ld/Makefile.in
+++ binutils-2.34/ld/Makefile.in +++ b/ld/Makefile.in
@@ -429,7 +429,7 @@ LIPO = @LIPO@ @@ -428,7 +428,7 @@ LIPO = @LIPO@
LN_S = @LN_S@ LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@ LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@ MAINT = @MAINT@
@ -182,11 +154,11 @@ index 46d9b14077..2f2b0ae3ce 100644
MKDIR_P = @MKDIR_P@ MKDIR_P = @MKDIR_P@
MKINSTALLDIRS = @MKINSTALLDIRS@ MKINSTALLDIRS = @MKINSTALLDIRS@
MSGFMT = @MSGFMT@ MSGFMT = @MSGFMT@
diff --git binutils-2.34/libctf/Makefile.in binutils-2.34/libctf/Makefile.in diff --git a/libctf/Makefile.in b/libctf/Makefile.in
index 3e8a0172f7..32dc1f08f7 100644 index 5cfa100f..8b3bf7ab 100644
--- binutils-2.34/libctf/Makefile.in --- a/libctf/Makefile.in
+++ binutils-2.34/libctf/Makefile.in +++ b/libctf/Makefile.in
@@ -328,7 +328,7 @@ LIPO = @LIPO@ @@ -360,7 +360,7 @@ LIPO = @LIPO@
LN_S = @LN_S@ LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@ LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@ MAINT = @MAINT@
@ -195,10 +167,10 @@ index 3e8a0172f7..32dc1f08f7 100644
MKDIR_P = @MKDIR_P@ MKDIR_P = @MKDIR_P@
NM = @NM@ NM = @NM@
NMEDIT = @NMEDIT@ NMEDIT = @NMEDIT@
diff --git binutils-2.34/libiberty/Makefile.in binutils-2.34/libiberty/Makefile.in diff --git a/libiberty/Makefile.in b/libiberty/Makefile.in
index fe738d0db4..6d902c5b7b 100644 index d19e14a2..6b1dd3d7 100644
--- binutils-2.34/libiberty/Makefile.in --- a/libiberty/Makefile.in
+++ binutils-2.34/libiberty/Makefile.in +++ b/libiberty/Makefile.in
@@ -56,7 +56,7 @@ CC = @CC@ @@ -56,7 +56,7 @@ CC = @CC@
CFLAGS = @CFLAGS@ CFLAGS = @CFLAGS@
CPPFLAGS = @CPPFLAGS@ CPPFLAGS = @CPPFLAGS@
@ -208,11 +180,11 @@ index fe738d0db4..6d902c5b7b 100644
PERL = @PERL@ PERL = @PERL@
PICFLAG = @PICFLAG@ PICFLAG = @PICFLAG@
diff --git binutils-2.34/opcodes/Makefile.in binutils-2.34/opcodes/Makefile.in diff --git a/opcodes/Makefile.in b/opcodes/Makefile.in
index 8564803fc7..fa790026ac 100644 index 42c15f00..82b8dc9a 100644
--- binutils-2.34/opcodes/Makefile.in --- a/opcodes/Makefile.in
+++ binutils-2.34/opcodes/Makefile.in +++ b/opcodes/Makefile.in
@@ -322,7 +322,7 @@ LIPO = @LIPO@ @@ -323,7 +323,7 @@ LIPO = @LIPO@
LN_S = @LN_S@ LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@ LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@ MAINT = @MAINT@
@ -221,10 +193,10 @@ index 8564803fc7..fa790026ac 100644
MKDIR_P = @MKDIR_P@ MKDIR_P = @MKDIR_P@
MKINSTALLDIRS = @MKINSTALLDIRS@ MKINSTALLDIRS = @MKINSTALLDIRS@
MSGFMT = @MSGFMT@ MSGFMT = @MSGFMT@
diff --git binutils-2.34/zlib/Makefile.in binutils-2.34/zlib/Makefile.in diff --git a/zlib/Makefile.in b/zlib/Makefile.in
index 062dc04e80..4abb5ceeaa 100644 index 062dc04e..4abb5cee 100644
--- binutils-2.34/zlib/Makefile.in --- a/zlib/Makefile.in
+++ binutils-2.34/zlib/Makefile.in +++ b/zlib/Makefile.in
@@ -304,7 +304,7 @@ LIPO = @LIPO@ @@ -304,7 +304,7 @@ LIPO = @LIPO@
LN_S = @LN_S@ LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@ LTLIBOBJS = @LTLIBOBJS@