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

Re: Building a biarch kernel with make-kpkg under i386?



On Friday 01 October 2004 01:53, Wesley W. Terpstra wrote:
> Good evening!
>
> The kernel-image-2.6.8-2-amd64-k8 kernel in debian/sid is quite nice.
> However, I would like to build my own.
> How do I instruct make-kpkg in an i386 install to build a 64bit kernel?
>
> I've tried using the 'arch' setting, but then it tries to use a
> cross-compiler instead of the '-m64' flag supported by the gcc 3.4 in
> sid (which works great [1]). If I specify explicitly to use gcc-3.4, ld,
> objdump, etc., then it fails later on claiming that some parts have to
> be 32 bit (which appears to be correct).

Have you tried creating a wrapper script named amd64-gcc (or whatever the 
cross compiler should be called) which consists of

#! /bin/sh
gcc-3.4 -m64 "$@"

Hmm, on second thoughts you might have to be a bit cleverer, and only pass 
-m64 if the caller doesn't specify -m32, but you get the idea.

Paul



Reply to: