[openwrt/openwrt] ccache: Build with ENABLE_DOCUMENTATION=OFF

LEDE Commits lede-commits at lists.infradead.org
Sun May 23 06:24:03 PDT 2021


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/2d1546832357a3a8bd18680bd31dd92050e739b2

commit 2d1546832357a3a8bd18680bd31dd92050e739b2
Author: David Adair <djabhead at aol.com>
AuthorDate: Fri May 14 16:04:27 2021 -0700

    ccache: Build with ENABLE_DOCUMENTATION=OFF
    
    This adjusts the Makefile to use the new option to turn off the
    doc builds. It will not cause any problems except a warning
    about unused options if combined with a ccache source missing
    the upstream patch.
    
    Since a config setting is required to re-enable the doc build this
    is equivalent to unconditionally disabling the docs if the config
    setting is not created.
    
    Signed-off-by: David Adair <djabhead at aol.com>
---
 tools/ccache/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tools/ccache/Makefile b/tools/ccache/Makefile
index b4dc81aaaa..3db6cc0818 100644
--- a/tools/ccache/Makefile
+++ b/tools/ccache/Makefile
@@ -25,6 +25,9 @@ CMAKE_HOST_OPTIONS += \
 	-DCMAKE_SKIP_RPATH=FALSE \
 	-DCMAKE_INSTALL_RPATH="${STAGING_DIR_HOST}/lib" \
 
+ifneq (docs-$(CONFIG_BUILD_DOCUMENTATION),docs-y)
+CMAKE_HOST_OPTIONS += -DENABLE_DOCUMENTATION=OFF
+endif
 
 define Host/Install/ccache
 	$(INSTALL_DIR) $(STAGING_DIR_HOST)/bin/



More information about the lede-commits mailing list