Re: [rock-user] Some help needed with compiling an Opteron build environment
"Thomas \"fake\" Jakobi" <fake-o+BlaNWM+K2Y/[email protected]> Wed, 08 Feb 2006 19:04:29 +0100
| Newsgroups | gmane.linux.distributions.rock.user |
|---|---|
| Message-ID | <[email protected]> |
hi michael,
Michael Obster schrieb:
> Where is this switch? I only can set PC-Compatible and the Athlon
> Opteron but not if the resulting kernel should be a 32-bit or 64-bit in
> "make menuconfig". Or do I need to compile the kernel in the
> cross-compile environment?
of course, you need to compile a 64 bit kernel with a 64 bit compiler.
the rock linux config file misc/config/config-200-crosstools.in offers
this ('Cross Toolchain Creation'). just add x86_64 to the list of
supported targets. in line 30 in that file.
however you achieve it, get your hands on a cross compiler, and then
call make menuconfig with the CROSS_COMPILE and ARCH parameter.
for example, if your compiler is called x86_64-unknown-linux-gnu-gcc it
would read
make ARCH=x86_64 CROSS_COMPILE=x86_64-unknown-linux-gnu- menuconfig
and
make ARCH=x86_64 CROSS_COMPILE=x86_64-unknown-linux-gnu- vmlinux
et alas.
good luck,
fake