From: Sam Ravnborg Date: Thu, 6 Apr 2006 06:25:31 +0000 (+0200) Subject: kbuild: fix make dir/ X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=aa360879ed38fbe88057cc43f720881ab9e6a63a;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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 $@)))