This patch (attached) allows the kernel.h to be generated even if the current kernel is not installed from an RPM. It uses 'uname -m' to determine the arch value. It also correctly generates the macros in kernel.h, with actual values of 0 and 1 (the old version breaks /usr/include/linux/rhconfig.h, at least the version I have.). The reason I looked into this is that I wanted to rebuild sendmail, so theres also a dependeny there.
Created attachment 12865 [details] Patch to rc.sysinit for better kernel.h generation
Is that patch reversed?
Yes, it apparently is. Added in 5.79-1.