From 3575291b880b5178115ce9377cf2b9b106a2e211 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Mon, 21 Sep 2020 17:49:45 +0300 Subject: kbuild: Allow building documentation subsets Add an optional argument to the --doc option to select documentation directories to build. Signed-off-by: Laurent Pinchart --- kbuild.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/kbuild.sh b/kbuild.sh index d5bd3c6..3ec4856 100755 --- a/kbuild.sh +++ b/kbuild.sh @@ -36,6 +36,7 @@ do_package_deb=0 opt_bootloader= opt_cmdline_file= opt_defconfig= +opt_doc_dirs='.' opt_make_opts= while [[ $# != 0 ]] ; do @@ -76,6 +77,10 @@ while [[ $# != 0 ]] ; do --doc) do_compile_doc=1 ;; + --doc=*) + do_compile_doc=1 + opt_doc_dirs="${option/--doc=/}" + ;; --) platform=auto ;; @@ -187,7 +192,7 @@ if [[ $do_compile_doc == 1 ]] ; then source $PWD/output/doc/bin/activate fi - $pmake DOCBOOKS='' htmldocs + $pmake SPHINXDIRS="${opt_doc_dirs}" htmldocs ) fi -- cgit v1.2.3