Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RTEMS-build-workflows
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thanassis Tsiodras
RTEMS-build-workflows
Commits
5be03dca
Commit
5be03dca
authored
Apr 07, 2016
by
Thanassis Tsiodras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update the docs with all new options
parent
9c949c57
Pipeline
#74
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
21 deletions
+23
-21
README.md
README.md
+23
-21
No files found.
README.md
View file @
5be03dca
...
...
@@ -10,27 +10,19 @@ how to use the EDISOFT and OAR platforms, to:
Application sources
-------------------
The sources of your project must be set inside the Makefile, in the
FPU_SRC and
NONFPU_SRC variables
. The VPATH can be used to automatically locate them in
The sources of your project must be set inside the Makefile, in the
SRC
variable
. The VPATH can be used to automatically locate them in
your source tree:
VPATH=src:Library/foo:Library/bar:...
NONFPU_SRC=
\
SRC=
\
init.c \
tasking.c \
...
FPU_SRC= \
gnc.c \
compute_pi.c
As their names suggest, you add a file in the FPU_SRC list
if you want it to be compiled for native FPU use (i.e. without
`-msoft-float`
).
Whether native or emulated FPU compilation is performed on it, is selected
during build time ; by the FPU=1 Makefile parameter (see below)
There are in fact, 3 orthogonal compilation options that you can control:
There are 3 orthogonal compilation options that you can control:
## Debug/Release mode
...
...
@@ -39,25 +31,28 @@ compilation:
$ make CFG=debug
...
$ ls -l bin.debug/
$ ls -l bin.debug
.NONFPU.leon3
/
-rwxr-xr-x 1 user user 645273 Mar 16 17:43 fputest
$ make CFG=release
...
$ ls -l bin.release/
$ ls -l bin.release
.NONFPU.leon3
/
-rwxr-xr-x 1 root root 47860 Mar 16 17:48 fputest
-rwxr-xr-x 1 root root 585178 Mar 16 17:48 fputest.debug
(
* If no `CFG` option is provided, the default is `debug` compilation. *
)
(
*If no `CFG` option is provided, the default is `debug` compilation.*
)
Notice that in release compilation, the process creates a small binary
(containing only the executable code) and separately, the debug information -
for loading from inside GDB via the
`file`
command.
-
In release compilation, the process creates a small binary
(containing only the executable code) and separately, the debug information -
for loading from inside GDB via the
`file`
command.
-
Notice also that the output folder tells you this build did not use
native FPU, and targeted Leon3 (the defaults). To compile for
native FPU or a different Leon target, use the next two options.
## Native or emulated FPU compilation for the
FPU_SRC
source files
## Native or emulated FPU compilation for the source files
To use native FPU compilation for the
FPU_SRC list of source files, use the
`FPU`
Makefile parameter:
To use native FPU compilation for the
source files, use the
`FPU`
Makefile parameter:
$ make CFG=debug FPU=1
...
...
@@ -73,6 +68,13 @@ 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.
## Select Leon target
Use the
`LEON`
Makefile parameter to decide which target to build for
(currently, only
`leon2`
and
`leon3`
are supported):
$ make CFG=debug FPU=1 LEON=leon3
## Verbosity
Messages shown during compilation follow the semantics of the Linux kernel
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment