--- zzzz-none-000/linux-4.1.52/tools/perf/config/Makefile 2018-05-28 02:26:45.000000000 +0000 +++ bcm63-7530ax-731/linux-4.1.52/tools/perf/config/Makefile 2022-03-02 11:37:14.000000000 +0000 @@ -47,6 +47,14 @@ LIBUNWIND_LIBS = -lunwind -lunwind-aarch64 endif +ifdef BCM_KF #fdef CONFIG_BCM_KF_MIPS_4350 +ifeq ($(ARCH),mips) + ARCH_SUPPORTS_LIBUNWIND := 1 + NO_PERF_REGS := 0 + LIBUNWIND_LIBS = -lunwind -lunwind-mips +endif +endif #BCM_KF + ifeq ($(NO_PERF_REGS),0) $(call detected,CONFIG_PERF_REGS) endif