summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 131950c02919..c380f5891f4f 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 $@)))