From: Mikael Pettersson <mikpe@csd.uu.se>
To: Stephan von Krawczynski <skraw@ithnet.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: Compiling an i386 kernel on AMD Opteron
Date: Thu, 4 Sep 2003 12:15:17 +0200 [thread overview]
Message-ID: <16215.4277.540644.262286@gargle.gargle.HOWL> (raw)
In-Reply-To: <20030904115209.56e019b1.skraw@ithnet.com>
Stephan von Krawczynski writes:
> Hello,
>
> is it possible to compile a kernel on Opteron for i386 (32-bit) and not 64 bit
> Opteron with usual make procedures?
>
> When I do a simple "make menuconfig" I can only see the Opteron processor type
> in "Processor type and features" ...
You need to learn about cross-compilation.
make ARCH=i386
is the first step for you. Most people doing this also have cross-compilation
tool sets (compilers, linkers, libcs etc), and the CROSS_COMPILE= make
variable can be set to pick those up.
E.g., I do
make ARCH=x86_64 CROSS_COMPILE=x86_64-unknown-linux-
or
make ARCH=ppc CROSS_COMPILE=ppc-unknown-linux-
when building x86-64 or ppc32 kernels on an i386 host.
Your x86-64 gcc should be able to generate 32-bit binaries using
the -m32 flag, so something like make ARCH=i386 CFLAGS=-m32 might work.
next prev parent reply other threads:[~2003-09-04 10:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-04 9:52 Stephan von Krawczynski
2003-09-04 10:15 ` Mikael Pettersson [this message]
2003-09-04 17:24 ` Stephan von Krawczynski
2003-09-04 18:52 ` Mikael Pettersson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=16215.4277.540644.262286@gargle.gargle.HOWL \
--to=mikpe@csd.uu.se \
--cc=linux-kernel@vger.kernel.org \
--cc=skraw@ithnet.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®