diff options
author | Andrey Konovalov <andrey.konovalov@linaro.org> | 2014-06-30 20:18:30 +0400 |
---|---|---|
committer | Andrey Konovalov <andrey.konovalov@linaro.org> | 2014-06-30 20:18:30 +0400 |
commit | cdbef9715d86453cd9d377bf3b3450ff449ecc2d (patch) | |
tree | 9207cdf48e2276149fba38c9eb750bb5a144f185 | |
parent | 1db32bd60a868224244d15924ce1a50a4c8053f2 (diff) |
Revert "kbuild: Use relative path when building in a subdir of the source tree"
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-- | Makefile | 12 |
1 files changed, 1 insertions, 11 deletions
@@ -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) |