summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-02-26 22:22:16 (GMT)
committerPeter Korsgaard <peter@korsgaard.com>2017-02-28 08:51:42 (GMT)
commit84617352f3c0508b3f14b526318048b5629e23b6 (patch)
treedbb0dbbe6491936dce579fac0f03cf95d5f0af74
parent4422eca2d418e2b817b419ff6c4c62f7f4cb7871 (diff)
downloadbuildroot-84617352f3c0508b3f14b526318048b5629e23b6.tar.gz
buildroot-84617352f3c0508b3f14b526318048b5629e23b6.tar.bz2
openocd: avoid documentation rebuild to fix build issues
On PowerPC64(le), we patch all configure scripts. Due to this, the version.texi in OpenOCD files gets regenerated, and then since it has a newer date than openocd.info, openocd build system rebuilds the documentation. Unfortunately, this documentation rebuild fails on old machines. We work around this by faking the date of the generated version.texi file, to make the build system believe the documentation doesn't need to be regenerated. Fixes: http://autobuild.buildroot.net/results/3cbe65a46e75b8e67846d593884c96df97dec7a4 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: Sam Bobroff <sam.bobroff@au1.ibm.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/openocd/openocd.mk15
1 files changed, 15 insertions, 0 deletions
diff --git a/package/openocd/openocd.mk b/package/openocd/openocd.mk
index 21a302f..0d18365 100644
--- a/package/openocd/openocd.mk
+++ b/package/openocd/openocd.mk
@@ -99,5 +99,20 @@ HOST_OPENOCD_CONF_OPTS = \
HOST_OPENOCD_DEPENDENCIES = host-libftdi host-libusb host-libusb-compat
+# Avoid documentation rebuild. On PowerPC64(le), we patch the
+# configure script. Due to this, the version.texi files gets
+# regenerated, and then since it has a newer date than openocd.info,
+# openocd build system rebuilds the documentation. Unfortunately, this
+# documentation rebuild fails on old machines. We work around this by
+# faking the date of the generated version.texi file, to make the
+# build system believe the documentation doesn't need to be
+# regenerated.
+define OPENOCD_FIX_VERSION_TEXI
+ touch -r $(@D)/doc/openocd.info $(@D)/doc/version.texi
+endef
+OPENOCD_POST_BUILD_HOOKS += OPENOCD_FIX_VERSION_TEXI
+HOST_OPENOCD_POST_BUILD_HOOKS += OPENOCD_FIX_VERSION_TEXI
+
+
$(eval $(autotools-package))
$(eval $(host-autotools-package))