Commit cdc52d0d authored by Thanassis Tsiodras's avatar Thanassis Tsiodras
Browse files

Updated instructions

parent b32b484a
Pipeline #113 skipped
......@@ -90,7 +90,10 @@ To use emulation (default, if `FPU` option is not provided), pass `FPU=0`:
The `FPU` and `CFG` options are completely independent ; you can e.g.
compile a debug version that uses native FPU, and a release one that uses
emulation. Just keep in mind that currently, 4.11
[does not allow you to use the same BSP](,
for both native and emulated FPU usage ; you'll have to build separate
BSPs by tweaking the `leon2.cfg`/`leon3.cfg` files when you build RTEMS.
## Select Leon target
......@@ -103,40 +106,35 @@ Use the `LEON` Makefile parameter to decide which target to build for
Messages shown during compilation follow the semantics of the Linux kernel
compilation process, emitting short messages by default (CC for compilation,
LD for linking):
LD for linking). The compilation is also incremental, taking into account
the modification timestamps of the files and their dependencies:
$ touch src/task1.c
$ make
[CC] objs.debug/FPU_task1.o
[LD] bin.debug/fputest
[CC] objs.debug.NONFPU.leon3/task1.o
[LD] bin.debug.NONFPU.leon3/fputest
If you want to see the complete commands used, use `V=1`:
If you want to see the complete commands used, pass `V=1`:
$ touch src/task1.c
$ make CFG=debug FPU=0 V=1
sparc-rtems4.8-gcc -c \
-B/home/user/development/rtems/sparc-rtems4.8/leon3/lib \
-specs bsp_specs -qrtems -nodefaultlibs -mcpu=cypress -DBSP_leon3 \
-g -Wall -D_DEBUG \
-I/home/user/development/build/rtems-impr/testsuites/support/include \
-I src -msoft-float -o objs.debug/FPU_task1.o src/task1.c
sparc-rtems4.8-gcc -g -o bin.debug/fputest objs.debug/NONFPU_init.o \
objs.debug/NONFPU_printk.o objs.debug/NONFPU_leon3.o \
objs.debug/FPU_task1.o -msoft-float \
-B/home/user/development/rtems/sparc-rtems4.8/leon3/lib \
-specs bsp_specs -qrtems -nodefaultlibs -mcpu=cypress -DBSP_leon3 \
-nodefaultlibs -Wl,--wrap,_IO_Initialize_all_drivers \
/home/user/development/rtems/sparc-rtems4.8/leon3/lib/libno_event.a \
/home/user/development/rtems/sparc-rtems4.8/leon3/lib/libno_msg.a \
/home/user/development/rtems/sparc-rtems4.8/leon3/lib/libno_sem.a \
/home/user/development/rtems/sparc-rtems4.8/leon3/lib/libno_timer.a \
/home/user/development/rtems/sparc-rtems4.8/leon3/lib/libno_rtmon.a \
/home/user/development/rtems/sparc-rtems4.8/leon3/lib/libno_ext.a \
-Wl,--start-group \
-lrtemscpu -lio -lno_event -lno_msg -lno_sem \
-lno_timer -lno_rtmon -lno_ext -lrtemsbsp -llibc -lrtemscpu \
-Wl,--end-group \
-Wl,--script=linkcmds -B/tmp/edilibtmp/edilib/library -lgcc
/opt/rtems-4.11-2016.04.01.NONFPU/bin/sparc-rtems4.11-gcc -c \
-B/opt/rtems-4.11-2016.04.01.NONFPU/sparc-rtems4.11/leon3/lib \
-specs bsp_specs -qrtems -mcpu=cypress -DBSP_leon3 -ffunction-sections \
-fdata-sections -Wall -Wmissing-prototypes \
-Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs \
-g -Wall -D_DEBUG -I src -msoft-float \
-o objs.debug.NONFPU.leon3/task1.o src/task1.c
/opt/rtems-4.11-2016.04.01.NONFPU/bin/sparc-rtems4.11-gcc -g \
-o bin.debug.NONFPU.leon3/fputest objs.debug.NONFPU.leon3/init.o \
objs.debug.NONFPU.leon3/task1.o objs.debug.NONFPU.leon3/task2.o \
objs.debug.NONFPU.leon3/common.o -msoft-float \
-B/opt/rtems-4.11-2016.04.01.NONFPU/sparc-rtems4.11/leon3/lib \
-specs bsp_specs -qrtems -mcpu=cypress -DBSP_leon3 \
-ffunction-sections -fdata-sections -Wall -Wmissing-prototypes \
-Wimplicit-function-declaration -Wstrict-prototypes \
-Wnested-externs -Wl,--gc-sections
Built with RTEMS at /opt/rtems-4.11-2016.04.01.NONFPU/sparc-rtems4.11/leon3/lib for leon3.
# Support
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment