Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: m-labs/scripts
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 13fbe76
Choose a base ref
...
head repository: m-labs/scripts
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 732ecec
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Apr 13, 2012

  1. Copy the full SHA
    7fe8bd2 View commit details

Commits on Apr 14, 2012

  1. Merge pull request #3 from jpbonn/patch-1

    Corrected missing tags, added OSX note.
    xiangfu committed Apr 14, 2012
    Copy the full SHA
    732ecec View commit details
Showing with 41 additions and 29 deletions.
  1. +41 −29 README.html
70 changes: 41 additions & 29 deletions README.html
Original file line number Diff line number Diff line change
@@ -57,7 +57,7 @@ <h3><a name="secToolchain">Build the Milkymist tool chain and Flickernoise</a></
<LI>Compile and install.
download toolchain sources and compile toolchain:
<pre>
$ make -C compile-lm32-rtems
$ make -C compile-lm32-rtems
</pre>
</LI>

@@ -94,22 +94,21 @@ <h3><a name="secReflash">Milkymist reflash script</a></h3>

<h2><a name="secHost">Host Specific Requirements</a></h2>
<ol>
<li><a href="#secUbuntu">Ubuntu 11.04 Desktop</a>
</li><li><a href="#secOSX">Mac OS X 10.6 Snow Leopard</a>
</li>
<li><a href="#secUbuntu">Ubuntu 11.04 Desktop</a> </li>
<li><a href="#secOSX">Mac OS X 10.6 Snow Leopard</a> </li>
</ol>

<h3><a name="secUbuntu">Ubuntu 11.04 Desktop</a></h3>
<p>
Ubuntu 11.04 comes with autotools 2.67 but rtems needs autotools 2.68. Some of the autotools have hard coded paths so any existing installtion interfers with an installation done in an alternate path. (There's probably a way around this but I don't know what it is.) To get around this we remove the old autotools and install news ones.
Ubuntu 11.04 comes with autotools 2.67 but rtems needs autotools 2.68. Some of the autotools have hard coded paths so any existing installtion interfers with an installation done in an alternate path. (There's probably a way around this but I don't know what it is.) To get around this we remove the old autotools and install news ones.
<OL>
<LI>Remove the folowing packages (sudo apt-get remove `packagename`):
<UL>
<LI>autotools-dev</LI>
<LI>autoconf</LI>
<LI>automake</LI>
<LI>libtool</LI>
<LI>m4</LI>
<LI>autotools-dev</LI>
<LI>autoconf</LI>
<LI>automake</LI>
<LI>libtool</LI>
<LI>m4</LI>
</UL>
</LI>
<LI>Install the latest autotools, M4, and libtool:
@@ -139,25 +138,28 @@ <h3><a name="secUbuntu">Ubuntu 11.04 Desktop</a></h3>
$ export PATH M4
</pre>
</LI>
<LI>Install the following packages (needed tool / package name):
<LI>Install the following packages (needed tool / package name):
<UL>
<LI>jpeg: libjpeg-dev</LI>
<LI>freetype: libfreetype6-dev</LI>
<LI>clang: clang </LI>
<LI>gcc-multilib: gcc-multilib (for flterm 'asm/ioctls.h' file not found error) </LI>
<LI>GD graphics library: libgd2-xpm-dev </LI>
<LI>makeinfo: texinfo </LI>
<LI>curses: libncurses-dev </LI>
<LI>lemon: lemon </LI>
<LI>re2c: re2c</LI>
<LI>jpeg: libjpeg-dev</LI>
<LI>freetype: libfreetype6-dev</LI>
<LI>clang: clang </LI>
<LI>gcc-multilib: gcc-multilib (for flterm 'asm/ioctls.h' file not found error) </LI>
<LI>GD graphics library: libgd2-xpm-dev </LI>
<LI>makeinfo: texinfo </LI>
<LI>curses: libncurses-dev </LI>
<LI>lemon: lemon </LI>
<LI>re2c: re2c</LI>
</UL>
</LI>
</OL>

<h3><a name="secOSX">Mac OS X 10.6 Snow Leopard</a></h3>
<OL>
<LI>(Optional) Edit compile-lm32-rtems/Makefile and add the --disable-werror option to the binutils configure command. This is only necessary with some versions of GCC. If you don't get a build error about shadowed functions you don't need this step.
</LI>

