aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Konovalov <andrey.konovalov@linaro.org>2014-06-30 20:18:30 +0400
committerAndrey Konovalov <andrey.konovalov@linaro.org>2014-06-30 20:18:30 +0400
commitcdbef9715d86453cd9d377bf3b3450ff449ecc2d (patch)
tree9207cdf48e2276149fba38c9eb750bb5a144f185
parent1db32bd60a868224244d15924ce1a50a4c8053f2 (diff)
This reverts commit 9da0763bdd82572be243fcf5161734f11568960f. That commit broke 'make deb-pkg' when building in a subdir of the source tree. Signed-off-by: Andrey Konovalov <andrey.konovalov@linaro.org>
-rw-r--r--Makefile12
1 files changed, 1 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index 4916d15eed79..e10228b6da2a 100644
--- a/Makefile
+++ b/Makefile
@@ -149,17 +149,7 @@ else
_all: modules
endif
-ifeq ($(KBUILD_SRC),)
- # building in the source tree
- srctree := .
-else
- ifeq ($(KBUILD_SRC)/,$(dir $(CURDIR)))
- # building in a subdirectory of the source tree
- srctree := ..
- else
- srctree := $(KBUILD_SRC)
- endif
-endif
+srctree := $(if $(KBUILD_SRC),$(KBUILD_SRC),.)
objtree := .
src := $(srctree)
obj := $(objtree)