diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-09-21 17:49:45 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-12-14 14:44:26 +0200 |
commit | 3575291b880b5178115ce9377cf2b9b106a2e211 (patch) | |
tree | 8ec21ececd52aa8e9c6ea43f261ab3ccd0fb2713 | |
parent | e13a7cfac04ebffd865e3c3ca0ab8f95ba2c7696 (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-x | kbuild.sh | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |