Skip to content

Commit

Permalink
kbuild: fix build error during make htmldocs
Browse files Browse the repository at this point in the history
Fix the following build error when do 'make htmldocs':

 DOCPROC Documentation/DocBook/debugobjects.xml
exec /scripts/kernel-doc: No such file or directory
exec /scripts/kernel-doc: No such file or directory

Reported-by: Randy Dunlap <[email protected]>
Signed-off-by: WANG Cong <[email protected]>
Acked-by: Randy Dunlap <[email protected]>
Signed-off-by: Sam Ravnborg <[email protected]>
  • Loading branch information
Amerigo Wang authored and sravnborg committed Jun 20, 2009
1 parent fb20871 commit b767b90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/basic/docproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ int main(int argc, char *argv[])
if (!srctree)
srctree = getcwd(NULL, 0);
kernsrctree = getenv("KBUILD_SRC");
if (!kernsrctree)
if (!kernsrctree || !*kernsrctree)
kernsrctree = srctree;
if (argc != 3) {
usage();
Expand Down

0 comments on commit b767b90

Please sign in to comment.