Difference between revisions of "Build XINU on Mac OS X"

From Embedded Xinu
Jump to navigation Jump to search
(created HOWTO:Build Xinu on Mac OS X page using Mike's script as a reference)
 
m (HOWTO:Build XINU on Mac OS X moved to Build XINU on Mac OS X: No need for HOWTO in the title, its a category.)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
[[Category:HOWTO]]
 
To setup a MIPS cross-compiler on Mac OS X, we followed almost the exact same procedure as the tutorial for setting up the cross-compiler in a Linux environment. The only difference lies in the second configure command.
 
To setup a MIPS cross-compiler on Mac OS X, we followed almost the exact same procedure as the tutorial for setting up the cross-compiler in a Linux environment. The only difference lies in the second configure command.
  
 
In Linux the command looks as follows:
 
In Linux the command looks as follows:
<pre>   ./configure  \
+
<pre>./configure  \
--prefix=/usr/local/project/mipsel-dev \
+
        --prefix=/usr/local/project/mipsel-dev \
--target=mipsel --with-sysroot=/usr/local/project/mipsel-dev/mipsel/ \
+
        --target=mipsel \
--enable-languages=c  
+
        --with-sysroot=/usr/local/project/mipsel-dev/mipsel/ \
 +
        --enable-languages=c  
 
   make
 
   make
 
   make install</pre>
 
   make install</pre>
Line 11: Line 13:
 
In Mac OS X you will want to run the same command with different options, as follows:
 
In Mac OS X you will want to run the same command with different options, as follows:
 
<pre>./configure \
 
<pre>./configure \
--prefix=${TARGET} \
+
--prefix=/usr/local/project/mipsel-dev \
--target=${ARCH} \
+
--target=mipsel \
 
--enable-languages=c \
 
--enable-languages=c \
 
--without-headers \
 
--without-headers \
Line 20: Line 22:
  
 
Besides these differences, your cross-compiler setup on Mac OS X should be the same as the setup in a Linux environment.
 
Besides these differences, your cross-compiler setup on Mac OS X should be the same as the setup in a Linux environment.
 +
 +
 +
<hr/>
 +
''This work is supported in part by NSF grant DUE-CCLI-0737476.''

Latest revision as of 03:31, 19 December 2008

To setup a MIPS cross-compiler on Mac OS X, we followed almost the exact same procedure as the tutorial for setting up the cross-compiler in a Linux environment. The only difference lies in the second configure command.

In Linux the command looks as follows:

./configure  \
        --prefix=/usr/local/project/mipsel-dev \
        --target=mipsel \
        --with-sysroot=/usr/local/project/mipsel-dev/mipsel/ \
        --enable-languages=c 
   make
   make install

In Mac OS X you will want to run the same command with different options, as follows:

./configure \
	--prefix=/usr/local/project/mipsel-dev \
	--target=mipsel \
	--enable-languages=c \
	--without-headers \
	--disable-intl
   make
   make install

Besides these differences, your cross-compiler setup on Mac OS X should be the same as the setup in a Linux environment.



This work is supported in part by NSF grant DUE-CCLI-0737476.