From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from dpdk.org (dpdk.org [92.243.14.124])
	by inbox.dpdk.org (Postfix) with ESMTP id D4727A0526;
	Wed,  8 Jul 2020 23:23:47 +0200 (CEST)
Received: from [92.243.14.124] (localhost [127.0.0.1])
	by dpdk.org (Postfix) with ESMTP id 680A41D6A7;
	Wed,  8 Jul 2020 23:23:47 +0200 (CEST)
Received: from mail-lj1-f193.google.com (mail-lj1-f193.google.com
 [209.85.208.193]) by dpdk.org (Postfix) with ESMTP id A99D91D673
 for <dev@dpdk.org>; Wed,  8 Jul 2020 23:23:46 +0200 (CEST)
Received: by mail-lj1-f193.google.com with SMTP id s9so55851020ljm.11
 for <dev@dpdk.org>; Wed, 08 Jul 2020 14:23:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding;
 bh=xxJ5HlQEFulqaTFeNNxV4cVn/QK3QF7s7vL8PS/s32Q=;
 b=YN7KOSk/0PLYR+dP4Uhyt+wKY3/yjh3gRH3PLtjVaUp0PcN8R28LE3wBbTU0eSNPtI
 UROiVwSzh/5B96HgEP4V2pgep+qxlT0pvMTTEIqZTkPvcJGjRrpqV3ADJ0XyTjnTh/8K
 sIY4iI7S9AzG8+GpnhV/MSasHbnLj80WJeVf0Lmvos/k9/4W3nua8/ihvTadA8U68b9S
 328oRHAju1jTtcP9B5F8t2iWvq1A8qKgpWTE1Lr4QeBvIszyEl/DEwuL1mIXNL/A2J9B
 D3fN/MZ65fnSxI0JKfZWg7sQgQsraoxURFdj1DkBNIMxKch8Kq/4Tj6ek6MpzZOcE7dt
 oZgA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=xxJ5HlQEFulqaTFeNNxV4cVn/QK3QF7s7vL8PS/s32Q=;
 b=SAxhvRA9NJJNYp+KgoLYsqWyO6tY1AtLD/Fbb5taoCX6lE/x4ovbSP9uh6/rvezkzG
 cZFPDLfkjjUcJcQXD6uDSaQiTak1kr+pMkvAU8W2G838PD3f5dO21XOiKSVheFnTyyHt
 VpiC5W54L2DPZqoPFCsuc+qshj58QCkP8vGtxn7G/hneD3ZF9/Tktdt9NADKr6U4Sp+e
 MWffbSPSrX1J4cp3GxVIsVMYYpBOrDsMd4INetLn1e+tcqtKqYDeN9SHofU/8Xhq/Lrq
 oRxZBzOXkvfuapanlz0ppP9MPVE7x6jC/mJZHgZtQ+SmqkSQ7nhhwipm2Xr8GOm3xz0T
 sa2g==
X-Gm-Message-State: AOAM531//fdAJ5SRVl9A7rpx99HNZtsZ4d9PwTdeh3lixkAEpqgyFwUo
 zj4wh4cSr13CBTYwgFPi+zbptniK58TRPA==
X-Google-Smtp-Source: ABdhPJwyBE/FSfnS5hLTYUuZE9jPyZlFy1gygKZ2/5aVo/UoWJ521vgoRbhWGQHK+V4lIKlyGfP2dg==
X-Received: by 2002:a2e:312:: with SMTP id 18mr34748007ljd.423.1594243425700; 
 Wed, 08 Jul 2020 14:23:45 -0700 (PDT)
Received: from localhost.localdomain (broadband-37-110-65-23.ip.moscow.rt.ru.
 [37.110.65.23])
 by smtp.gmail.com with ESMTPSA id u9sm230590ljk.44.2020.07.08.14.23.44
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 08 Jul 2020 14:23:45 -0700 (PDT)
From: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
To: dev@dpdk.org
Cc: Neil Horman <nhorman@tuxdriver.com>,
 Bruce Richardson <bruce.richardson@intel.com>,
 Thomas Monjalon <thomas@monjalon.net>, robin.jarry@6wind.com,
 Jie Zhou <jizh@microsoft.com>, Tal Shnaiderman <talshn@mellanox.com>,
 Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Date: Thu,  9 Jul 2020 00:23:31 +0300
Message-Id: <20200708212335.25338-1-dmitry.kozliuk@gmail.com>
X-Mailer: git-send-email 2.25.4
In-Reply-To: <20200708005355.7102-1-dmitry.kozliuk@gmail.com>
References: <20200708005355.7102-1-dmitry.kozliuk@gmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Subject: [dpdk-dev] [PATCH v4 0/4] pmdinfogen: rewrite in Python
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>

This patchset implements existing pmdinfogen logic in Python, replaces
and removes the old code. The goals of rewriting are:

* easier maintenance by using a more high-level language,
* simpler build process without host application and libelf.

Travis CI script is adjusted to install python3-pyelftools, but other CI
systems may need similar tweaking. Particularly, testing on FreeBSD and
big-endian targets is desired.

---
Changes in v4:

Fix build by removing redundant check.

Changes in v3:

1. Rebase on ToT, add package to CI.
2. Add copyrights, fixup maintainers file.
3. Remove C implementation.

Changes in v2:

1. pyelftools is used instead of hand-written ELF parser.
2. Makefiles are adjusted.
3. f-strings replaced with % formatting to support Python 3.5.
4. Wrapper script does not hide stderr from ar and pmdinfogen.

---
Dmitry Kozlyuk (4):
  pmdinfogen: add Python implementation
  build: use Python pmdinfogen
  doc/linux_gsg: require pyelftools for pmdinfogen
  pmdinfogen: remove C implementation

 .travis.yml                        |   2 +-
 GNUmakefile                        |   2 +-
 MAINTAINERS                        |   2 +-
 buildtools/Makefile                |   9 -
 buildtools/gen-pmdinfo-cfile.sh    |   6 +-
 buildtools/meson.build             |   1 +
 buildtools/pmdinfogen.py           | 188 ++++++++++++
 buildtools/pmdinfogen/Makefile     |  20 --
 buildtools/pmdinfogen/meson.build  |  14 -
 buildtools/pmdinfogen/pmdinfogen.c | 456 -----------------------------
 buildtools/pmdinfogen/pmdinfogen.h | 119 --------
 doc/guides/linux_gsg/sys_reqs.rst  |   6 +
 drivers/meson.build                |   2 +-
 meson.build                        |   1 -
 mk/internal/rte.compile-pre.mk     |   2 +-
 mk/rte.sdkinstall.mk               |   2 -
 16 files changed, 203 insertions(+), 629 deletions(-)
 delete mode 100644 buildtools/Makefile
 create mode 100755 buildtools/pmdinfogen.py
 delete mode 100644 buildtools/pmdinfogen/Makefile
 delete mode 100644 buildtools/pmdinfogen/meson.build
 delete mode 100644 buildtools/pmdinfogen/pmdinfogen.c
 delete mode 100644 buildtools/pmdinfogen/pmdinfogen.h

-- 
2.25.4