kbuild: fix make dir/

kbuild added an extra '/' after the directory - resulting in all
files being rebuild in a subdirectory.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
diff --git a/Makefile b/Makefile
index 131950c..c380f58 100644
--- a/Makefile
+++ b/Makefile
@@ -1284,7 +1284,7 @@
 #  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 $@)))