Skip to content

Cross compiling perf for ARC

Francois Bedard edited this page Apr 13, 2017 · 7 revisions

Based on Buildroot's http://git.buildroot.net/buildroot/tree/package/perf/perf.mk

cd tools/perf
export ARCH=arc
export CROSS_COMPILE=arc-linux-uclibc-
make NO_LIBAUDIT=1 NO_NEWT=1 NO_GTK2=1 NO_LIBPERL=1 NO_LIBPYTHON=1 WERROR=0 ASCIIDOC= NO_BACKTRACE=1 NO_LIBELF=1 NO_DWARF=1

With more recent kernels (4.9 and above) the following could be used for building perf with SNPS pre-built toolchains:

make NO_LIBELF=1 NO_JVMTI=1

To build statically add LDFLAGS=-staticto command line.

Clone this wiki locally