On Apr 14, 2004 at 16:35, Matt Hansen in a soothing rage wrote: >On Wed, 2004-04-14 at 12:24, Alexander Dalloz wrote: >> Am Mi, den 14.04.2004 schrieb jludwig um 03:44: >> >> > RPM installs packages. Make compiles (makes) them. Two totally different >> > beasts. >> >> > jludwig <wralphie@xxxxxxxxxxx> >> >> Matt certainly meant not rpm (-i) but rpmbuild, to create a kernel rpm >> which then integrates well to the whole RPM based system. At least that >> was my implicit understanding of his comment. >> >> Alexander > >Yes, that is what I implied. Would replacing the last step, "make >install", with "make rpm" be correct/adequate? No. With 'make rpm' you would still have to install the kernel. >As an idea to inquire >more, I grep'd /usr/src/linux*/Makefile for "rpm" and the following is >the output: > > [helios@fc1 linux-2.4]$ cat Makefile | grep -i rpm >RPM := $(shell if [ -x "/usr/bin/rpmbuild" ]; then echo >rpmbuild; \ > else echo rpm; fi) ># RPM target ># If you do a make spec before packing the tarball you can rpm -ta >it ># Build a tar ball, generate an rpm from it and pack the result >rpm: clean spec > $(RPM) -ta $(TOPDIR)/../$(KERNELPATH).tar.gz ; \ > >So it seems that the rpm target executes the "clean" and "spec" targets >to create an rpm from a tar.gz'd kernel. Is this correct? Or is a "make >spec" needed before the "make rpm". I'm not sure which step in the >compilation process created the tar.gz archive, maybe I'll need to >read/understand more of the Makefile; anyone care to explain? 'make rpm' would first run 'make clean' and then 'make spec' before creating the kernel rpm. N.Emile... -- Registered Linux User # 125653 (http://counter.li.org) Switch to: http://www.speakeasy.net/refer/190653 There's no future in time travel. 08:01:54 up 24 days, 20:34, 4 users, load average: 0.00, 0.00, 0.00