OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [README] - Blame information for rev 464

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 155 jeremybenn
                  OpenRISC Unified GNU Tool Chain Repository
2
                  ==========================================
3
 
4
This directory is where you will find all the source trees for the standard
5
GNU tool chain. The newlib library is included, since that is required for GCC
6
testing.
7
 
8
The structure mirrors that of the main Free Software Foundation repository.
9
 
10
Using a unified directory means that the entire tool chain can be built in a
11 189 jeremybenn
single pass. The script "bld.sh" will build a unified source tree in the a
12 218 jeremybenn
directory (default name "srcw") and then configure, build, check and install
13
all the tools using a separate build directory (default "bld-or32"). The
14
default install directory is "/opt/or32-elf-new").
15 155 jeremybenn
 
16 189 jeremybenn
Use "./bld.sh --help" to check the options available, which includes options
17 218 jeremybenn
to change all the default directories, omit building newlib and to control
18
whichphases of the build process (linking, configuring, building, checking and
19
installing) are run.
20 189 jeremybenn
 
21 218 jeremybenn
By default the tests (which require DejaGnu to be installed) are *not* run.
22
 
23 189 jeremybenn
Note in particular that the script requires a version of Or1ksim built from
24
SVN (not Or1ksim 0.4.0 release) and that the --or1ksim parameter should be
25
used to point to the directory where or1ksim is installed (default
26
/opt/or1ksim-new).
27
 
28 229 jeremybenn
The current version builds GDB separately, because it is not compatible with
29
the libraries in binutils used in the unified build.
30
 
31 238 julius
Apple OS X notes:
32
 
33
  * Install required libraries with MacPorts:
34
 
35
Some GNU libraries that are not supplied as standard with Apple's OS X must be
36
installed. They could be built and installed independently but the author found
37
the  MacPorts package management system a simple and easy way to install them.
38
 
39
First the MacPorts app must be installed. To install MacPorts follow the
40
instructions on the  project's page here:  http://www.macports.org
41
 
42
Once MacPorts is installed install the packages "gmp", "mpfr", and "dejagnu"
43
with the command:
44
 
45
$ sudo port install gmp mpfr dejagnu
46
 
47
  * Build environment variables:
48
 
49
Once the require libraries are installed, their location must be passed to the
50
compiler. The CPPFLAGS, CFLAGS and LFLAGS environment variables are used for
51
this. The standard place MacPorts places its installed libraries is /opt/local
52
so if this default location was used export the following flags before running
53
the bld.sh script:
54
$ export CPPFLAGS="-I/opt/local/include"
55
$ export CFLAGS="-L/opt/local/lib"
56
$ export LDFLAGS="-L/opt/local/lib"
57
 
58
The bld.sh script should then be OK to run as described above.
59
 
60 155 jeremybenn
Any questions should be posted on the OpenRISC forum at
61 245 jeremybenn
opencores.org/forum,OpenRISC, or discussed on IRC at freenode.net, channel
62
#opencores.
63 155 jeremybenn
 
64
 
65
Jeremy Bennett
66 245 jeremybenn
20 August 2010

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.