split-docs: update rules generation

pass a DO_DOCS variable to rules.gen and rules for the binary-indep
target
This commit is contained in:
Yves-Alexis Perez 2015-11-11 12:45:36 +01:00
parent e3d56724e4
commit 8f6b13987a
2 changed files with 9 additions and 3 deletions

View File

@ -109,6 +109,8 @@ class Gencontrol(Base):
makeflags = makeflags.copy()
makeflags['ALL_FEATURESETS'] = ' '.join(fs_enabled)
makeflags['ALL_TRIPLETS'] = ' '.join(triplet_enabled)
if not self.config.merge('docs', None, None).get('enabled', True):
makeflags['DO_DOCS'] = False
super(Gencontrol, self).do_main_makefile(makefile, makeflags, extra)
# linux-source-$UPSTREAMVERSION will contain all kconfig files

10
debian/rules.real vendored
View File

@ -63,13 +63,17 @@ ifeq ($(MODULES),True)
binary-arch-flavour: install-headers_$(ARCH)_$(FEATURESET)_$(FLAVOUR)
endif
binary-indep: install-doc
binary-indep: install-manual
ifneq ($(DO_DOCS),False)
binary-indep: install-doc
binary-indep: install-manual
build-indep: $(STAMPS_DIR)/build-doc
else
build-indep:
endif
binary-indep: install-source
binary-indep: install-support
build-arch: $(STAMPS_DIR)/build_$(ARCH)_$(FEATURESET)_$(FLAVOUR)_$(TYPE)
build-indep: $(STAMPS_DIR)/build-doc
setup-flavour: $(STAMPS_DIR)/setup_$(ARCH)_$(FEATURESET)_$(FLAVOUR)