linux hosted 68k cross compiler

Matthew Majka mmajka@cs5.dasd.honeywell.com
Sun Dec 21 08:44:00 GMT 1997


michael dorin wrote:
> 
> Help!
> 
> I have been trying for two days following several lists of instructions
> and I can't seem to build a cross compiler which will run on Linux that
> builds 68k code for an embedded target.  I don't need any libraries
> I just want to build and assemble 68k code!

Can you give us your --target and the version of Linux you
are running?

> Is there someplace that has a binary version of these ready?

Again.  What is your target?

> Can somebody give me idiot proof instructions? (Including files to get
> etc. for linux hosted 68k development)
> 
> Is there a DOS 68k compiler out there?

Woah!  Don't make that jump just yet.

Here are the basics for building --target=m68k-unknown-coff:

For BINUTILS 2.8.1:
------------------
  setenv CC gcc
  ./configure --prefix=/opt/gnu --target=m68k-unknown-coff
-v
  gmake CC=$CC all install
For GCC-2.7.2.3:
---------------
  setenv CC gcc
  rehash (make sure that /opt/gnu/bin is in your path)
  gpatch -p1 < ../crossgcc-gcc-2.7.2.2.patch
  ./configure --prefix=/opt/gnu --target=m68k-unknown-coff \
      --with-gnu-as --with-gnu-ld -v
  gmake CC=$CC LANGUAGES="c" all install

Hope this clears things up.

-- 
__________________________________
Matthew Majka - Software Engineer
Honeywell Defense Avionics Systems
Albuquerque, New Mexico, USA



More information about the crossgcc mailing list