On Wed, 2002-12-25 at 03:55, Mario R. Pizzolanti wrote:
> I'm trying to build rpms compiled for athlon using the cooker 
> kernel-2.4.20.2mdk-1-1mdk.src.rpm package.
> 
> When I give the command:
>       rpmbuild --rebuild --target=athlon kernel-2.4.20.2mdk-1-1mdk.src.rpm
> the process crashes after a couple of minutes...
> Is this the correct command?  I have also tried using
>       --target=athlon-gnu-linux 
> with the same results :(

Here's what I do.
1) create a file called ~/.rpmrc with the following:
buildarchtranslate: athlon: athlon
buildarchtranslate: i686: athlon
buildarchtranslate: k6: athlon
buildarchtranslate: i586: athlon
buildarchtranslate: i486: athlon
buildarchtranslate: i386: athlon

2) Build using:
rpm --rebuild --with smp --with source --without secure --without
enterprise --without BOOT --without doc
kernel-2.4.20.2mdk-1-1mdk.src.rpm

** That's all one line **

Change the smp, up, secure, and/or enterprise to "with"/"without" based
on your own system.  This makes so it only builds the kernel you want,
instead of all of them.

TTFN,
Lonnie



Reply via email to