buildtools: make AVX512 check portable
authorDmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Fri, 12 Nov 2021 21:48:25 +0000 (00:48 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 17 Nov 2021 08:41:16 +0000 (09:41 +0100)
commitbb9cd91095b3e8e2ce2714baa7cd2ea38414f3d8
tree1fad7f4ff4879ac87082532993340b199b4c3b5a
parent04f9fac660d018d0b163dcafed2805909f576ee9
buildtools: make AVX512 check portable

buildtools/binutils-avx512-check.sh was Unix-only
and could not be used in cross builds:
1) written in shell;
2) used the assembler binary that may be missing,
   e.g. when building on Windows with LLVM;
3) located the assembler as ${AS:-as} and referenced objdump,
   but those binaries may be overridden via --cross-file.

Rewrite the script in Python.
Use the C compiler for the check.
Locate objdump and the C compiler using Meson.

Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
MAINTAINERS
buildtools/binutils-avx512-check.py [new file with mode: 0644]
buildtools/binutils-avx512-check.sh [deleted file]
buildtools/meson.build