From: Amerigo Wang Date: Fri, 19 Jun 2009 07:06:54 +0000 (-0400) Subject: kbuild: fix build error during make htmldocs X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b767b9059fa75a353c9ad6e320ae080fbe15a951;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git kbuild: fix build error during make htmldocs 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 Signed-off-by: WANG Cong Acked-by: Randy Dunlap Signed-off-by: Sam Ravnborg --- diff --git a/scripts/basic/docproc.c b/scripts/basic/docproc.c index 4c9523ef9c00..99ca7a698687 100644 --- a/scripts/basic/docproc.c +++ b/scripts/basic/docproc.c @@ -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();