Jan Kiszka kirjoitti:
Heikki Lindholm wrote:
Jan Kiszka kirjoitti:
Hi,
I'm dumb x86 user who unfortunately just seem to have tumbled in the
cross-compilation trap: I'm trying to generate i586 code on a fancy new
and fast x86_64 compilation host. I got the kernel compiled with
ARCH=i386, using only the pre-installed compiler (i.e. no dedicated
cross tool chain), but I failed to compile xenomai against that kernel
in the following. Which magic switch do I have to apply and where?
As dumb a guess: -m32 compiler switch?
Yes, I know, that would help. But where to feed this argument into the
build system?
I would try makefile (and perhaps config/kconfig/Makefile*) and command
line 'CC="gcc -m32" CXX="gcc -m32" make menuconfig/install' to be sure.
-- Heikki Lindholm