kernel rebuild does'nt build actual kernel

Tom Diehl tdiehl at rogueind.com
Tue Mar 2 04:32:52 UTC 2004


On Mon, 1 Mar 2004, Harry Putnam wrote:

> Tom Diehl <tdiehl at rogueind.com> writes:
> 
> > Yes it does. You just have to talk nice to it. :-)
> >
> > Try adding --target i686-redhat-linux to your command line. If you want to do
> > the i386 and i686 stuff at the same time add both --target i686-redhat-linux
> > and --target i386-redhat-linux on the command line.
> >
> > FWIW you can edit the spec file to turn off the debug, boot and other kernels
> > you might not need. The stuff you need to edit is right at the top.
> >
> 
> Sorry to be a pest Tom but the *spec file is so poorly commented and
> the comments that are there are so ambiguous it is really difficult
> to tell from readin them what any of it supposed to be doing.

Sorry Harry, I have not looked at the 2.6 spec file. In the 2.4 spec file
there is this at the top:

# What parts do we want to build?  We must build at least one kernel.
# These are the kernels that are built IF the architecture allows and
# no contrary --with/--without arguments are given on the command line.

%define buildup 1
%define buildsmp 0
%define buildBOOT 0
%define buildbigmem 0
%define builddebug 0
%define buildjensen 0
%define buildtape 0
%define buildBOOTtape 0
%define buildUML 0

I just assumed that the 2.6 spec was the same. I know that the with/without
part was stripped out of the 2.4 but last time I checked setting the above
to 0 or 1 depending on what you need worked. Of course it has been a while
since I did this so it might have changed. :-(

> 
> Would have almost been better to no comment it at all.
> 
> I don't see how to turn off debug smp other $ARCH or any of it for
> sure.
> 
> I'm guessing the various arch can be turned off here:
> 
>   # groups of related archs
>   %define all_x86 i386 i586 i686
>   %define all_sparc sparc sparc64

I am not sure.

>   # Override generic defaults with per-arch defaults 
>   
>   # First, architecture-specific kernels off on all other archs (ifnarch)
>   %ifnarch i386 x86_64 sparc
>   %define buildsource 0
>   %endif
> 
> `Other' than what?
> 
> Does this mean i386 x86_64 sparc are turned off?
> Or does it mean everything else is turned off?

On archs that do not match what you are building?? IOW if you are building
i386 you only get the i386 stuff. Same for i686.

> 
> I don't understand why its required that comments be riddles.... hehe.
> 
> I made the mistake of running:
> rpmbuild --target i686-redhat-linux 
>   --target i386-redhat-linux 
>   --target i586-redhat-linux -ba kernel-2.6.spec
> Its still running hours later.  And this is on a 2GHz cpu with 512
> ram.

Yes, it takes a while. I usually let it run overnight.

> 
> It already generated what I needed so I guess I'll kill it but I kind
> of wanted to see what is taking so damned long.  And learn how to
> edit the spec so I get a little shorter run.

:-)

Tom





More information about the fedora-test-list mailing list