summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-09-21 17:49:45 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-12-14 14:44:26 +0200
commit3575291b880b5178115ce9377cf2b9b106a2e211 (patch)
tree8ec21ececd52aa8e9c6ea43f261ab3ccd0fb2713
parente13a7cfac04ebffd865e3c3ca0ab8f95ba2c7696 (diff)
kbuild: Allow building documentation subsets
Add an optional argument to the --doc option to select documentation directories to build. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rwxr-xr-xkbuild.sh7
1 files changed, 6 insertions, 1 deletions
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