[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [ot]Can I compile a kernel for a P2?



On Fri, Apr 22, 2005 at 10:11:12AM +0200, Lorenzo Milesi wrote:
> A bit off topic but...
> 
> Can I compile a 2.4.26 kernel for a Pentium2 on my Amd64?

I can compile a kernel for my i386 pxa255 on an amd64, so yeah I think
you can manage a p2 just the same.  setting ARCH and CC to the right
values should take care of it.  Just treat it as a cross compile.
make-kpkg can do it.

ie:
ARCH=i386 CC=i386-linux-gcc CROSS_COMPILE=i386-linux KPKG_ARCH=i386 make-kpkg --append_to_version my-kernel--revision 3 --bzimage kernel_image

Add any other make-kpkg options you like (like --initrd and such).

Len Sorensen



Reply to: