packaging: Add NO_JEVENTS=1 option to build perf 71/306671/2
authorJaehoon Chung <jh80.chung@samsung.com>
Mon, 26 Feb 2024 02:52:54 +0000 (11:52 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 26 Feb 2024 02:56:53 +0000 (11:56 +0900)
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>
packaging/linux-rpi4.spec

index 05ed5c84ba3e1d0140f01a301702199086524f65..360c33b75d6e6b02d753a211b8ebdbf53c239c91 100644 (file)
@@ -147,7 +147,7 @@ for target in %{variant} %{variant}-rt; do
 
             # 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
@@ -201,7 +201,7 @@ for target in %{variant} %{variant}-rt; do
 %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