From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Blunck Subject: [PATCH] mk: fix external builds with relative output dir Date: Wed, 26 Apr 2017 23:01:06 +0200 Message-ID: <1493240466-3533-1-git-send-email-jblunck@infradead.org> To: dev@dpdk.org Return-path: Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by dpdk.org (Postfix) with ESMTP id A157E692F for ; Wed, 26 Apr 2017 23:01:24 +0200 (CEST) Received: by mail-wm0-f67.google.com with SMTP id u65so234437wmu.3 for ; Wed, 26 Apr 2017 14:01:24 -0700 (PDT) Received: from weierstrass.local.net ([91.200.110.56]) by smtp.gmail.com with ESMTPSA id b18sm270572eda.46.2017.04.26.14.01.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Apr 2017 14:01:23 -0700 (PDT) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" In case the output directory (O=) is undefined or a relative directory lets turn it into an absolute path before passing it on. Otherwise the output directory is created relative to the subdir, e.g. pktgen/app/build/... and pktgen/lib/lua/src/build/... Signed-off-by: Jan Blunck --- mk/rte.extsubdir.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mk/rte.extsubdir.mk b/mk/rte.extsubdir.mk index 3e733d8..d21791b 100644 --- a/mk/rte.extsubdir.mk +++ b/mk/rte.extsubdir.mk @@ -33,8 +33,8 @@ MAKEFLAGS += --no-print-directory ALL_DEPDIRS := $(patsubst DEPDIRS-%,%,$(filter DEPDIRS-%,$(.VARIABLES))) # output directory -O ?= . -BASE_OUTPUT ?= $(O) +O ?= $(CURDIR) +BASE_OUTPUT ?= $(abspath $(O)) CUR_SUBDIR ?= . .PHONY: all -- 2.7.4