next up previous contents
Next: Compiling GDB Up: Compiling and Installing uCR Previous: Compiling and Installing uCR

Building uCR

Building uCR does not require configuring, like all the other packages might have. Instead, it rides on all the configuration efforts of other packages, or a few envirunment variables. You just need to make sure that your cross tools are in your path, and that GNU make is in your path before any other non-gnu make..

Unpack the uCR source distribution somewhere convenient, say /usr/local/ucr, and do the following for an i960_ise target:

% setenv UCR /usr/local/ucr
% setenv TARGET i960_ise
% cd /usr/local/ucr/source
% make all

The make command will build all the libraries, and any components needed. This should run smoothly, and relatively quickly. You can use the same uCR source directory for any supported targets, because the uCR makefiles automatically separate the target-dependent object code into different directories.

Congratulations, you are done! (I hope.)

uCR supports the Picture Elements, Inc. Imaging Subsystem Engine (ISE) board directly, so a locore.o file comes with it. There is also a model for linking programs into DRAM on the ISE board. Compiling programs for this target is thus quite simple. The following sample Makefile file compiles and links a certain valuable application program:

include $(UCR)/make/rules.mk
TARG := file.scof
OBJ := hello.o
LIBS := -lgdb -lchips -li960
MODEL := dram.ld
include $(UCR)/make/image.mk

The product of this makefile is file.scof, a COFF file that can be loaded into the ISE board with the aid of the BOOTPROM. An intermediate file, file.exe, is the same executable with extra linker sections, and debugging information.


next up previous contents
Next: Compiling GDB Up: Compiling and Installing uCR Previous: Compiling and Installing uCR
Stephen Williams
9/2/1997