9
0
Fork 0

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>
This commit is contained in:
Wolfram Sang 2012-10-24 11:12:20 +02:00 committed by Sascha Hauer
parent 975d6a0130
commit 6cc8d05446
1 changed files with 3 additions and 0 deletions

View File

@ -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)