Mark Charlebois
838e9fc769
Refactoring for multiplatform support
...
Moved the NuttX specific board files to makefiles/nuttx and added
a makfiles/linux directory with sample config and board files.
Created a makefiles/toolchain_native.mk file for building for Linux
with the native system compiler. GCC or clang can be used by setting
a flag in the file.
The Linux build creates an archive file and will build the tasks as
threads. Other code changes are required to support both task based
and thread based builds.
The NuttX source should not be required for the Linux build. The
target OS (NuttX or Linux) is selected by commenting out the desired
line in setup.mk
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
10 years ago
Michal Ulianko
631e518c45
BIN_TO_OBJ: Change NM radix back to hex so multiple leading zeros in NM output won't generate octal constant in C.
10 years ago
Michal Ulianko
354809bff4
BIN_TO_OBJ: Switch egrep and cut to $(GREP). Use posix format and decimal radix with $(NM).
10 years ago
Michal Ulianko
c5ae02deda
Fix generating $3_len in BIN_TO_OBJ makefile function
10 years ago
Lorenz Meier
769df2ff47
Toolchain: Add more compiler options, add note about -Wfloat-conversion warning (available with GCC 4.9). Needs work.
10 years ago
Thomas Gubler
1ad6e00234
re-enable warnings/errors
10 years ago
Thomas Gubler
8c4fce3654
multiplatform: better publisher base class
10 years ago
Thomas Gubler
1628999361
Revert "Fixes to make GCC 4.9 link"
...
This reverts commit 85b6907e1d
.
10 years ago
David Sidrane
517e1e8d48
Fixed permissions
10 years ago
David Sidrane
4b8feb03cf
Match the OS build's CONFIG_ARMV7M_STACKCHECK setting by using actual setting in the exported nuttx config.h file to control each board build setting of ENABLE_STACK_CHECKS in toolchain_gnu-arm-eabi.mk
10 years ago
Pavel Kirienko
f6786d0be9
Removing -ffixed-r10 when stack checks aren't enabled
10 years ago
Pavel Kirienko
2ebd7099de
Globally configurable stack checks, R10 is always fixed
10 years ago
Pavel Kirienko
4b1782174c
INSTRUMENTATIONDEFINES assignment made non-optional
10 years ago
Pavel Kirienko
1d13edcf92
Stack checks made optional: ENABLE_STACK_CHECKS
10 years ago
Pavel Kirienko
c2bc298409
Disable instrumentation for the uavcan module
10 years ago
Pavel Kirienko
569c3b7d37
Using -g3 flag instead of -g
10 years ago
Pavel Kirienko
d87bb4dfcb
Revert "Intrusive changes made for UAVCAN profiling. Will be reverted in the next commit (this one is needed to keep the changes in history)"
...
This reverts commit 4c301d9dcf180e39186fa6753c7a3d3215b3cfa7.
10 years ago
Pavel Kirienko
6bbacc4271
Intrusive changes made for UAVCAN profiling. Will be reverted in the next commit (this one is needed to keep the changes in history)
10 years ago
Lorenz Meier
85b6907e1d
Fixes to make GCC 4.9 link
10 years ago
Lorenz Meier
f176147d2a
Allow GCC 4.9.3
10 years ago
Lorenz Meier
e8e4a3b5da
Allow GCC 4.9.3
10 years ago
Thomas Gubler
87650e49e1
Revert "turn off werror for now"
...
This reverts commit 1fe70a845d
.
10 years ago
Thomas Gubler
1fe70a845d
turn off werror for now
10 years ago
Andrew Tridgell
c9e795156f
makefiles: make it easier to use ccache for build on windows
10 years ago
Andrew Tridgell
6bc6739676
makefiles: removed stray spaces
10 years ago
Daniel Agar
d511e39ea7
turn on -Werror and fix resulting errors
10 years ago
Thomas Gubler
52c35a8e20
solve conflict for definiton of FILE
10 years ago
Lorenz Meier
97a1410ec9
Toolchain: Allow GCC 4.7 and 4.8 variants
10 years ago
Don Gagne
680ebf29c3
Fix compiler warnings
11 years ago
Lorenz Meier
e710e2a2d1
Allow any GCC 4.7 subversion
11 years ago
Julian Oes
04a25fcf14
makefiles: check for correct arm-none-eabi-gcc version
11 years ago
Pavel Kirienko
7813566e66
Initial UAVCAN integration. The library compiles successfully, CAN driver appears to be working properly. There is one hardcoded path in the module makefile that needs to be fixed; plus the compilation will likely fail unless arch/math.h contains log2l()
11 years ago
Julian Oes
dcf1dbb7f4
warnings: don't spam with warning for missing field initializer
11 years ago
Lorenz Meier
27755806d5
More pedantic warnings
11 years ago
Lorenz Meier
ba4f881f80
Do not require suffixed constants
11 years ago
Lorenz Meier
366af8da80
Do not require suffixed constants
11 years ago
Lorenz Meier
26d26a9b37
Removed fp suffix warning
11 years ago
px4dev
56d355414c
Fix handling of board config files. Treat CONFIG_BOARD like CONFIG_ARCH in the toolchain configuration.
12 years ago
Lorenz Meier
66879e6ff6
Hotfix: Make maxoptimization configurable from the shell via MAXOPTIMIZATION=-O0 V=1 make archives
12 years ago
Lorenz Meier
2aa16dc447
Hotfix: Disable instrumentation on IO
12 years ago
px4dev
eab01a2efd
Hotfix: Generate map files for modules as well for more in-depth memory-use debugging.
12 years ago
px4dev
f30695e1df
Hotfix: fix section attribute for the ROMFS, moving it back into .rodata where it belongs.
12 years ago
px4dev
318d2baba0
Reinstate mapfile generation.
12 years ago
px4dev
edb0e01dfd
HOTFIX: simplify symbol names going into the ROMFS object, hopefully this avoids inconsistent symbol naming on Windows.
12 years ago
px4dev
3b65281f00
Remove EXTRAFLAGS compatibility hack.
12 years ago
px4dev
3bf26ac51f
Obsolete bogus EXTRAFLAGS, add language-specific flags overrides.
12 years ago
Andrew Tridgell
aa9275c29c
build: allow additional flags to be passed via EXTRAFLAGS
...
this allows for flags needed for the APM build
12 years ago
px4dev
01e427b17c
Merge working changes into export-build branch.
12 years ago
px4dev
c1f6f81e9d
wchar_t is indeed a builtin type that should not be overridden.
12 years ago
px4dev
b6218794c6
Stick copyrights on the major moving parts of the build system
12 years ago