diff options
| author | Randy Dunlap <randy.dunlap@oracle.com> | 2008-03-13 15:32:43 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-03-13 16:11:43 -0400 |
| commit | bd0e88e5174035d69204636289a21dc4c14238ec (patch) | |
| tree | d9e7df3892833e7b81eff6bce86d0a5c2f4a51be /scripts/kernel-doc | |
| parent | fd28841d2d0b1468b03288b331692769ad024b5e (diff) | |
kernel-doc: set verbose mode via environment
Honor the environment variable "KBUILD_VERBOSE=1" (as set by make V=1) to
enable verbose mode in scripts/kernel-doc. Useful for getting more info and
warnings from kernel-doc.
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/kernel-doc')
| -rwxr-xr-x | scripts/kernel-doc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc index 74c2f9db2aac..263d04ab2d94 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc | |||
| @@ -247,6 +247,10 @@ my ($function, %function_table,%parametertypes,$declaration_purpose); | |||
| 247 | my ($type,$declaration_name,$return_type); | 247 | my ($type,$declaration_name,$return_type); |
| 248 | my ($newsection,$newcontents,$prototype,$filelist, $brcount, %source_map); | 248 | my ($newsection,$newcontents,$prototype,$filelist, $brcount, %source_map); |
| 249 | 249 | ||
| 250 | if (defined($ENV{'KBUILD_VERBOSE'})) { | ||
| 251 | $verbose = "$ENV{'KBUILD_VERBOSE'}"; | ||
| 252 | } | ||
| 253 | |||
| 250 | # Generated docbook code is inserted in a template at a point where | 254 | # Generated docbook code is inserted in a template at a point where |
| 251 | # docbook v3.1 requires a non-zero sequence of RefEntry's; see: | 255 | # docbook v3.1 requires a non-zero sequence of RefEntry's; see: |
| 252 | # http://www.oasis-open.org/docbook/documentation/reference/html/refentry.html | 256 | # http://www.oasis-open.org/docbook/documentation/reference/html/refentry.html |
