linux-mips
[Top] [All Lists]

Re: crosscompiler

To: linux-mips@linux-mips.org
Subject: Re: crosscompiler
From: Ulrich Eckhardt <eckhardt@satorlaser.com>
Date: Tue, 17 May 2005 09:14:48 +0200
In-reply-to: <20050515125247.7596.fh034.wm@smtp.sc0.cp.net>
Organization: Sator Laser GmbH
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20050515125247.7596.fh034.wm@smtp.sc0.cp.net>
Sender: linux-mips-bounce@linux-mips.org
User-agent: KMail/1.7.2
neoxx@canada.com wrote:
> I wanna set up a crosscompiler on my intel machine (
> using debian woody ) in order to cross-compile a
> self-written kernel ( no Linux/Mips ) for a MIPS 4kc (
> little endian ) CPU.

I'm using Debian/testing here and roughly followed
http://people.debian.org/~debacle/cross.html in order to get a working system. 
Almost no problems encountered.

> Can I alternatively use
> the mipsel-linux-gcc for the kernel ( I'm not quite
> sure what sort of compiler that is... )

mips= for MIPS
el= endianess little

IOW, this is precisely what I got from installing the crosscompiler and 
probably what you want. In order to compile non-Linux programs (i.e. programs 
launched directly from YAMON) I used these 
  CFLAGS += -Wall -mips32 -fno-builtin -mno-abicalls -fno-pic -GO -O2
though some of them might be redundant/unnecessary - I just tried combinations 
until it worked.

hth

Uli


<Prev in Thread] Current Thread [Next in Thread>