I've added a couple clarifications
-- see embedded remarks after quote-excerpts, following.
James G. Sack (jim) wrote:
..
edit kernel-261511831-j1.spec
append j1 to the '%define release..' line
(or, you may wish to experiment further mods to this line,
such as replacing '%{rhbsys}' with say 'j2'.
The resulting names for the kernel and module directory
will carry a suffix like '..FC4jsackj1smp' or '..FC2j2'
for the 2 example cases)
Added: you must NOT add a '_xxx' or '-xxx' suffix for some reason.
A .xxx suffix seems to be ok, though.
rpmbuild -bp kernel-261511831-j1.spec
(this applies patches provided by the distribution,
and then does everything through a '.configure' step
that you might do manually)
cd /usr/src/redhat/BUILD/kernel-2.6.15/linux-2.6.15
-->make changes to sources and/or .config
cd /usr/src/redhat/SPECS
rpmbuild --short-circuit -bc /usr/src/redhat/SPECS/kernel-261511831-j1.spec
Added: you need not use the full path to the sopec if you do a cd as
shown above; equivalently, you need not do the cd if you do give the
full path. But I'm sure you already knew that.
Also: it is necessary to do both of the short-circuit steps:
rpmbuild --short-circuit -bc kernel-261511831-j1.spec
rpmbuild --short-circuit -bi kernel-261511831-j1.spec
to get the final outputs in /var/tmp, as discussed.
It seems to me that I have at least once done a -bi without the -bc, but
I can't seem to do it today -- so best always do both steps.
..jim
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list