2
1
Эх сурвалжийг харах

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 <f.fainelli@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit a7ad7816262dd1b0db6c51a08f3013e2c473c0b3)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Florian Fainelli 2 жил өмнө
parent
commit
af738be309

+ 4 - 0
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