mirror of
https://abf.rosa.ru/djam/kernel-5.15.git
synced 2025-02-24 02:52:55 +00:00
drop very old macro perf_is_x64
This commit is contained in:
parent
73f4a66ead
commit
88c5158b79
1 changed files with 3 additions and 9 deletions
12
kernel.spec
12
kernel.spec
|
@ -1599,13 +1599,7 @@ cat ../kernel_exclude_debug_files.%{flavour} >> $kernel_files
|
||||||
LC_ALL=C sed -ri "s/^EXTRAVERSION.*/EXTRAVERSION = -%{fullrpmrel}/" Makefile
|
LC_ALL=C sed -ri "s/^EXTRAVERSION.*/EXTRAVERSION = -%{fullrpmrel}/" Makefile
|
||||||
|
|
||||||
%if %{build_perf}
|
%if %{build_perf}
|
||||||
%ifarch x86_64
|
%smake -C tools/perf -s HAVE_CPLUS_DEMANGLE=1 prefix=%{_prefix} NO_GTK2=1 all
|
||||||
%define perf_is_x64 1
|
|
||||||
%else
|
|
||||||
%define perf_is_x64 0
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%smake -C tools/perf -s IS_X86_64=%{perf_is_x64} HAVE_CPLUS_DEMANGLE=1 prefix=%{_prefix} NO_GTK2=1 all
|
|
||||||
%smake -C tools/perf -s prefix=%{_prefix} NO_GTK2=1 man
|
%smake -C tools/perf -s prefix=%{_prefix} NO_GTK2=1 man
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
@ -1692,13 +1686,13 @@ LC_ALL=C sed -ri "s/^EXTRAVERSION.*/EXTRAVERSION = -%{fullrpmrel}/" Makefile
|
||||||
%if %{build_perf}
|
%if %{build_perf}
|
||||||
|
|
||||||
# perf tool binary and supporting scripts/binaries
|
# perf tool binary and supporting scripts/binaries
|
||||||
make -C tools/perf -s V=1 DESTDIR=%{buildroot} IS_X86_64=%{perf_is_x64} HAVE_CPLUS_DEMANGLE=1 prefix=%{_prefix} install
|
make -C tools/perf -s V=1 DESTDIR=%{buildroot} HAVE_CPLUS_DEMANGLE=1 prefix=%{_prefix} install
|
||||||
|
|
||||||
# Versionize shebang (#!/usr/bin/env python -> #!/usr/bin/python3)
|
# Versionize shebang (#!/usr/bin/env python -> #!/usr/bin/python3)
|
||||||
sed -i -e '1 s,^.*$,#!%{__python3},' %{buildroot}%{_prefix}/libexec/perf-core/scripts/python/exported-sql-viewer.py
|
sed -i -e '1 s,^.*$,#!%{__python3},' %{buildroot}%{_prefix}/libexec/perf-core/scripts/python/exported-sql-viewer.py
|
||||||
|
|
||||||
# perf man pages (note: implicit rpm magic compresses them later)
|
# perf man pages (note: implicit rpm magic compresses them later)
|
||||||
make -C tools/perf -s V=1 DESTDIR=%{buildroot} IS_X86_64=%{perf_is_x64} HAVE_CPLUS_DEMANGLE=1 prefix=%{_prefix} install-man
|
make -C tools/perf -s V=1 DESTDIR=%{buildroot} HAVE_CPLUS_DEMANGLE=1 prefix=%{_prefix} install-man
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{build_cpupower}
|
%if %{build_cpupower}
|
||||||
|
|
Loading…
Add table
Reference in a new issue