Additional configuration options specific to the OpenRISC core are
provided in the patched source tree. Make these available by linking
to Config
in the main directory
ln -s extra/Configs/Config.or32 Config
Configuration for uClibc is via the file
.config
in the main directory. Like Linux,
uClibc also provides a graphical configuration tool to set up
.config
.
The MOF website provides a template .config
file. Copy this from the location given in Section 2.3 into .config
.
Caution | |
---|---|
The patched source tree contains a file,
|
The configuration tool is not able to set every parameter, so edit
.config
with a text editor. Change the line
setting CROSS_COMPILER_PREFIX
option to read.
CROSS_COMPILER_PREFIX="or32-uclinux-"
Important | |
---|---|
This is a key change, and ensures the build of uClibc picks up the OpenRISC 1200 tool chain and not the standard workstation compiler |
Run the configuration tool, so the remaining changes can be made with the graphical parameter editor.
make menuconfig
Note | |
---|---|
The configuration tool will give two warnings that configuration symbol
|
Use the cursor keys to move to the
sub-menu and select it. Move to
the
entry and deselect it
(press
N
). Then move further
down to the last entry and set this to point
to the main Linux distribution directory.
Return back to the main menu and select the
sub-menu. Move to the
entry and deselect it.
Return back to the main menu and select the
sub-menu. Set the entries for
both the
RUNTIME_PREFIX
and
DEVEL_PREFIX
options to be the main installation
directory (in the examples here /opt/or32
).
Return to the main menu and exit, saving the new configuration file.