kernel spec, config (based on fedora src.rpm) for upstream vanilla kernel rpms from kernel.org
built for and run/tested only on centos 7 x86_64
install deps and fetch files:
sudo yum -y install yum-utils rpm-build rpmdevtools
for i in ~/SPECS/kernel-* ; do
spectool -g -A -R $i
sudo yum-builddep -y $i
done
for 4.19:
mkdir -p ${HOME}/rpmbuild/{SPECS,SOURCES}
curl -kLo ${HOME}/rpmbuild/SPECS/kernel.spec https://raw.githubusercontent.com/ryanwoodsmall/kernel-rpm/master/rpm/SPECS/kernel-4.19.spec
spectool -g -A -R ${HOME}/rpmbuild/SPECS/kernel.spec
( time ( rpmbuild -ba --clean ${HOME}/rpmbuild/SPECS/kernel.spec ) ) 2>&1 | tee /tmp/kernelbuild.out
- detect and generate EFI grub.cfg
- /boot/efi/EFI/centos/grub.cfg on default c7
- probably need updated linux-firmware.spec from fedora as well