On 11/22/06, Tony Nelson <tonynelson@xxxxxxxxxxxxxxxxx> wrote:
At 10:28 PM -0500 11/21/06, Kurt Wall wrote: >Eh, I'm trying to build a new kernel. The release notes >(http://fedora.redhat.com/docs/release-notes/fc6/en_US/sn-Kernel.html) are >spot on up to this point at the end of section 8.6: > > "Normally, kernels for Fedora are built using the rpmbuild utility >and a specfile. Your results may vary if you use the kernel's built-in >make rpm target." > >So, is "rpmbuild -bb --target=$(uname -m) kernel-2.6.spec" the command I want? I think: rpmbuild --rebuild -bb --target=$(uname -m) kernel-xxx.src.rpm This builds a new binary package and removes the source. If you want the source: rpmbuild --recompile -bp --target=$(uname -m) kernel-xxx.src.rpm
What you posted only rebuilds a pre-existing kernel SRPM. I think Kurt wanted to build a new kernel.org kernel into an RPM. Although I'm pretty sure that kerne.org kernels have included a 'make rpm' target for a while now, so that might be alot easier than trying to figure out 'the fedora way'. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ L. Friedman netllama@xxxxxxxxx LlamaLand http://netllama.linux-sxs.org