<LI>Update autotools
OS X 10.6 and prior require updated autotools. Download, build, and install automake and autoconf and add them to your path. Note that aclocal does not call the autoconf binary, so the _path_ that your autoconf is in doesn't matter. It _does_ look at m4 macros, though, and it appears to find autoconf macros out of /usr/share, which corresponds to the system autoconf (2.61 on osx). Therefore you must rename or delete the following to use the newly installed versions:
OS X 10.6 and prior require updated autotools. Download, build, and install automake and autoconf and add them to your path. Note that aclocal does not call the autoconf binary, so the _path_ that your autoconf is in doesn't matter. It _does_ look at m4 macros, though, and it appears to find autoconf macros out of /usr/share, which corresponds to the system autoconf (2.61 on osx). Therefore you must rename or delete the following to use the newly installed versions:

<pre>
/usr/bin/autoheader
@@ -167,26 +169,29 @@ <h3><a name="secOSX">Mac OS X 10.6 Snow Leopard</a></h3>
/usr/share/autoconf
/usr/share/automake
</pre>
</LI>

<LI> Install wget. The Makefiles use wget instead of curl. So build and install wget:
<LI> Install wget. The Makefiles use wget instead of curl. So build and install wget:
<pre>
$ curl ftp://ftp.gnu.org/gnu/wget/wget-1.12.tar.gz -o wget-1.12.tar.gz
$ tar xzvf wget-1.12.tar.gz
$ cd wget-1.12
$ ./configure --prefix=/opt
$ make
$ make
$ make install
</pre>
</LI>

<LI> Install lemon. OS X also needs the Lemon parser generator. It needs to be built from source as shown:
<LI> Install lemon. OS X also needs the Lemon parser generator. It needs to be built from source as shown:
<pre>
$ curl http://www.sqlite.org/cvstrac/getfile/sqlite/tool/lemon.c -o lemon.c
$ curl http://www.sqlite.org/cvstrac/getfile/sqlite/tool/lempar.c -o lempar.c
$ gcc -o lemon lemon.c
$ cp lemon lempar.c /opt/bin
</pre>
</LI>

<LI> Install re2c. OS X also needs re2c from http://sourceforge.net/projects/re2c/
<LI> Install re2c. OS X also needs re2c from http://sourceforge.net/projects/re2c/
<pre>
$ curl http://surfnet.dl.sourceforge.net/project/re2c/re2c/0.13.5/re2c-0.13.5.tar.gz -o re2c-0.13.5.tar.gz
$ tar xzvf re2c-0.13.5.tar.gz
@@ -195,16 +200,18 @@ <h3><a name="secOSX">Mac OS X 10.6 Snow Leopard</a></h3>
$ make
$ make install
</pre>
</LI>

<LI> Install sed. (OS X sed behaves differently from what the Makefile expects):
<LI> Install sed. (OS X sed behaves differently from what the Makefile expects):
<pre>
$ curl ftp://ftp.gnu.org/gnu/sed/sed-4.2.tar.gz -o sed-4.2.tar.gz
$ tar xzvf sed-4.2.tar.gz
$ tar xzvf sed-4.2.tar.gz
$ cd sed-4.2
$ ./configure --prefix=/opt
$ make
$ make install
</pre>
</LI>

<LI> Install Freetype.
<pre>
@@ -215,6 +222,7 @@ <h3><a name="secOSX">Mac OS X 10.6 Snow Leopard</a></h3>
$ make
$ make install
</pre>
</LI>

<LI> Install libjpeg.
<pre>
@@ -225,13 +233,15 @@ <h3><a name="secOSX">Mac OS X 10.6 Snow Leopard</a></h3>
$ make
$ make install
</pre>
</LI>

<LI> Install XMP library.
<pre>
$ curl ftp://ftp.x.org/contrib/libraries/xpm-3.4k.tar.gz -o xpm-3.4k.tar.gz
$ make -f Makefile.noX
$ make -f Makefile.noX install
</pre>
</LI>

<LI> Install Portable Network Graphics library.
<pre>
@@ -242,6 +252,7 @@ <h3><a name="secOSX">Mac OS X 10.6 Snow Leopard</a></h3>
$ make
$ make install
</pre>
</LI>

<LI> Install the GD Graphics Library.
<pre>
@@ -251,10 +262,11 @@ <h3><a name="secOSX">Mac OS X 10.6 Snow Leopard</a></h3>
$ ./configure
edit the generated config.h file and comment out the line:
#define HAVE_LIBFONTCONFIG 1
to
to
/* #define HAVE_LIBFONTCONFIG 1 */
$ make
$ make install
</pre>
</LI>
</OL>
</body>
</body>