From patchwork Sun May 24 17:43:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Monjalon X-Patchwork-Id: 70556 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7EAE5A04A4; Sun, 24 May 2020 19:43:49 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AFB691D530; Sun, 24 May 2020 19:43:48 +0200 (CEST) Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) by dpdk.org (Postfix) with ESMTP id 8DD20FEB for ; Sun, 24 May 2020 19:43:47 +0200 (CEST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 339D630E; Sun, 24 May 2020 13:43:46 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Sun, 24 May 2020 13:43: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=KZ0Q2nd68k3x7 0W1OY8khaCqWERmbA32tU+4d3ECSG8=; b=nnWNRqE/hxHUIWBCeafO4hd0v1nZU Wjy5HfT43kby0pv21XqVzyxYqQGQW5fItXJc5EdQPQP8rVlCcyRTCg9ADjIR67eV VsBGkiUNaT8xftXovHMQoiUHQb3WkxGKAs/RLfPoXevMstAbsPWV81tGus25SW/L apPDAP0SRn9zIMZ3HozqtqWvIBIxQRin9MO8fr4BqrW6W2+tDr47Yu6rAdeWaqgZ J9uZSsPKhFEwwmfxG62F4SHMrwT15Y/SVfhELWJt5AhBLNSsC3Pf2fQNwuux2Bli LBOO/40AHwNLrrFFMAoaPmczEZ8dKfaL2JpCkmVbnkVdItavZIlvS5EEQ== 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=KZ0Q2nd68k3x70W1OY8khaCqWERmbA32tU+4d3ECSG8=; b=NG2mEgbc DBIQ+4M8u1CT5l5Y6FDpKG1KS5gefm0UrHDuKRz3is+bMlq/OBCslqlYGYk/t7Pr /PuXMB10UNGbog7YfXaO9V+wLbl7tQdd4u5QclDqlKIojLwYecooS/R6fUiprpiq t0bBE2R26fB75ftUEK+gCUeVzfnTIWnM3yntcuTX+oxVfS/LYB3StASAngrfnJa7 sNNHt7QClJANcYbchtfpDKhCT9oUi/0AFSEadiAsll2Mi4L8EwrImEAoOdebrtgf kTd7rA4W2npObRhKf7Ec8KpN7B1l+ZyZuGND+/PjfPl1B25NU3Op75EKOBj3z2eN 9i3XQyZ/dlebpw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedruddukedgudduhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfggfgsedtke ertdertddtnecuhfhrohhmpefvhhhomhgrshcuofhonhhjrghlohhnuceothhhohhmrghs sehmohhnjhgrlhhonhdrnhgvtheqnecuggftrfgrthhtvghrnhepvdehgfeivdejgedtve ehfefhteelfefgieevgfffveefjeegtdfguedthedtgeevnecukfhppeejjedrudefgedr vddtfedrudekgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght 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 E739B3280059; Sun, 24 May 2020 13:43:44 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Cc: david.marchand@redhat.com, bruce.richardson@intel.com Date: Sun, 24 May 2020 19:43:41 +0200 Message-Id: <20200524174341.1777973-1-thomas@monjalon.net> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200421020455.505176-1-thomas@monjalon.net> References: <20200421020455.505176-1-thomas@monjalon.net> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v2] devtools: remove useless files from ABI reference 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" When building an ABI reference with meson, some static libraries are built and linked in apps. They are useless and take a lot of space. Those binaries, and other useless files (examples and doc files) in the share/ directory, are removed after being installed. In order to save time when building the ABI reference, the examples (which are not installed anyway) are not compiled. Signed-off-by: Thomas Monjalon Acked-by: David Marchand --- v2: find static libraries anywhere it tries hiding from being swept --- devtools/test-meson-builds.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/devtools/test-meson-builds.sh b/devtools/test-meson-builds.sh index 18b874fac5..de569a486f 100755 --- a/devtools/test-meson-builds.sh +++ b/devtools/test-meson-builds.sh @@ -140,10 +140,15 @@ build () # fi rm -rf $abirefdir/build - config $abirefdir/src $abirefdir/build $* + config $abirefdir/src $abirefdir/build -Dexamples= $* compile $abirefdir/build install_target $abirefdir/build $abirefdir/$targetdir $srcdir/devtools/gen-abi.sh $abirefdir/$targetdir + + # save disk space by removing static libs and apps + find $abirefdir/$targetdir/usr/local -name '*.a' -delete + rm -rf $abirefdir/$targetdir/usr/local/bin + rm -rf $abirefdir/$targetdir/usr/local/share fi install_target $builds_dir/$targetdir \