summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorWolfram Sang <w.sang@pengutronix.de>2012-10-24 11:12:20 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-10-25 08:38:03 +0200
commit6cc8d05446585e2b54fe9c282f83cbbd0005f7ce (patch)
tree3eaf4f9372603f022ac49febd926991a41a29533 /Makefile
parent975d6a0130758b32b07968f61b4c32a970af9cd9 (diff)
downloadbarebox-6cc8d05446585e2b54fe9c282f83cbbd0005f7ce.tar.gz
barebox-6cc8d05446585e2b54fe9c282f83cbbd0005f7ce.tar.xz
Makefile: disable CDPATH
CDPATH has sideeffects when generating barebox_default_env.h (printing the directory name into the header file), causing a build failure. Disable it for the build. Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
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)