summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 881680d8e6..55262ad940 100644
--- a/Makefile
+++ b/Makefile
@@ -136,6 +136,9 @@ ifeq ($(skip-makefile),)
PHONY += all
_all: all
+# CDPATH can have sideeffects; disable, since we do know where we want to cd to
+export CDPATH=
+
srctree := $(if $(KBUILD_SRC),$(KBUILD_SRC),$(CURDIR))
objtree := $(CURDIR)
src := $(srctree)