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 5B1E7A0093; Mon, 15 Jun 2020 00:58:59 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B0C9C5681; Mon, 15 Jun 2020 00:58:47 +0200 (CEST) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 67E925681 for ; Mon, 15 Jun 2020 00:58:46 +0200 (CEST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 0D6DE5C00DA; Sun, 14 Jun 2020 18:58:46 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Sun, 14 Jun 2020 18:58: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=oYdAH2wbkycMY WIrnZuaxbSxPAzOndA5d9R3rWJGKec=; b=naSG3ytkF8rfRLN8xzOez/GRETEac MsPEUYq6owghw41pQOKjL+vquGQaBmBk7ikJMBZeYMBT/WuWp/P+JMqubLO4dIG3 fjMHaawnhwjzUMkxCXOUwPcRBADnDhuhgES82OctRm0mR1ThKiIj+14dZv8VccZt DoGfnpdbUz0l6i4ITnjGYpNf/dzXc8E7c/MXTig2UPAl9NIxh78gkwbIvysehM21 /NeutNJbgsOCbT6rJcWZiboEn2+u0InH/4o2E5XqJrGNlhwHph9cLptI19o7uae5 tjBHc+ouIxJIH5OptCZxE4W9zIQjGXOov/Qj+uC9Xg6S1bBYGTXEiJKbQ== 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=oYdAH2wbkycMYWIrnZuaxbSxPAzOndA5d9R3rWJGKec=; b=bv0i/fXZ OtUdo1X/M5TKuOgtvptIjSlO3gN0xYTTeOEw1iIk6Y0rz9T2qaCTIIJurtDTODsG RW5+AmbMQyE1gF138bngXZlKkC0O9CcfvAtKO1FY4u2N9EUkHIXLMU5B3xjc1AXw qFA3yP0IOwMUb+HAoljZWFfrMwTGKpQOwBHPsA3NcQb+XjQyYVCqSb79/3cMBI8E jsygKDpfmLkjZSZFwzOl1nhmcY245j0UoQQWmhFgx6w8VxR/vdUWFNbDjAb8/S+D JWQeJQqtJvkScEw6dDqX3EoOqc9m90vNMQ8RhdAQKPddd8VY5P8vG6VU23M362i3 +kSmBbdMBKpJkQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudeijedgudekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredttdenucfhrhhomhepvfhhohhmrghsucfoohhnjhgrlhhonhcuoehthhhomhgrshes mhhonhhjrghlohhnrdhnvghtqeenucggtffrrghtthgvrhhnpedvhefgiedvjeegtdevhe efhfetleefgfeivefgffevfeejgedtgfeutdehtdegveenucfkphepjeejrddufeegrddv tdefrddukeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh 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 2D375328005D; Sun, 14 Jun 2020 18:58: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: Mon, 15 Jun 2020 00:57:45 +0200 Message-Id: <20200614225747.3839569-3-thomas@monjalon.net> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200614225747.3839569-1-thomas@monjalon.net> References: <20200614225747.3839569-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 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 602167e43a..1d80a029aa 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