Add NO_JEVENTS=1 option to build perf for aarch64.
During building aarch64, it's failed with below message.
[ 61s] Makefile.config:846: No python interpreter was found: disables Python support - please install python-devel/python-dev
[ 61s] Makefile.config:881: *** ERROR: No python interpreter needed for jevents generation. Install python or build with NO_JEVENTS=1.. Stop.
[ 61s] make[1]: *** [Makefile.perf:242: sub-make] Error 2
[ 61s] make: *** [Makefile:70: all] Error 2
[ 61s] error: Bad exit status from /var/tmp/rpm-tmp.dIxz2n (%build)
Change-Id: I77ebb333561733cef1f45cb1432dedacb3b5191c
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
# Build perf
# WERROR=0 make O=build/${target} -s -C tools/lib/traceevent %{?_smp_mflags}
- WERROR=0 make O=build/${target} -s -C tools/perf EXTRA_CFLAGS="-fPIE -rdynamic" %{?_smp_mflags} NO_LIBTRACEEVENT=1
+ WERROR=0 make O=build/${target} -s -C tools/perf EXTRA_CFLAGS="-fPIE -rdynamic" %{?_smp_mflags} NO_LIBTRACEEVENT=1 NO_JEVENTS=1
;;
%{variant}-rt)
cat _localversion-rt > localversion-rt
%endif
# Install perf
- WERROR=0 make O=build/${target} -s -C tools/perf EXTRA_CFLAGS="-fPIE -rdynamic" DESTDIR=%{buildroot}/usr install NO_LIBTRACEEVENT=1
+ WERROR=0 make O=build/${target} -s -C tools/perf EXTRA_CFLAGS="-fPIE -rdynamic" DESTDIR=%{buildroot}/usr install NO_LIBTRACEEVENT=1 NO_JEVENTS=1
rm -rf %{buildroot}/usr/etc
rm -rf %{buildroot}/usr/lib/debug
rm -rf %{buildroot}/usr/lib/perf