Commit Graph

12 Commits

Author SHA1 Message Date
Felix Ruess 4e2122e5d4 [pprzlink] add read macros for all telemetry class
- support aligned or non aligned data depending of the arch
- Define PPRZLINK_UNALIGNED_ACCESS to TRUE if the target CPU/MMU allows unaligned access.
  This is true for x86/64 and most recent ARM platforms (ARMv7, Cortex-A, Cortex-M3/4).
  Examples for targets WITHOUT unaligned access support: LPC21xx, Cortex-M0
- will help air-to-air communications (#1509)
2016-02-04 18:36:58 +01:00
Felix Ruess 977b1c1b77 [nps] add pthread lib 2015-09-03 23:45:25 +02:00
Felix Ruess 0e44f01fa0 [build] use -ggdb3 DEBUG_FLAGS by default
-ggdb3 make slightly bigger .elf files, but allows gdb to understand
macros, which paparazzi uses somewhat extensively.
Make this the default, since it only impacts the size of the debug sections and
not the size of the flashed binary (in the lpc21/stm32 case).
On the linux system we really don't care about these few more bytes...
2015-04-30 18:39:13 +02:00
Felix Ruess 9189469316 [build system] also include deps for cpp files 2015-03-02 16:19:46 +01:00
Felix Ruess a4b0e34db7 [build system] use VPATH to specify search path for NPS files
add $(PAPARAZZI_SRC)/sw/simulator to VPATH, so that makes adds that to the search path.
This makes it possible to add NPS sources as nps/foo.c to $(TARGET).srcs,
and the object and dependency files will correctly be put into $(PAPARAZZI_HOME)/var/aircrafts/<ac>/nps/<src file>
So e.g. /home/<user>/paparazzi/var/aircrafts/Quad_LisaM_2/nps/nps/nps_main.o

While here, also generate the .d dependency files during the compilation run instead of a separate run.

fixes #798
2015-03-02 16:14:00 +01:00
Felix Ruess 8df5ffbadc [test] update compile_all_aircrafts test
Also replace LOCAL_CFLAGS (which wasn't used anymore) with USER_CFLAGS (and add where missing).
Now you can e.g. test compile all aircrafts/targets in your conf and add extra flags like treating warnings as errors:

$ J=AUTO USER_CFLAGS=-Werror prove conf/examples
2014-11-07 14:07:24 +01:00
Felix Ruess a740798858 [build] use pkg-config to get ivy include dirs for simulation targets 2014-10-22 19:33:10 +02:00
Felix Ruess 51a9f6a49f [NPS] Fixed NPS warnings on OS X
OS X uses clang to compile the code, thus we have a bit different
warning system. Now the C++ code is being compiled with the G++ clang
compiler instead of GCC.
Actually compile C++ files with CXX and C files with CC.

Also fixed some other warnings including UTF-16 character usage.
Converted config report warningt to PRINT_CONFIG_MSG.
We need to push the diagnostics first for clang.
Added GNU99 standard flag to the C targets.
2014-08-16 22:22:43 +02:00
Gautier Hattenberger 5135d9d10e [build] optimization flag can be set from airframe file 2014-02-07 22:47:54 +01:00
Felix Ruess 2010933572 [build system] removed some more old avr cruft in Makefiles 2013-01-24 23:35:28 +01:00
Felix Ruess 8bff1b46c9 [build system] clean up makefiles and fix dependencies, parallel build with make -j 8 seems to work now 2012-11-10 19:45:22 +01:00
Felix Ruess 612aab8dfe [nps] separate makefile for nps target 2012-06-30 14:19:14 +02:00