mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 13:46:32 +00:00
gdb: prevent building the documentation
Force gdb to not build the documentation. This way we avoid depending on host-texinfo. This is a temporary fix until upstream accepts a proposed --disable-docs configure option. Since the documentation will not be build at all, we can remove the parts related to host-texinfo and MAKEINFO in the gdb.mk file. Fixes: http://autobuild.buildroot.net/results/dd5/dd50ed99abb2c8495def826866b184030953f90e/ Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Tested-by: Brendan Heading <brendanheading@gmail.com> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
1ac68fe2c9
commit
3aecfbd03d
@ -11,13 +11,11 @@ GDB_SOURCE = gdb-$(GDB_VERSION).tar.xz
|
|||||||
ifeq ($(BR2_arc),y)
|
ifeq ($(BR2_arc),y)
|
||||||
GDB_SITE = $(call github,foss-for-synopsys-dwc-arc-processors,binutils-gdb,$(GDB_VERSION))
|
GDB_SITE = $(call github,foss-for-synopsys-dwc-arc-processors,binutils-gdb,$(GDB_VERSION))
|
||||||
GDB_SOURCE = gdb-$(GDB_VERSION).tar.gz
|
GDB_SOURCE = gdb-$(GDB_VERSION).tar.gz
|
||||||
GDB_FROM_GIT = y
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_microblaze),y)
|
ifeq ($(BR2_microblaze),y)
|
||||||
GDB_SITE = $(call github,Xilinx,gdb,$(GDB_VERSION))
|
GDB_SITE = $(call github,Xilinx,gdb,$(GDB_VERSION))
|
||||||
GDB_SOURCE = gdb-$(GDB_VERSION).tar.gz
|
GDB_SOURCE = gdb-$(GDB_VERSION).tar.gz
|
||||||
GDB_FROM_GIT = y
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Use .tar.bz2 for 7.7.x since there was no .tar.xz release back then
|
# Use .tar.bz2 for 7.7.x since there was no .tar.xz release back then
|
||||||
@ -53,6 +51,13 @@ GDB_PRE_PATCH_HOOKS += GDB_XTENSA_PRE_PATCH
|
|||||||
HOST_GDB_PRE_PATCH_HOOKS += GDB_XTENSA_PRE_PATCH
|
HOST_GDB_PRE_PATCH_HOOKS += GDB_XTENSA_PRE_PATCH
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Prevent gdb to build the documentation
|
||||||
|
define GDB_DISABLE_DOC
|
||||||
|
$(SED) '/^SUBDIRS =/ s/doc//' $(@D)/gdb/Makefile.in
|
||||||
|
endef
|
||||||
|
GDB_PRE_CONFIGURE_HOOKS += GDB_DISABLE_DOC
|
||||||
|
HOST_GDB_PRE_CONFIGURE_HOOKS += GDB_DISABLE_DOC
|
||||||
|
|
||||||
# When gdb sources are fetched from the binutils-gdb repository, they
|
# When gdb sources are fetched from the binutils-gdb repository, they
|
||||||
# also contain the binutils sources, but binutils shouldn't be built,
|
# also contain the binutils sources, but binutils shouldn't be built,
|
||||||
# so we disable it.
|
# so we disable it.
|
||||||
@ -165,15 +170,6 @@ else
|
|||||||
HOST_GDB_CONF_OPTS += --without-python
|
HOST_GDB_CONF_OPTS += --without-python
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(GDB_FROM_GIT),y)
|
|
||||||
GDB_DEPENDENCIES += host-texinfo
|
|
||||||
HOST_GDB_DEPENDENCIES += host-texinfo
|
|
||||||
else
|
|
||||||
# don't generate documentation
|
|
||||||
GDB_CONF_ENV += ac_cv_prog_MAKEINFO=missing
|
|
||||||
HOST_GDB_CONF_ENV += ac_cv_prog_MAKEINFO=missing
|
|
||||||
endif
|
|
||||||
|
|
||||||
# legacy $arch-linux-gdb symlink
|
# legacy $arch-linux-gdb symlink
|
||||||
define HOST_GDB_ADD_SYMLINK
|
define HOST_GDB_ADD_SYMLINK
|
||||||
cd $(HOST_DIR)/usr/bin && \
|
cd $(HOST_DIR)/usr/bin && \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user