From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0BEECA04B1; Wed, 23 Sep 2020 11:40:55 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 439491DC60; Wed, 23 Sep 2020 11:40:52 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id 537181DC60 for ; Wed, 23 Sep 2020 11:40:50 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BC0D611B3; Wed, 23 Sep 2020 02:40:49 -0700 (PDT) Received: from phil-VirtualBox.shanghai.arm.com (A010647.Arm.com [10.169.182.48]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 8990A3F718; Wed, 23 Sep 2020 02:40:47 -0700 (PDT) From: Phil Yang To: dev@dpdk.org, david.marchand@redhat.com Cc: juraj.linkes@pantheon.tech, Ruifeng.Wang@arm.com, nd@arm.com, Bruce Richardson Date: Wed, 23 Sep 2020 17:40:12 +0800 Message-Id: <1600854012-10226-2-git-send-email-phil.yang@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1600854012-10226-1-git-send-email-phil.yang@arm.com> References: <1594277585-15281-1-git-send-email-phil.yang@arm.com> <1600854012-10226-1-git-send-email-phil.yang@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2 2/2] devtools: use absolute path for the build directory 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The 'ninja install' needs absolute paths. Use the absolute path for the default build_dir to avoid repeatedly calling of readlink. Suggested-by: Juraj Linkeš Signed-off-by: Phil Yang --- devtools/test-meson-builds.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh index 5236b9c..f43f715 100755 --- a/devtools/test-meson-builds.sh +++ b/devtools/test-meson-builds.sh @@ -16,7 +16,7 @@ srcdir=$(dirname $(readlink -f $0))/.. MESON=${MESON:-meson} use_shared="--default-library=shared" -builds_dir=${DPDK_BUILD_TEST_DIR:-.} +builds_dir=$(readlink -f ${DPDK_BUILD_TEST_DIR:-.}) if command -v gmake >/dev/null 2>&1 ; then MAKE=gmake @@ -168,11 +168,11 @@ build () # fi install_target $builds_dir/$targetdir \ - $(readlink -f $builds_dir/$targetdir/install) + $builds_dir/$targetdir/install $srcdir/devtools/gen-abi.sh \ - $(readlink -f $builds_dir/$targetdir/install) + $builds_dir/$targetdir/install $srcdir/devtools/check-abi.sh $abirefdir/$targetdir \ - $(readlink -f $builds_dir/$targetdir/install) + $builds_dir/$targetdir/install fi } -- 2.7.4