Skip to content

Commit 8461735

Browse files
tpetazzonijacmet
authored andcommitted
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 <[email protected]> Reviewed-by: Sam Bobroff <[email protected]> Signed-off-by: Peter Korsgaard <[email protected]>
1 parent 4422eca commit 8461735

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

package/openocd/openocd.mk

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,20 @@ HOST_OPENOCD_CONF_OPTS = \
9999

100100
HOST_OPENOCD_DEPENDENCIES = host-libftdi host-libusb host-libusb-compat
101101

102+
# Avoid documentation rebuild. On PowerPC64(le), we patch the
103+
# configure script. Due to this, the version.texi files gets
104+
# regenerated, and then since it has a newer date than openocd.info,
105+
# openocd build system rebuilds the documentation. Unfortunately, this
106+
# documentation rebuild fails on old machines. We work around this by
107+
# faking the date of the generated version.texi file, to make the
108+
# build system believe the documentation doesn't need to be
109+
# regenerated.
110+
define OPENOCD_FIX_VERSION_TEXI
111+
touch -r $(@D)/doc/openocd.info $(@D)/doc/version.texi
112+
endef
113+
OPENOCD_POST_BUILD_HOOKS += OPENOCD_FIX_VERSION_TEXI
114+
HOST_OPENOCD_POST_BUILD_HOOKS += OPENOCD_FIX_VERSION_TEXI
115+
116+
102117
$(eval $(autotools-package))
103118
$(eval $(host-autotools-package))

0 commit comments

Comments
 (0)