Hello... I ran into this when building a custom kernel rpm. I was adding drivers for a new device. I patched the kernel config files after they were installed in /PATH/BUILD/linux/configs. Then the kernel build, but no changes :(. It seems that the files are copied into /PATH/BUILD/linux/configs/ , but at build time they are copied again from $RPM_SOURCE_DIR/kernel-%{kversion}-$Config.config to arch/%{_arch}/defconfig. - cp $RPM_SOURCE_DIR/kernel-%{kversion}-$Config.config arch/%{_arch}/defconfig + cp configs/kernel-%{kversion}-$Config.config arch/%{_arch}/defconfig fixes that This makes it significantly easier to add drivers/patches to the kernel for custom installs. For example, my next task is to add some crypto/ipsec stuff to 15 different servers. In making my updates I also noticed that the config files in the $RPM_SOURCE_DIR are not quite the same as the .config file that gets used. After the config file is copied into place make oldconfig is run. The resulting .config file is different. I would recomend something like ... mkdir /PATH/BUILD/linux/configs.new ... BuildKernel() { ... make oldconfig cp .config configs.new/kernel-%{kversion}-$Config.config ... } ... and copying them back to $RPM_SOURCE_DIR
Assigned to dledford
That's how it's done in our current source package.