summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Ravnborg <sam@mars.ravnborg.org>2006-04-06 08:25:31 +0200
committerSam Ravnborg <sam@mars.ravnborg.org>2006-04-06 08:25:31 +0200
commitaa360879ed38fbe88057cc43f720881ab9e6a63a (patch)
tree9607ad4018d12520f38bc3dcab132e8c3260966f
parentea88df9bf895720289331e41ed73cdcb04059900 (diff)
downloadlinux-3.10-aa360879ed38fbe88057cc43f720881ab9e6a63a.tar.gz
linux-3.10-aa360879ed38fbe88057cc43f720881ab9e6a63a.tar.bz2
linux-3.10-aa360879ed38fbe88057cc43f720881ab9e6a63a.zip
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>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 131950c0291..c380f5891f4 100644
--- 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 $@)))