buildtools: fix build with Meson 0.60
authorBruce Richardson <bruce.richardson@intel.com>
Mon, 1 Nov 2021 17:03:26 +0000 (17:03 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 3 Nov 2021 13:16:29 +0000 (14:16 +0100)
commitc78471cd061a0f64db006c538be34536bc66c12a
tree9373c91e57b563619feb0ce7ed53aae6baf87059
parent53caecb8445b3dce4cb7bae235ad6023a828577c
buildtools: fix build with Meson 0.60

Meson 0.60 switched the format of uninstalled static libraries
to thin archives, that is, they contain only paths to object files,
not the files themselves. Files cannot be extracted in this case,
resulting in build errors:

    ar: `x' cannot be used on thin archives.

Handle thin archives when invoking pmdinfogen by directly using the
files referenced in the archive, when they already exist, and extracting
them if not.

Bugzilla ID: 836
Fixes: e6e9730c7066 ("buildtools: support object file extraction for Windows")
Cc: stable@dpdk.org
Reported-by: Michal Berger <michallinuxstuff@gmail.com>
Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
buildtools/gen-pmdinfo-cfile.py