kbuild: fix make dir/
authorSam Ravnborg <sam@mars.ravnborg.org>
Thu, 6 Apr 2006 06:25:31 +0000 (08:25 +0200)
committerSam Ravnborg <sam@mars.ravnborg.org>
Thu, 6 Apr 2006 06:25:31 +0000 (08:25 +0200)
kbuild added an extra '/' after the directory - resulting in all
files being rebuild in a subdirectory.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Makefile

index 131950c02919fa467ec1d95155808292e2dfbece..c380f5891f4fd6c19eb098b0ad5bc81205e69c35 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1284,7 +1284,7 @@ kernelversion:
 #  build-dir  => directory in kernel source tree to use
 
 ifeq ($(KBUILD_EXTMOD),)
-        build-dir  = $(dir $@)
+        build-dir  = $(patsubst %/,%,$(dir $@))
         target-dir = $(dir $@)
 else
         zap-slash=$(filter-out .,$(patsubst %/,%,$(dir $@)))