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 1EF85A0598; Sat, 18 Apr 2020 15:20:02 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E94E51E553; Sat, 18 Apr 2020 15:20:00 +0200 (CEST) Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) by dpdk.org (Postfix) with ESMTP id 0C9531E551 for ; Sat, 18 Apr 2020 15:19:59 +0200 (CEST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 821EE65B; Sat, 18 Apr 2020 09:19:56 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Sat, 18 Apr 2020 09:19:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=mesmtp; bh=luyx46G6NvGV+a2pbGCPCp5 mQviOb5s+gDS7ule6fTU=; b=LBhFHs/WQnKO+njLXxwZtlhSx25T9UZ4T4Eih24 TIDVXwGGUB01RDVBmi1X77zutcIxODMJDbz8VbCJjhWYorFyZZKCJWA/qz8uwccc SEUC5oD4I3yRlLFMC45x32/GV+gUgiL0fY1E0h/5+h2m0amY+s+2/UA+M9E+Dgjv n19Y= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=luyx46G6NvGV+a2pb GCPCp5mQviOb5s+gDS7ule6fTU=; b=ReHsTDQNm7CIDjubPxzyV9JP5lk0Jpo+P 241/PYd/pGM7NmKh/1NNkfV5J0GbvVSZ/ViIypt+JQYfGVSsCH2Wr7rkYePaVrNM 3ZdJlYO1tQTRP6uLLDrLzhuB00hkQ3Vs9nXS0V/XqC+ZofVfuXBJrsXUMJ78tzEN ykvzP4CaAN260Cu0zz6hm5qLrQkYhvblP3HQN/qSdNbH63F4t0w1wxKixDISZA3a jUO61LurFwdTTeeBEQ8I+L7qTYiiBAhHjNjdCuAIyBPucWtQ890Fg7DRY4Y6rsT3 AXBfhWGRgGQdioPzh6atMdWq/WH9TP0+9P/Q+J7PenrHMnXHpEPIw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrfeelgdeihecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffoggfgsedtkeertdertd dtnecuhfhrohhmpefvhhhomhgrshcuofhonhhjrghlohhnuceothhhohhmrghssehmohhn jhgrlhhonhdrnhgvtheqnecukfhppeejjedrudefgedrvddtfedrudekgeenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhho nhhjrghlohhnrdhnvght 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 EDFE3328006B; Sat, 18 Apr 2020 09:19:54 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Cc: bruce.richardson@intel.com, david.marchand@redhat.com Date: Sat, 18 Apr 2020 15:19:42 +0200 Message-Id: <20200418131942.1388633-1-thomas@monjalon.net> X-Mailer: git-send-email 2.26.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] 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 --- 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..b1c0380809 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=static' ; then + options="$options -Dexamples=l3fwd" + else + options="$options -Dexamples=all" + fi options="$options --buildtype=debugoptimized" for option in $DPDK_MESON_OPTIONS ; do options="$options -D$option" -- 2.26.0