[Buildroot] [PATCH v2 3/3] package/binutils: use our missing script to disable the doc

Romain Naour romain.naour at gmail.com
Wed Mar 9 12:29:42 UTC 2016


Like for gdb, use our 'missing' script to workaround a build issue when makeinfo
is missing on the host.

This fixes the issue with binutils >= 2.26.

Signed-off-by: Romain Naour <romain.naour at gmail.com>
---
v2: Remove the script bundled with binutils sources an create a symlink to our
    customized 'missing' script.
---
 package/binutils/binutils.mk | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/package/binutils/binutils.mk b/package/binutils/binutils.mk
index 0f75c1d..799f083 100644
--- a/package/binutils/binutils.mk
+++ b/package/binutils/binutils.mk
@@ -52,10 +52,19 @@ BINUTILS_CONF_OPTS = \
 	$(BINUTILS_EXTRA_CONFIG_OPTIONS)
 
 # Don't build documentation. It takes up extra space / build time,
-# and sometimes needs specific makeinfo versions to work
+# and sometimes needs specific makeinfo versions to work.
 BINUTILS_CONF_ENV += ac_cv_prog_MAKEINFO=missing
 HOST_BINUTILS_CONF_ENV += ac_cv_prog_MAKEINFO=missing
 
+# Since binutils use an updated version of the 'missing' script from automake
+# >= v1.12b, use our customized version.
+define BINUTILS_DISABLE_DOC
+	rm -f $(@D)/missing
+	ln -s $(TOPDIR)/support/scripts/missing $(@D)/missing
+endef
+BINUTILS_PRE_CONFIGURE_HOOKS += BINUTILS_DISABLE_DOC
+HOST_BINUTILS_PRE_CONFIGURE_HOOKS += BINUTILS_DISABLE_DOC
+
 # Install binutils after busybox to prefer full-blown utilities
 ifeq ($(BR2_PACKAGE_BUSYBOX),y)
 BINUTILS_DEPENDENCIES += busybox
-- 
2.5.0




More information about the buildroot mailing list