build: remove Windows export symbol list
authorDavid Marchand <david.marchand@redhat.com>
Tue, 6 Apr 2021 17:59:10 +0000 (19:59 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 8 Apr 2021 15:57:33 +0000 (17:57 +0200)
commit56ea803e878e06ac1c7056165b960416666086f4
tree45c0c5aa22e16c168b43c3a287d8552a1e89f127
parent60e0e75b615fc94b8538a5334dffc0935864438c
build: remove Windows export symbol list

Rather than have two files that keeps getting out of sync, let's
annotate the version.map to generate the Windows export file.

Some mlx5 symbols (haswell_broadwell_cpu, mlx5_glue, mlx5_os_*) were
only exported for Windows.
All of them are available and used by Linux too, so this patch adds
them in version.map.

Note: Existing version.map annotation achieved with:
$ for dir in lib/librte_eal drivers/common/mlx5; do
    ./buildtools/map-list-symbol.sh $dir/*.map |
    while read file version sym; do
      ! git grep -qw $sym $dir/*.def || continue;
      sed -i -e "s/$sym;/$sym; # WINDOWS_NO_EXPORT/" $dir/*.map;
    done;
  done

Signed-off-by: David Marchand <david.marchand@redhat.com>
Tested-by: Tal Shnaiderman <talshn@nvidia.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
MAINTAINERS
buildtools/map_to_win.py
devtools/check-spdx-tag.sh
devtools/check-symbol-maps.sh
devtools/update_version_map_abi.py
drivers/common/mlx5/rte_common_mlx5_exports.def [deleted file]
drivers/common/mlx5/version.map
lib/librte_eal/rte_eal_exports.def [deleted file]
lib/librte_eal/version.map