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 271BBA00BE; Wed, 8 Jul 2020 02:54:14 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 28A261DD02; Wed, 8 Jul 2020 02:54:13 +0200 (CEST) Received: from mail-lj1-f196.google.com (mail-lj1-f196.google.com [209.85.208.196]) by dpdk.org (Postfix) with ESMTP id 906FB1DCFE for ; Wed, 8 Jul 2020 02:54:11 +0200 (CEST) Received: by mail-lj1-f196.google.com with SMTP id s9so52140684ljm.11 for ; Tue, 07 Jul 2020 17:54:11 -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=r/DkhSTgta8nLBAL8N6ex32KfRA5gE5PGiaYKUZQIQQ=; b=rnmW1qq10nj2T5s/QFA5Nms+p58kDBIIhHxkgpDmJamSfPKY25nD6ZfLsJGaNUQGfv 5x9xx/id4OjBcpyLWtel9XMKYnWZj+w8nt7ODJHfrDHgYWspNABKlBtBQFTBPglUalCH w9onqcEqXahi+jyrR11bvoxhorYAcZ/tCjrnTMCjRIZ5ftBPc/Fq42BDnFluF8+oGi8q 8JlbYI9yRQ4I4RkEPp3c2su++dfuv8COH6lLdilR9B81+05Vgz1mQArpbb7tLvLAgGCd ndLLOfBmzRrxFkcXftQ4JcZdU5MX+X+jcB/B/56pHNWw844BtdK68WC/2CqrAiVRK3YI H+vQ== 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=r/DkhSTgta8nLBAL8N6ex32KfRA5gE5PGiaYKUZQIQQ=; b=tK6+Qhle5PGg5wENFH2B6ogvVgY9Yc1qVS0MyH5e3ufxpnaZge5fk8NT+zZgUuxGyZ mS7uNqMDe3yX0sXjKDJb1FmJ4jr5MKFBkJzZOYrLQd56WfSlp3SJ5ia12jBIIysZTWb5 7Np+bbtxgw0hcH1a8iB5GFElmsp5janyTspy7U+hWWcdrgWFVrJX0d154JlDbMXUSL5u BntsyWavEQeFfk16V6p1jTveSFZObbN9EKyXcmOdyclCYVbUvTHEE5TCoPdg/Q8RY7sK HKxZvdyd/d9L4wuK+s8g8lbyg7NRKcSiyewi6Ee7ou4Spj4VYtyN8j3qRcDtEsAR0qoE KB3A== X-Gm-Message-State: AOAM530idz6CNY/kgcw9M6ksqXQ4XKfeZI20kiRQPE9Q6mTVWF7j91bm YWMd59bVy1EI5JgntxCaoFf5PO0eLWr3Wg== X-Google-Smtp-Source: ABdhPJxtAl9mc114d+G0xLWC7dnCsh2doYDkmkk2hawbHvKUmfLG8Oc/aux7+5IXoFNwzjR55Iu/uw== X-Received: by 2002:a2e:8804:: with SMTP id x4mr32106014ljh.56.1594169650689; Tue, 07 Jul 2020 17:54:10 -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 h22sm515986ljg.1.2020.07.07.17.54.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2020 17:54:09 -0700 (PDT) From: Dmitry Kozlyuk To: dev@dpdk.org Cc: Neil Horman , Bruce Richardson , Thomas Monjalon , robin.jarry@6wind.com, Jie Zhou , Tal Shnaiderman , Dmitry Kozlyuk Date: Wed, 8 Jul 2020 03:53:51 +0300 Message-Id: <20200708005355.7102-1-dmitry.kozliuk@gmail.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20200702000232.10761-1-dmitry.kozliuk@gmail.com> References: <20200702000232.10761-1-dmitry.kozliuk@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v3 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 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 | 194 ++++++++++++ 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, 209 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