diff --git a/kernel.spec b/kernel.spec index 276d75b70c7fd71f46e348f96956e4880af2e3fb..e5c22519d5b996a7d7a6dbe9a33bc03a88f3fada 100644 --- a/kernel.spec +++ b/kernel.spec @@ -56,6 +56,8 @@ Source2001: cpupower.config Source3000: kernel-5.10.0-aarch64.config Source3001: kernel-5.10.0-x86_64.config +Source4000: pahole.tar.gz + %if 0%{?with_patch} Source9000: apply-patches Source9001: guards @@ -109,6 +111,8 @@ BuildRequires: flex xz-devel libzstd-devel BuildRequires: java-devel %endif +BuildRequires: cmake +BuildRequires: tar %description The Linux Kernel, the operating system core itself. @@ -253,6 +257,8 @@ tar -xjf %{SOURCE9998} mv kernel linux-%{KernelVer} cd linux-%{KernelVer} +cp %{SOURCE4000} . + %if 0%{?with_patch} cp %{SOURCE9000} . cp %{SOURCE9001} . @@ -303,6 +309,12 @@ cp -a tools/perf tools/python3-perf %build cd linux-%{KernelVer} +## make pahole +tar -xzvf pahole.tar.gz +cd pahole/build +cmake -D__LIB=lib -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=OFF ../ +make install + perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = -%{release}.%{_target_cpu}/" Makefile ## make linux diff --git a/pahole.tar.gz b/pahole.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..21adc5e62a85082bfe365840897c50ffff925297 Binary files /dev/null and b/pahole.tar.gz differ