I created a i586 install image with qemu. I downloaded the SRPMS package for the kernel and installed it. I cd /usr/src/redhat/SPECS rpmbuild -bp --target i586 kernelXXX.spec I does a bunch of things but it did not build a new kernel and put it in /boot I think I am missing a command to actually BUILD the kernel. What is it? Thanks, Jerry
On Thu, Jun 05, 2008 at 02:12:39PM -0700, Jerry Geis wrote:> I created a i586 install image with qemu. > I downloaded the SRPMS package for the kernel and installed it. > I cd /usr/src/redhat/SPECS > rpmbuild -bp --target i586 kernelXXX.spec > I does a bunch of things but it did not build a new kernel and put it in > /boot > > I think I am missing a command to actually BUILD the kernel. > What is it? >Did you check /usr/src/redhat/RPMS/i586 ? Ray
Jerry Geis wrote:> I created a i586 install image with qemu. > I downloaded the SRPMS package for the kernel and installed it. > I cd /usr/src/redhat/SPECS > rpmbuild -bp --target i586 kernelXXX.spec > I does a bunch of things but it did not build a new kernel and put it in > /boot > > I think I am missing a command to actually BUILD the kernel. > What is it?try rpmbuild -bb instead of -bp nate
> > nate wrote: > >/ Jerry Geis wrote: > />>/ I created a i586 install image with qemu. > />>/ I downloaded the SRPMS package for the kernel and installed it. > />>/ I cd /usr/src/redhat/SPECS > />>/ rpmbuild -bp --target i586 kernelXXX.spec > />>/ I does a bunch of things but it did not build a new kernel and put it in > />>/ /boot > />>/ > />>/ I think I am missing a command to actually BUILD the kernel. > />>/ What is it? > />/ > />/ try rpmbuild -bb instead of -bp > />/ > / > And dont forget the patches to make it build on i586 :D >What do you mean, I thought specifying the --target would apply the right patches? What else do I need? Jerry -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20080605/e6722c22/attachment-0002.html>
Jerry Geis wrote:> What do you mean, I thought specifying the --target would apply the > right patches? > What else do I need?Coming in at the end of the thread I'm not sure what the original question(s) were about but in my experience if the patches are referenced in the spec file, using rpmbuild -bb (or -ba to build a new src rpm as well), applies all the right patches automatically. nate