From 11e881a63821ea209bda509d1e502d9ba270782d Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Sun, 23 Mar 2014 16:21:51 +0100 Subject: make it possible to do 'make -C sw/' even with builddir!=srcdir The change in partial_build.mk assumes all the Makefile's using it are in builddir// , but that seems to be the case. Change-Id: Iddc8fa2ec0842f181780f7491cf5a2244efd014a --- solenv/gbuild/partial_build.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'solenv') diff --git a/solenv/gbuild/partial_build.mk b/solenv/gbuild/partial_build.mk index 68e807b97615..eb2b5ccee365 100644 --- a/solenv/gbuild/partial_build.mk +++ b/solenv/gbuild/partial_build.mk @@ -22,7 +22,7 @@ gb_Side:=host endif ifeq (,$(BUILDDIR)) -BUILDDIR := $(dir $(realpath $(lastword $(MAKEFILE_LIST))))../.. +BUILDDIR := $(dir $(abspath $(firstword $(MAKEFILE_LIST)))).. endif ifeq ($(BUILD_TYPE),) -- cgit v1.2.3