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 322D2A04A3; Tue, 16 Jun 2020 00:22:57 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6385F54AE; Tue, 16 Jun 2020 00:22:47 +0200 (CEST) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 4BA6D54AE for ; Tue, 16 Jun 2020 00:22:46 +0200 (CEST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 00DD65C011A; Mon, 15 Jun 2020 18:22:46 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Mon, 15 Jun 2020 18:22:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm1; bh=nV/R9ML7PYEGD qWEKG9O+aoqLU6UuIAlku8aurnHYm8=; b=SCO4XAhjlllyg6nq9stK1j2q+skeA hBWVqrq377XW/90oNwSmME6X2dH3ya1AQxAQrbXLNb64vy/bmC7zx4XWDfq/Z0Me f+++Q3VIStXzjXAlxdDj98rYeCVZWLZpMh6WgVUiO/eLCbobxPPueJBsCgVpa7cA OTIZNs4Kxnfm80IXw3PThAdTSRANZuKa7IOBHTlkW+yg28QxbuCuTNx4QSbJtYEj 7Pu/fZ3jUeLIV9NfnsHF2A6Nelei+kh1MN6lfHewKGAapvtQR9xgdrh0UfqRI7mc bczm0bT3eg73niCPMHwj8DLricFgQKzfArJgT28CrphZnvqaOy1neS4rg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=nV/R9ML7PYEGDqWEKG9O+aoqLU6UuIAlku8aurnHYm8=; b=ab6s0gjJ ja7wc4SzA0TMq77wZIipoo3as27+qoUs8lAUqKlY2x+blYLZhJP25JCD1tvJD5u4 Fz83BHN//uVZYNJFWWpXlK539B6E8tueH414AKW8HkWFuKTvUB0d2mxWs/lfLzJJ oFINlWkZhg/QgCMoRbb2i3TpXCfNXWrlKF73ZO0jYkamRKRCKwv3xXfC0kFUOcoH qGSd+tpdWsOiN44u68SxJK5MVP36CsWekVG2p0QIEe+oze1hgYAnLqY7JPsWVyJC PbOzEsan2uv6sP2RdZjejYAxLPt3JOe1xtbCgmjEQB9hfiqN011mwjFsp5RWiiw4 5P0Zg74NxPzVIQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudeiledguddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredttdenucfhrhhomhepvfhhohhmrghsucfoohhnjhgrlhhonhcuoehthhhomhgrshes mhhonhhjrghlohhnrdhnvghtqeenucggtffrrghtthgvrhhnpedvhefgiedvjeegtdevhe efhfetleefgfeivefgffevfeejgedtgfeutdehtdegveenucfkphepjeejrddufeegrddv tdefrddukeegnecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehmrghilhhfrh homhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth X-ME-Proxy: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 221843061856; Mon, 15 Jun 2020 18:22:45 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Cc: david.marchand@redhat.com, bruce.richardson@intel.com, drc@linux.vnet.ibm.com, dmitry.kozliuk@gmail.com Date: Tue, 16 Jun 2020 00:22:34 +0200 Message-Id: <20200615222236.1894695-3-thomas@monjalon.net> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200615222236.1894695-1-thomas@monjalon.net> References: <20200614225747.3839569-1-thomas@monjalon.net> <20200615222236.1894695-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2 2/4] devtools: allow non-standard toolchain in meson test 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" If a compiler is not found in $PATH, the compilation test is skipped. In some cases, the compiler could be found after extending $PATH in an environment configuration script (called by load-devel-config). The decision to skip is deferred to a later stage, after loading the configuration script. In such case, the variable DPDK_TARGET, used by the configuration script as input, is the compiler name. Signed-off-by: Thomas Monjalon --- devtools/test-meson-builds.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh index bee55ec038..9781eaf415 100755 --- a/devtools/test-meson-builds.sh +++ b/devtools/test-meson-builds.sh @@ -52,9 +52,15 @@ load_env () # export CFLAGS=$default_cflags export LDFLAGS=$default_ldflags unset DPDK_MESON_OPTIONS - command -v $targetcc >/dev/null 2>&1 || return 1 - DPDK_TARGET=$($targetcc -v 2>&1 | sed -n 's,^Target: ,,p') + if command -v $targetcc >/dev/null 2>&1 ; then + DPDK_TARGET=$($targetcc -v 2>&1 | sed -n 's,^Target: ,,p') + else # toolchain not yet in PATH: its name should be enough + DPDK_TARGET=$targetcc + fi + # config input: $DPDK_TARGET . $srcdir/devtools/load-devel-config + # config output: $DPDK_MESON_OPTIONS, $PATH, $PKG_CONFIG_PATH, etc + command -v $targetcc >/dev/null 2>&1 || return 1 } config () # -- 2.26.2