Finally!
I started with a fresh install of Fedora-34 and kernel-5.13.6-200.fc34.src.rpm
Before the previous build, I did not done `sudo rpmbuild builddep kernel.spec`, so some
builddep is not installed before build starts.
The critical change to kernel.spec to allow the build to go ahead:
%define with_configchecks %{?_without_configchecks: 0} %{?!_without_configchecks:
0}
With this :
# We only build kernel-headers on the following...
%if 0%{?fedora}
%define nobuildarches i386 i686 ppc64 s390x %{arm} %{power64} aarch64 ppc64le
%else
%define nobuildarches i386 i686 %{arm}
%endif
# kernel PAE (only valid for ARM (lpae))
%define with_pae %{?_without_pae: 0} %{?!_without_pae: 0}
# kernel-debug
%define with_debug %{?_without_debug: 0} %{?!_without_debug: 0}
# kernel-debuginfo
%define with_debuginfo %{?_without_debuginfo: 0} %{?!_without_debuginfo: 0}
I got:
$ ls -lsh
total 97M
68K -rw-rw-r--. 1 fcc fcc 66K Aug 5 03:00 kernel-5.13.6-200.0805.fc34.x86_64.rpm
38M -rw-rw-r--. 1 fcc fcc 38M Aug 5 03:00 kernel-core-5.13.6-200.0805.fc34.x86_64.rpm
15M -rw-rw-r--. 1 fcc fcc 15M Aug 5 03:00 kernel-devel-5.13.6-200.0805.fc34.x86_64.rpm
42M -rw-rw-r--. 1 fcc fcc 42M Aug 5 03:00
kernel-modules-5.13.6-200.0805.fc34.x86_64.rpm
2.3M -rw-rw-r--. 1 fcc fcc 2.3M Aug 5 03:00
kernel-modules-extra-5.13.6-200.0805.fc34.x86_64.rpm
272K -rw-rw-r--. 1 fcc fcc 272K Aug 5 03:00
kernel-modules-internal-5.13.6-200.0805.fc34.x86_64.rpm
After doing `rpm -ivh kernel-5* kernel-core-5* kernel-modules-5* kernel-devel-5*`, it
booted OK.