From patchwork Wed Oct 14 10:41:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Conor Walsh X-Patchwork-Id: 80715 X-Patchwork-Delegate: thomas@monjalon.net 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 5D578A04B7; Wed, 14 Oct 2020 12:42:39 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EB4F41DE46; Wed, 14 Oct 2020 12:41:42 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 728421DE40 for ; Wed, 14 Oct 2020 12:41:39 +0200 (CEST) IronPort-SDR: dgmrtAqYxhGKvRTPx67IDKXT6O49C0CalEOBAXGuwG4sZA1HH5OCIZCyVKBQYNvSO09Fqa5xmp 9ZawcQ1NjP4Q== X-IronPort-AV: E=McAfee;i="6000,8403,9773"; a="250781271" X-IronPort-AV: E=Sophos;i="5.77,374,1596524400"; d="scan'208";a="250781271" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Oct 2020 03:41:37 -0700 IronPort-SDR: PjL6Ia+8DYnoJIWbLh+pWfgEP5RBlbBPPvvxI5vyWKOp6sulT1Y4Uvazf6wreyC/+6r1jb3W6O GI0gkQZItZHw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,374,1596524400"; d="scan'208";a="530779935" Received: from unknown (HELO silpixa00400466.ir.intel.com) ([10.237.213.98]) by orsmga005.jf.intel.com with ESMTP; 14 Oct 2020 03:41:35 -0700 From: Conor Walsh To: mdr@ashroe.eu, nhorman@tuxdriver.com, bruce.richardson@intel.com, thomas@monjalon.net, david.marchand@redhat.com Cc: dev@dpdk.org, Conor Walsh Date: Wed, 14 Oct 2020 10:41:23 +0000 Message-Id: <20201014104126.469517-2-conor.walsh@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201014104126.469517-1-conor.walsh@intel.com> References: <20201012130348.3212-1-conor.walsh@intel.com> <20201014104126.469517-1-conor.walsh@intel.com> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v7 1/4] devtools: add generation of compressed abi dump archives 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" This patch adds a script that generates compressed archives containing .dump files which can be used to perform abi breakage checking in test-meson-build.sh. Invoke using "./gen-abi-tarballs.sh [-v ]" - : dpdk tag e.g. "v20.11" or "latest" e.g. "./gen-abi-tarballs.sh -v latest" If no tag is specified, the script will default to "latest" Using these parameters the script will produce several *.tar.gz archives containing .dump files required to do abi breakage checking Signed-off-by: Conor Walsh Acked-by: Ray Kinsella --- devtools/gen-abi-tarballs.sh | 48 ++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100755 devtools/gen-abi-tarballs.sh diff --git a/devtools/gen-abi-tarballs.sh b/devtools/gen-abi-tarballs.sh new file mode 100755 index 000000000..bcc1beac5 --- /dev/null +++ b/devtools/gen-abi-tarballs.sh @@ -0,0 +1,48 @@ +#! /bin/sh -e +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2020 Intel Corporation + +# Generate the required prebuilt ABI references for test-meson-build.sh + +# Get arguments +usage() { echo "Usage: $0 [-v ]" 1>&2; exit 1; } +abi_tag= +while getopts "v:h" arg; do + case $arg in + v) + if [ -n "$DPDK_ABI_REF_VERSION" ]; then + echo "DPDK_ABI_REF_VERSION and -v cannot both be set" + exit 1 + fi + DPDK_ABI_REF_VERSION=${OPTARG} ;; + h) + usage ;; + *) + usage ;; + esac +done + +if [ -z $DPDK_ABI_REF_VERSION ] ; then + DPDK_ABI_REF_VERSION="latest" +fi + +srcdir=$(dirname $(readlink -f $0))/.. + +DPDK_ABI_GEN_REF=-20 +DPDK_ABI_REF_DIR=$srcdir/__abitarballs + +. $srcdir/devtools/test-meson-builds.sh + +abirefdir=$DPDK_ABI_REF_DIR/$DPDK_ABI_REF_VERSION + +rm -rf $abirefdir/build-*.tar.gz +cd $abirefdir +for f in build-* ; do + tar -czf $f.tar.gz $f +done +cp *.tar.gz ../ +rm -rf * +mv ../*.tar.gz . +rm -rf build-x86-default.tar.gz + +echo "The references for $DPDK_ABI_REF_VERSION are now available in $abirefdir"