[CentOS-devel] kernel-sourcecode RPM?

Greg Swallow - SkyNet gregswallow at skynetonline.ca
Tue Nov 22 19:54:16 UTC 2005

Charlie Brady wrote:
> Yes, I can do that. But having the kernel-sourcode RPM I've had previously
> would be much more convenient. It means that I can build kernel-module-xxx
> RPMs using something like this:

You can install the kernel source rpm, edit the spec file like this:
@@ -55,7 +55,7 @@
%ifarch noarch
 %define builddoc 1
-%define buildsource 0
+%define buildsource 1
 %define buildup 0
 %define buildsmp 0
 %define all_arch_configs $RPM_SOURCE_DIR/kernel-%{kversion}*.config

And build the kernel-sourcecode rpm with:
rpmbuild -bb --target noarch kernel-2.6.spec


More information about the CentOS-devel mailing list