[openwrt/openwrt] perf: fix build on mips

LEDE Commits lede-commits at lists.infradead.org
Thu Jul 17 11:54:28 PDT 2025


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/f6a1e444bc12a739d962e296b296f6a2a75f68b6

commit f6a1e444bc12a739d962e296b296f6a2a75f68b6
Author: Tony Ambardar <itugrok at yahoo.com>
AuthorDate: Mon Jul 14 22:43:17 2025 -0700

    perf: fix build on mips
    
    Building perf on mips/malta fails on intel-pt-decoder due to a header issue
    previously seen in f434643857 ("perf: fix build on PowerPC"):
    
    In file included from util/intel-pt-decoder/intel-pt-insn-decoder.c:12:
    util/intel-pt-decoder/../../../arch/x86/include/asm/insn.h: In function 'insn_field_set':
    util/intel-pt-decoder/../../../arch/x86/include/asm/insn.h:56:21: error: implicit declaration of function '__cpu_to_le32'; did you mean 'cpu_to_le32'? [-Wimplicit-function-declaration]
       56 |         p->little = __cpu_to_le32(v);
          |                     ^~~~~~~~~~~~~
          |                     cpu_to_le32
    util/intel-pt-decoder/../../../arch/x86/include/asm/insn.h: In function 'insn_set_byte':
    util/intel-pt-decoder/../../../arch/x86/include/asm/insn.h:64:20: error: implicit declaration of function '__le32_to_cpu'; did you mean 'le32_to_cpu'? [-Wimplicit-function-declaration]
       64 |         p->value = __le32_to_cpu(p->little);
          |                    ^~~~~~~~~~~~~
          |                    le32_to_cpu
    
    Extend the previous powerpc fix to mips, disabling intel-pt-decoder build.
    
    cc: Stijn Tintel <stijn at linux-ipv6.be>
    Signed-off-by: Tony Ambardar <itugrok at yahoo.com>
    Link: https://github.com/openwrt/openwrt/pull/19426
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 package/devel/perf/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/devel/perf/Makefile b/package/devel/perf/Makefile
index e421f423e2..e05ea446ac 100644
--- a/package/devel/perf/Makefile
+++ b/package/devel/perf/Makefile
@@ -74,7 +74,7 @@ MAKE_FLAGS = \
 	O=$(PKG_BUILD_DIR) \
 	prefix=/usr
 
-ifeq ($(LINUX_KARCH),powerpc)
+ifneq ($(filter $(LINUX_KARCH),powerpc mips),)
 	MAKE_FLAGS += NO_AUXTRACE=1
 endif
 




More information about the lede-commits mailing list