When on i686 machine I issue kernel build command, it will make all
kernels destined for the i686 regardless what said in config file
(kernel-2.2.16.i386.config etc). I figured this out -- since
DependKernel() places RedHat's ..config to arch/i386/defconfig,
but changed by RedHat scripts/Configure looks to
configs/*-$KERNTYPE.config first (where $KERNELTYPE taken from
/boot/kernel.h), it will always got the configs for running kernel
instead of supplied config.
Suggested change is to place required config file to .config in
DependKernel instead of arch/.../defconfig (that isn't ever consulted
if configs/*$KERNTYPE exists).
What's interesting is that this should break all the kernels including
smp/BOOT etc -- all should be built using type of kernel running on
build machine... I'm curious why there are no similar reports exists
in bugzilla. Maybe I again missed something?
Note that this bug (if it is) is in 7.0 release also.
The same thing in latest 2.2.17-4 in rawhide.
People -- how you build different kernel rpms included in binary cdrom
Patch for 2.2.17-4 included.
Created attachment 4794 [details]
patch for 2.2.17-4.spec
Well, this is very old issue, seems to be fixed a long-long time ago...