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 31691A0561; Tue, 21 Apr 2020 02:31:03 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C7BBD1D64D; Tue, 21 Apr 2020 02:31:01 +0200 (CEST) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id A328E1C2A0 for ; Tue, 21 Apr 2020 02:31:00 +0200 (CEST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id EC41D5C012F; Mon, 20 Apr 2020 20:30:59 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Mon, 20 Apr 2020 20:30:59 -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=8ZRJ/p6Ga9eXt Aj+OeIl+a59brtAI950w0f3P4QGM9I=; b=vRjPOXQKLcKQQHiefw+UbvmGAHsqZ zdo3s79lTm1WKy+cuUHpSEGoViOl1X3zSEMhdRA45LnFfclea/IK7Yz06z3HNzL6 BzzVjN+vLR9BTv9e9rG2IYBt5Jy/iVdHcCXZ2hLp9S+NOqzPUaZVhffWC8ssUHq6 bKe862OT5Aydekul1jekewtoMouaY9tnDsj2Ip8LswvyXveCRxHqSn0FKLJ24yPS VWP9090FCxQY2AVFdwa+vvp5ryNBOefnXhtIhRVFB9DuJjxYZzj9sKWTQEyEVdCy rgKYlpqXIarZMY3/cXEPpuC6Jn7qqG1uyM2Q28zpPRyM2hFLi5G/FZjOg== 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= fm2; bh=8ZRJ/p6Ga9eXtAj+OeIl+a59brtAI950w0f3P4QGM9I=; b=oZ0xd4Bs s9cdXVcEsAanQPkrngzRfEtECAnKlOXGCwJ4tN6UYXguwZTbj/DyqY9iRLPcEnDI kic0cD9MZ4sBvsQglYPLrjm9efhJIqMENi1XPGa14g7Yqb/g7ekmx3l0BgW60TL6 oV48n/37l7aj1OyYZ8J/vwAYD8Oh92KZDxq09ibU4P1X25h5c2tsG6pzBS6JAnlg mGO4eHkIPFUqgKk+z81XwJzzENpR9LC3RDXXIYaxPUJz7nXIOjuazo5euJgh++Ld KJcILpxeoTcwEvBTPuAVFmXz5PG9tValHmYLe7WH234aG+7MylFRa+cOSvYMV2Y3 ZGPNx5O633qCEA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrgeeggdefvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfggfgsedtkeertd ertddtnecuhfhrohhmpefvhhhomhgrshcuofhonhhjrghlohhnuceothhhohhmrghssehm ohhnjhgrlhhonhdrnhgvtheqnecukfhppeejjedrudefgedrvddtfedrudekgeenucevlh hushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshes mhhonhhjrghlohhnrdhnvght 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 DA2743065C1B; Mon, 20 Apr 2020 20:30:58 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Cc: bruce.richardson@intel.com, david.marchand@redhat.com Date: Tue, 21 Apr 2020 02:30:56 +0200 Message-Id: <20200421003056.2438-1-thomas@monjalon.net> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200418131942.1388633-1-thomas@monjalon.net> References: <20200418131942.1388633-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2] devtools: reduce examples in static builds 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" Static builds can take a lot of space, so reduce the number of examples built when testing those static builds. As makefile-based build is close to end of life, completely skip examples in case of static linkage with make. Signed-off-by: Thomas Monjalon --- v2: invert logic with meson because static is the default --- devtools/test-build.sh | 1 + devtools/test-meson-builds.sh | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/devtools/test-build.sh b/devtools/test-build.sh index e6e40588c6..a298115002 100755 --- a/devtools/test-build.sh +++ b/devtools/test-build.sh @@ -257,6 +257,7 @@ for conf in $configs ; do echo "================== Build examples for $conf" export RTE_SDK=$(readlink -f $dir)/install/share/dpdk ln -sTf $(pwd)/lib $RTE_SDK/lib # workaround for vm_power_manager + grep -q 'SHARED_LIB=n' $dir/.config || # skip examples with static libs ${MAKE} -j$J -sC examples \ EXTRA_LDFLAGS="$DPDK_DEP_LDFLAGS" $verbose \ O=$(readlink -f $dir)/examples diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh index c1ff2bb50a..e8df017596 100755 --- a/devtools/test-meson-builds.sh +++ b/devtools/test-meson-builds.sh @@ -74,7 +74,12 @@ config () # return fi options= - options="$options --werror -Dexamples=all" + options="$options --werror" + if echo $* | grep -qw -- '--default-library=shared' ; then + options="$options -Dexamples=all" + else + options="$options -Dexamples=l3fwd" # save disk space + fi options="$options --buildtype=debugoptimized" for option in $DPDK_MESON_OPTIONS ; do options="$options -D$option" -- 2.26.0