The goals are: * easier maintenance by using a more high-level language, * simpler build process without host application and libelf.
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. Only logic errors, like missing symbols or invalid content, are checked. This seems enough for debugging and, to my understanding, there are no strong objections. All errors raise exceptions printed to stderr. While discussion of future wrapper logic and Windows support continues, this patchset is ready for testing and review. Dmitry Kozlyuk (3): pmdinfogen: prototype in Python build: use Python pmdinfogen doc/linux_gsg: require pyelftools for pmdinfogen GNUmakefile | 2 +- buildtools/Makefile | 9 -- buildtools/gen-pmdinfo-cfile.sh | 3 +- buildtools/meson.build | 3 +- buildtools/pmdinfogen.py | 191 ++++++++++++++++++++++++++++++ doc/guides/linux_gsg/sys_reqs.rst | 6 + drivers/meson.build | 2 +- mk/internal/rte.compile-pre.mk | 2 +- mk/rte.sdkinstall.mk | 2 - 9 files changed, 202 insertions(+), 18 deletions(-) delete mode 100644 buildtools/Makefile create mode 100755 buildtools/pmdinfogen.py -- 2.25.4