Commit cdc52d0d authored by Thanassis Tsiodras's avatar Thanassis Tsiodras

Updated instructions

parent b32b484a
Pipeline #113 skipped
...@@ -90,7 +90,10 @@ To use emulation (default, if `FPU` option is not provided), pass `FPU=0`: ...@@ -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. 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 compile a debug version that uses native FPU, and a release one that uses
emulation. emulation. Just keep in mind that currently, 4.11
[does not allow you to use the same BSP](https://lists.rtems.org/pipermail/users/2016-February/029782.html),
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 ## Select Leon target
...@@ -103,40 +106,35 @@ Use the `LEON` Makefile parameter to decide which target to build for ...@@ -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 Messages shown during compilation follow the semantics of the Linux kernel
compilation process, emitting short messages by default (CC for compilation, 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 $ touch src/task1.c
$ make $ make
[CC] objs.debug/FPU_task1.o [CC] objs.debug.NONFPU.leon3/task1.o
[LD] bin.debug/fputest [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 $ touch src/task1.c
$ make CFG=debug FPU=0 V=1 $ make CFG=debug FPU=0 V=1
sparc-rtems4.8-gcc -c \ /opt/rtems-4.11-2016.04.01.NONFPU/bin/sparc-rtems4.11-gcc -c \
-B/home/user/development/rtems/sparc-rtems4.8/leon3/lib \ -B/opt/rtems-4.11-2016.04.01.NONFPU/sparc-rtems4.11/leon3/lib \
-specs bsp_specs -qrtems -nodefaultlibs -mcpu=cypress -DBSP_leon3 \ -specs bsp_specs -qrtems -mcpu=cypress -DBSP_leon3 -ffunction-sections \
-g -Wall -D_DEBUG \ -fdata-sections -Wall -Wmissing-prototypes \
-I/home/user/development/build/rtems-impr/testsuites/support/include \ -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs \
-I src -msoft-float -o objs.debug/FPU_task1.o src/task1.c -g -Wall -D_DEBUG -I src -msoft-float \
sparc-rtems4.8-gcc -g -o bin.debug/fputest objs.debug/NONFPU_init.o \ -o objs.debug.NONFPU.leon3/task1.o src/task1.c
objs.debug/NONFPU_printk.o objs.debug/NONFPU_leon3.o \ /opt/rtems-4.11-2016.04.01.NONFPU/bin/sparc-rtems4.11-gcc -g \
objs.debug/FPU_task1.o -msoft-float \ -o bin.debug.NONFPU.leon3/fputest objs.debug.NONFPU.leon3/init.o \
-B/home/user/development/rtems/sparc-rtems4.8/leon3/lib \ objs.debug.NONFPU.leon3/task1.o objs.debug.NONFPU.leon3/task2.o \
-specs bsp_specs -qrtems -nodefaultlibs -mcpu=cypress -DBSP_leon3 \ objs.debug.NONFPU.leon3/common.o -msoft-float \
-nodefaultlibs -Wl,--wrap,_IO_Initialize_all_drivers \ -B/opt/rtems-4.11-2016.04.01.NONFPU/sparc-rtems4.11/leon3/lib \
/home/user/development/rtems/sparc-rtems4.8/leon3/lib/libno_event.a \ -specs bsp_specs -qrtems -mcpu=cypress -DBSP_leon3 \
/home/user/development/rtems/sparc-rtems4.8/leon3/lib/libno_msg.a \ -ffunction-sections -fdata-sections -Wall -Wmissing-prototypes \
/home/user/development/rtems/sparc-rtems4.8/leon3/lib/libno_sem.a \ -Wimplicit-function-declaration -Wstrict-prototypes \
/home/user/development/rtems/sparc-rtems4.8/leon3/lib/libno_timer.a \ -Wnested-externs -Wl,--gc-sections
/home/user/development/rtems/sparc-rtems4.8/leon3/lib/libno_rtmon.a \ Built with RTEMS at /opt/rtems-4.11-2016.04.01.NONFPU/sparc-rtems4.11/leon3/lib for leon3.
/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
# Support # 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