Re: [dpdk-dev] [PATCH v8 2/3] build: use Python pmdinfogen
From: Thomas Monjalon <hidden>
Date: 2021-01-25 11:03:16
25/01/2021 11:46, Kinsella, Ray:
On 25/01/2021 10:29, David Marchand wrote:quoted
The symbol itself can be hidden from the ABeyes. It is only a placeholder for the PMD_INFO_STRING= string used by usertools/dpdk-pmdinfo.py and maybe some other parsing tool. I guess a static symbol would be enough:diff --git a/buildtools/pmdinfogen/pmdinfogen.cb/buildtools/pmdinfogen/pmdinfogen.c index a68d1ea999..14bf7d9f42 100644--- a/buildtools/pmdinfogen/pmdinfogen.c +++ b/buildtools/pmdinfogen/pmdinfogen.c@@ -393,7 +393,7 @@ static void output_pmd_info_string(struct elf_info*info, char *outfile) drv = info->drivers; while (drv) { - fprintf(ofd, "const char %s_pmd_info[] __attribute__((used)) = " + fprintf(ofd, "static const char %s_pmd_info[] __attribute__((used)) = " "\"PMD_INFO_STRING= {", drv->name); fprintf(ofd, "\\\"name\\\" : \\\"%s\\\", ", drv->name); We will need an exception for the v21 ABI though.Good suggestion +1
Yes +1 for adding static on *_pmd_info