how to cross compile kexec for 64b x86_64 on a 32b x86
Bernhard Walle
bwalle at suse.de
Tue Jun 24 14:55:08 EDT 2008
* Neil Horman <nhorman at redhat.com> [2008-06-24 14:52]:
> On Tue, Jun 24, 2008 at 11:11:36AM -0700, Srinivas Murthy wrote:
> > Hi,
> > I need to cross-compile kexec-tools-1.101 for a x86_64 architecture
> > platform on a 32b x86.
> >
> > I didn't see any instructions in the configure, etc. scripts for doing this.
> >
> > Can you please let me know how to do this?
> >
> Mostly, you can get away with adding -m32 to the top level CFLAGS in the
> makefile and running setarch i386 in the shell where you run make
It's the other way round. Not i386 on x86-64, but x86-64 on i386.
(BTW: 'setarch' does not exist on SUSE, we use 'linux32'. I don't have
an overview about other Linux distributions. Unfortunately, that seems
to be not standardised via LSB.)
Bernhard
--
Bernhard Walle, SUSE LINUX Products GmbH, Architecture Development
More information about the kexec
mailing list