packaging: Add NO_JEVENTS=1 option to build perf
authorJaehoon Chung <jh80.chung@samsung.com>
Mon, 26 Feb 2024 02:52:54 +0000 (11:52 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 12 Nov 2024 04:03:15 +0000 (13:03 +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 d6b0ee1771b2a6675c88710d8b8fac3766f7f8fe..fdb7c2215073e2f535612e0e6eebd3564a148a65 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