On Wed, Nov 4, 2020 at 11:33 AM Bruce Richardson <bruce.richard...@intel.com> wrote: > > On Wed, Nov 04, 2020 at 10:40:33AM +0100, David Marchand wrote: > > This script inspects an ELF file (binary or shared library) and its > > linked dependencies by following DT_NEEDED tags. > > So far a simple librte_pmd prefix was used as a filter. > > Now that we changed the driver library names, update this heuristic with > > an explicit list of all driver classes. > > > > Fixes: a20b2c01a7a1 ("build: standardize component names and defines") > > > > Signed-off-by: David Marchand <david.march...@redhat.com> > > Acked-by: Robin Jarry <robin.ja...@6wind.com> > > --- > > Changelog since v1: > > - moved driver classes list as a class variable and did some cosmetic > > change for readibility, > > - used dpdk_driver_classes variable name in the hope that someone changing > > meson will catch this script too, > > Good idea, but probably not enough. I think adding a comment to the > meson.build file to update this as well would be good.
I am reconsidering all this... The filtering stage in the pmdinfo script is unneeded. We need to find a PMD_INFO_STRING symbol in any case, which is good enough to find out this is a dpdk driver without relying on the library name. Parsing all libraries only impact for the user is a debug message print("Scanning %s for pmd information" % library). We might as well remove it or hide under a verbose option. -- David Marchand