From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id; bh=4Vt1OiPFCBj1KS/Bi8k8w5Ra+yETfTw0kRAVmERzJbE=; b=BZ6wFcHoKaPRj2soigG9hjG61ciU5oxqxd+CvO3EcCTcKfBdm7fGhHGW01yBiWDXuE GyIIrGML4cKWTyyb+dTTALvbQhh5ENCHlEGyn1WH3sCCufvAEhXbiJcO69PnV35TJgoI 3MVAWyKcwLsUQ7rCByIG/uP4jKKF3xAr55iftPFLRaSGfxr1OcRTAdokCiaUks/ibWHH L/DCsIaLML/9/BJHY5JDNio0Ms35hRNSgeUqJl46PFJeGvKrKUS7l7AmXL38vymyBRHn 7O2dcY598GNb/TE9QO76VPYD3u5J0HBNJoEN9rm8k1L8uM4zJSBMZQKb6QJvCqxq+2J9 ISUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id; bh=4Vt1OiPFCBj1KS/Bi8k8w5Ra+yETfTw0kRAVmERzJbE=; b=UJHM34Wq+XGl5rouHTpzWMx5jiEa7hOnCFhmA/89GzgsyT6yncC+jze3ueRYzYoIy0 g18ceApnhILCZHOrn0nhM2V5ZAgins/CScUiLdew9V57qkljF1ZgCD3DjWfUVTn9t6S8 AA9mzXQxyYEhwI2WtW2tV1NysGGonaEaAd2E3oPnit28CFYjltRy/Hb265LOBeRealtJ ode6q7E3ZhAGdSi5/+RJhtNYefE/wMT0IXfUrR3U0yaKt3okvfsjagwh9YI4xNUJMccq 6qJvKLVXazJYuyCmdgSs5qa3ZDgbess+0KLgKhgS94l4o4692HgSCau3XJ+TR050Iutm N+Mw== X-Gm-Message-State: AN3rC/5p31UbFeEpFrivHkqNWn0FMEMJ5lM/ZCiZ20iTi34ZhEUDOoqA KVYUNt3ftDeU6Yum X-Received: by 10.80.139.229 with SMTP id n34mr2225237edn.106.1493240484202; 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) Sender: Jan Blunck From: Jan Blunck To: dev@dpdk.org Date: Wed, 26 Apr 2017 23:01:06 +0200 Message-Id: <1493240466-3533-1-git-send-email-jblunck@infradead.org> X-Mailer: git-send-email 2.7.4 Subject: [dpdk-dev] [PATCH] mk: fix external builds with relative output dir X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Apr 2017 21:01:24 -0000 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