Services - tools - models - for embedded software development
Embecosm divider strip
Prev  Next

3.5.2.  Configuring uClibc

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]Caution

The patched source tree contains a file, DOT_CONFIG_or32. This is a historical remnant, and should not be used as the .config 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]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]Note

The configuration tool will give two warnings that configuration symbol CONFIG_OR32 refers to undefined symbols UCLIBC_HAS_MMU and ARCH_HAS_NO_FPU. These are a known issue, but the warnings are harmless and may be ignored.

Use the cursor keys to move to the Target Architecture Features and Options sub-menu and select it. Move to the Target CPU has a floating point unit (FPU) entry and deselect it (press N). Then move further down to the last entry Linux kernel source location and set this to point to the main Linux distribution directory.

Return back to the main menu and select the General Library Settings sub-menu. Move to the Large File Support entry and deselect it.

Return back to the main menu and select the Library Installation Options 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.

Embecosm divider strip