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 B38F7A0524; Sun, 13 Dec 2020 00:35:01 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 94450A550; Sun, 13 Dec 2020 00:34:59 +0100 (CET) Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) by dpdk.org (Postfix) with ESMTP id 43B784C7B for ; Sun, 13 Dec 2020 00:34:58 +0100 (CET) Received: by mail-lf1-f52.google.com with SMTP id 23so20909520lfg.10 for ; Sat, 12 Dec 2020 15:34:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=3XTC03kyexue+y5s0DRK6VpSNdhytXgtyt4Tgt9zdmg=; b=KrC2x5OppueQrw6hseJOfcfgAdS5mH9EIKrDSSS0B8YOYNOFS8XHkGQ9W9Va8nvpjX eVBIRdSvA7c7+TTbAezq2krAqojlLdrdTT3s0sKiEihhGyJNK7xrzw7Lh82G0rSngsGY uLKTJ8shrCVkNi4RwFR7FDs0x5NfJBGjHdB6M/RRW3i2VMbjsapb5BzHcyZJrT4Cdwqm Lp7Cv3uilljjc/eTke9tY6LizNQHiC8YMcfBUniQvNrJhKh/lclvOPoq8BB7SP9IJ2p4 HvTDPPMm2RAEUEO2Mx2Q/1Qn438hqfv7nFyPnVwIubgMokVv2NvhuZnSlbDpxNv3a+9a y6vA== 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:mime-version :content-transfer-encoding; bh=3XTC03kyexue+y5s0DRK6VpSNdhytXgtyt4Tgt9zdmg=; b=N97BKLbl+sCJcqU70cIczRi06As+wOaWdJfTOCiJYR1DP+duU1dOPKhiw1jv91HWRR 7kfSQfBBZFwPVjuLKchzhwmZ3gpl7cVG7gcQ/cqSDfKzH6u0XaBpTg/Uxmf30IP3nWs7 lyZiNdypUYxcZ2Q2pmXeVjcJZC8j+J/508hMg8x2p0SK4be/dC5Z9P+XlrcGTmKF/Xae AMdTBuG4aQ23Hn0PUX/fZc6DUc6E8ssSJoq8IXF4IP9WdVREraVToArPcnSSabchb+4l emEe9UL8C7Pur9XXWuNCV0ejwmGGglvDYuqzsoaFZ4hD1z2crUBqLJbBUCxkm01GYCuA Yieg== X-Gm-Message-State: AOAM533BvrtF9jdMNS8rJw2CjAOjsIKkuKlF1c05GZLjhGVHFm1TCYBe XTQrKF5czPbV24k2VhaZmiMMspt7hChNDg== X-Google-Smtp-Source: ABdhPJxRMobklEFEi+GYF3jtZ/ND7MvpueMaIaBdIr7Q5XGJVPoLINaBa0GhLaTFIWnxh1t/dQYR0A== X-Received: by 2002:a05:6512:74e:: with SMTP id c14mr7255215lfs.529.1607816096450; Sat, 12 Dec 2020 15:34:56 -0800 (PST) Received: from localhost.localdomain (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.gmail.com with ESMTPSA id b22sm1517930lfp.233.2020.12.12.15.34.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Dec 2020 15:34:55 -0800 (PST) From: Dmitry Kozlyuk To: dev@dpdk.org Cc: Narcisa Ana Maria Vasile , Pallavi Kadam , Dmitry Malloy , Dmitry Kozlyuk Date: Sun, 13 Dec 2020 02:34:43 +0300 Message-Id: <20201212233447.23154-1-dmitry.kozliuk@gmail.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 0/4] pmdinfogen: support Windows 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" Based on Python version of pmdinfogen, deferred until 21.02: http://patchwork.dpdk.org/project/dpdk/list/?series=13153 There are a few Python libraries for PE/COFF, none of which suits the need, so a custom COFF parser is used. Advice is welcome, options considered: * py-coff (https://github.com/jeppeter/py-coff): doesn't give access to symbol values, Python 2 code inside, not very popular. * pefile (https://github.com/erocarrera/pefile): for PE (executables and libraries), not COFF (objects); most popular. * pype32-py3 (https://github.com/crackinglandia/pype32): ditto, less popular. A script to extract object files from library is still required. Meson has extract_all_objects(), but they can't be passed as inputs to custom_target() until 0.52.0 (commit f431cff809). Depends-on: series-13153 ("pmdinfogen: rewrite in Python") Dmitry Kozlyuk (4): pmdinfogen: support COFF pmdinfogen: allow multiple input files buildtools: support object file extraction for Windows build: enable pmdinfogen for Windows buildtools/coff.py | 154 ++++++++++++++++++++++++++++++++ buildtools/gen-pmdinfo-cfile.py | 19 ++++ buildtools/gen-pmdinfo-cfile.sh | 14 --- buildtools/meson.build | 15 +++- buildtools/pmdinfogen.py | 126 +++++++++++++++++++------- drivers/meson.build | 26 +++--- 6 files changed, 294 insertions(+), 60 deletions(-) create mode 100644 buildtools/coff.py create mode 100644 buildtools/gen-pmdinfo-cfile.py delete mode 100755 buildtools/gen-pmdinfo-cfile.sh -- 2.29.2