URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [README] - Rev 287
Go to most recent revision | Compare with Previous | Blame | View Log
OpenRISC Unified GNU Tool Chain Repository==========================================This directory is where you will find all the source trees for the standardGNU tool chain. The newlib library is included, since that is required for GCCtesting.The structure mirrors that of the main Free Software Foundation repository.Using a unified directory means that the entire tool chain can be built in asingle pass. The script "bld.sh" will build a unified source tree in the adirectory (default name "srcw") and then configure, build, check and installall the tools using a separate build directory (default "bld-or32"). Thedefault install directory is "/opt/or32-elf-new").Use "./bld.sh --help" to check the options available, which includes optionsto change all the default directories, omit building newlib and to controlwhichphases of the build process (linking, configuring, building, checking andinstalling) are run.By default the tests (which require DejaGnu to be installed) are *not* run.Note in particular that the script requires a version of Or1ksim built fromSVN (not Or1ksim 0.4.0 release) and that the --or1ksim parameter should beused to point to the directory where or1ksim is installed (default/opt/or1ksim-new).The current version builds GDB separately, because it is not compatible withthe libraries in binutils used in the unified build.Apple OS X notes:* Install required libraries with MacPorts:Some GNU libraries that are not supplied as standard with Apple's OS X must beinstalled. They could be built and installed independently but the author foundthe MacPorts package management system a simple and easy way to install them.First the MacPorts app must be installed. To install MacPorts follow theinstructions on the project's page here: http://www.macports.orgOnce MacPorts is installed install the packages "gmp", "mpfr", and "dejagnu"with the command:$ sudo port install gmp mpfr dejagnu* Build environment variables:Once the require libraries are installed, their location must be passed to thecompiler. The CPPFLAGS, CFLAGS and LFLAGS environment variables are used forthis. The standard place MacPorts places its installed libraries is /opt/localso if this default location was used export the following flags before runningthe bld.sh script:$ export CPPFLAGS="-I/opt/local/include"$ export CFLAGS="-L/opt/local/lib"$ export LDFLAGS="-L/opt/local/lib"The bld.sh script should then be OK to run as described above.Any questions should be posted on the OpenRISC forum atopencores.org/forum,OpenRISC, or discussed on IRC at freenode.net, channel#opencores.Jeremy Bennett20 August 2010
Go to most recent revision | Compare with Previous | Blame | View Log
