From af738be309376fec8f888c8f4f831a7855ebea03 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Tue, 27 Sep 2022 15:11:33 -0700 Subject: [PATCH] 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: 6fcdaa4c5096 ("package/linux-tools: Allow installation of perf scripts") Signed-off-by: Florian Fainelli Signed-off-by: Yann E. MORIN (cherry picked from commit a7ad7816262dd1b0db6c51a08f3013e2c473c0b3) Signed-off-by: Peter Korsgaard --- package/linux-tools/linux-tool-perf.mk.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/linux-tools/linux-tool-perf.mk.in b/package/linux-tools/linux-tool-perf.mk.in index 5431c78152..122c7cbbc4 100644 --- a/package/linux-tools/linux-tool-perf.mk.in +++ b/package/linux-tools/linux-tool-perf.mk.in @@ -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