package/linux-tools: Exclude checking PE binaries from perf test

Since upstream Linux commit ed21d6d7c48e6e96c2d617e304a7ebfbd17b1807
("perf tests: Add test for PE binary format support") present in >=
v5.10 there is an unconditional installation of PE binaries.

Some toolchains have a readelf tool that correctly interpret the PE
files, and reports ELF-alike fields. This causes check-bin-arch to
reject those files.

Make sure that these binaries are excluded from being checked to allow
the installation of the perf tests.

Fixes: 6fcdaa4c50 ("package/linux-tools: Allow installation of perf scripts")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Florian Fainelli 2022-09-27 15:11:33 -07:00 committed by Yann E. MORIN
parent 1557312f18
commit a7ad781626

View File

@ -169,6 +169,10 @@ define PERF_INSTALL_REMOVE_SCRIPTS
$(RM) -r $(TARGET_DIR)/usr/libexec/perf-core/scripts/
$(RM) -r $(TARGET_DIR)/usr/libexec/perf-core/tests/
endef
LINUX_TOOLS_BIN_ARCH_EXCLUDE += \
/usr/libexec/perf-core/tests/pe-file.exe \
/usr/libexec/perf-core/tests/pe-file.exe.debug
endif
define PERF_INSTALL_TARGET_CMDS