Commit Graph

502 Commits

Author SHA1 Message Date
Andrew Tridgell 4571b5e3ad mk: always define MAVLINK_PROTOCOL_VERSION
for -Wundef
2016-05-21 15:25:14 +10:00
Andrew Tridgell b0be3e7423 mk: fixed building with mavlink2 headers 2016-05-21 15:25:12 +10:00
Andrew Tridgell f6511e8337 build: added mavlink2 build option 2016-05-21 15:25:11 +10:00
Gustavo Jose de Sousa 89ebe34992 mk: board_native: link with librt
This fix compilation errors on some systems that require linking with that
library in order to use some functions.
2016-05-19 18:15:06 -03:00
Andrew Tridgell 8ec0e687db mk: don't make mavlink generation depend on CHECK_MODULES
this was causing a full rebuild every time, which is very annoying
when developing
2016-05-16 17:22:11 +10:00
Ricardo de Almeida Gonzaga e006754cda mk: Fix typos 2016-05-13 19:20:07 -03:00
Lucas De Marchi 3343391409 mk: deprecate build system for linux boards
All the linux boards that have their counterpart in waf are being
deprecated here. The only exception for now is sitl.
2016-05-10 10:57:49 -03:00
Lucas De Marchi a38d350502 mk: fix mavgen dependency
The rule to generate mavgen headers need to depend on the rule to check
the submodules, otherwise they can execute in parallel and the
(mavlink) submodule be updated while the headers are generated.
2016-05-10 10:57:49 -03:00
Luis Vale Gonçalves 16c9e8c105 Revising ardupilot.com to .org
Revising ardupilot.com to .org
2016-04-23 22:49:47 -07:00
Luis Vale Gonçalves ae90945836 Revising ardupilot.com to .org
Revising ardupilot.com to .org
2016-04-23 22:49:44 -07:00
Luis Vale Gonçalves 90942f019d Revising ardupilot.com to .org
Revising ardupilot.com to .org
2016-04-23 22:49:43 -07:00
Luis Vale Gonçalves 40b58606d5 Correcting ardupilot.com to newer .org
Correcting ardupilot.com to newer .org
2016-04-23 21:37:27 +01:00
Jonathan Challinger 19f80dbcb4 PX4: add startup tone file 2016-04-21 10:05:36 +10:00
Jonathan Challinger 246cf113df PX4: clean up whitespace in startup scripts 2016-04-21 10:05:35 +10:00
Francisco Ferreira c2391797d6 mk: allow git versions to be defined externally 2016-04-17 14:47:55 -03:00
Andrew Tridgell 3c5287e8db mk: create bootloaded directory for FMUv4 2016-04-16 20:51:59 +10:00
Andrew Tridgell a658a78364 mk: cope with recursive submodules in all modules 2016-04-14 08:05:05 +10:00
Andrew Tridgell 61050e55d0 mk: disable pager in git during submodule check 2016-04-14 08:05:05 +10:00
Andrew Tridgell 3de9426088 mk: update modules list to include all submodules 2016-04-14 08:05:05 +10:00
Andrew Tridgell d8f08591d5 PX4: fixed build with uavcan dependence on mavlink 2016-04-14 08:05:04 +10:00
Andrew Tridgell d1e1941a46 PX4: pass -a 16 to lsm303d start
16G range
2016-04-14 08:05:04 +10:00
Andrew Tridgell 4ef27ce446 mk: fixed px4io build 2016-04-14 08:05:04 +10:00
Ricardo de Almeida Gonzaga a0ca38a03f make: hardcode missing/cmath defines
In order to retain the current behavior
2016-04-05 21:06:25 -07:00
Ricardo de Almeida Gonzaga 730dc87b56 make: start using 'AP_Common/missing' to all boards 2016-04-05 21:06:25 -07:00
Francisco Ferreira d1910a9e5e mk: don't error on unknown pragmas 2016-03-30 01:32:45 -03:00
Lucas De Marchi 5411057ec6 build: allow qurt to use sparse-endian.h
Add an include directory so we find endian.h and allow it to work
without byteswap.h
2016-03-23 17:50:38 -03:00
Will Sackfield 1d46ca048a Silence unknown warning options
* Clang doesn't implement all the warnings of GCC
so this ends up spamming the console and not being
helpful
2016-03-17 10:59:47 +11:00
Andrew Tridgell 155043ac08 mk: give recursive submodule status 2016-03-09 17:27:00 +11:00
Andrew Tridgell 7c7e8b21e8 mk: don't ask for a build restart on module init
this makes it more travis friendly
2016-03-04 15:27:19 +11:00
Andrew Tridgell dbefd87dd0 mk: support uavcan submodules
first recursive git submodules. yuck.
2016-03-04 14:57:16 +11:00
Staroselskii Georgii f5df5e61bb build: add navio2 target 2016-02-27 03:06:50 -03:00
Andrew Tridgell c288c7d761 PX4: re-order startup to start mtd before ms5611
this avoids a bus locking issue on Pixracer
2016-02-23 16:34:06 +11:00
Peter Barker 4ba769d4a3 mk: native boards get -Wundef 2016-02-19 12:34:24 -02:00
Lucas De Marchi 1b55f5f994 mk: fixup qurt and qflight boards with -DHAVE_STD_REMOVE_REFERENCE=0 2016-02-16 19:49:09 -02:00
Lucas De Marchi 75d58bcfb6 Global: rename HAVE_NULLPTR_T with HAVE_STD_NULLPTR_T
This makes for a more standard name for these overrides.
2016-02-16 19:49:09 -02:00
Andrew Tridgell 815d653283 mk: fixup qurt and qflight builds with HAVE_STD_MOVE=0 2016-02-16 19:49:09 -02:00
Lucas De Marchi ae5da864e7 mk: make PX4, QURT and QFLIGHT use wrapper cstddef 2016-02-16 19:49:08 -02:00
Tom Pittenger 7fda3ba178 mk: fix SITL windows build
fixes https://github.com/diydrones/ardupilot/issues/3586
2016-02-15 16:42:06 -08:00
Lucas De Marchi f4bc5c60ba mk: px4: replace cp -f with cp
-f is only needed for rm because it fails when the file being removed
doesn't exist. cp doesn't need it.
2016-02-15 13:36:28 -02:00
Peter Barker 529a0166d5 mk: px4: correct manipulation of files
- remove useless file copy
 - replace rm/cp idiom with cp -f
2016-02-15 13:35:43 -02:00
Lucas De Marchi 517a7f0f35 mk: add missing warnings from AP_Common.h
Copy the missing warnings from AP_Common.h and reorder the warnings to
be more clear on intent. This will later let us remove the warnings from
the header.
2016-02-12 20:41:29 +11:00
Andrew Tridgell 358dcd56e8 mk: put FMUv4 bootloader in ROMFS for Pixracer 2016-02-12 20:36:18 +11:00
Andrew Tridgell a0af5515b8 mk: show submodule status on failure 2016-01-25 19:43:55 +11:00
Julien BERAUD f449107563 AP_HAL_Linux: Add Perf Lttng
Support for perf api using lttng.
Some additional build tricks needed for bebop because lttng uses dl_open
which is not compatible with a static link on a different libc as used
on the bebop
2016-01-14 19:13:35 -02:00
Lucas De Marchi 3a24531ade mk: fix dynamic linking option for board native
-pthread is the one supposed to be used because it defines pre-defined
macros as -lpthread doesn't
2016-01-14 18:59:04 -02:00
Julien BERAUD f5f2e6dcd9 mk: fix dynamic linking option for board linux
-pthread is the one supposed to be used because it defines pre-defined
macros as -lpthread doesn't
2016-01-14 18:59:04 -02:00
Andrew Tridgell f6c2b55c3f mk: fixed dependency on mavlink header generation 2016-01-15 07:44:15 +11:00
Siddharth Bharat Purohit dd65495668 mk: generate mavlink headers using mavlink module files 2016-01-15 07:28:47 +11:00
Víctor Mayoral Vilches 41da1a4fc5 mk: add pxfmini target 2016-01-05 15:35:56 -02:00
Andrew Tridgell a509daff54 build: added qurt build target 2015-12-27 16:21:25 +11:00
Andrew Tridgell 2fc60de500 build: added qflight build target 2015-12-27 16:12:27 +11:00
Aaron Wang Shi 736e3e6f46 build: support BH HAT build 2015-12-21 15:54:30 +11:00
squilter 65e2fb5367 Makefiles: add px4-v2-upload-solo
The IP of the Solo on its network is static, and will always be 10.1.1.10
2015-12-21 11:13:40 +09:00
Andrew Tridgell af82ca3c43 PX4: removed old Images in clean 2015-11-27 18:54:31 +11:00
Andrew Tridgell 412bba0192 PX4: use Makefile.make
preparing for cmake build
2015-11-27 18:54:31 +11:00
Andrew Tridgell 1aa43b23f4 PX4: clean generated uORB topic headers in px4-clean 2015-11-27 18:54:31 +11:00
Andrew Tridgell 5105650304 PX4: added FMUv4 support in startup nsh script 2015-11-27 18:54:30 +11:00
Andrew Tridgell 015c110114 PX4: disable px4flow and oreoled on FMUv4
flow is dying on startup (needs fixing)

oreoled is PH2 specific
2015-11-27 18:54:30 +11:00
Andrew Tridgell 09276ce068 build: added px4fmu-v4 support (for XRacer) 2015-11-27 18:54:30 +11:00
Julien BERAUD d7ff90326b mk: Fix build with removed header files
-MP "instructs CPP to add a phony target for each dependency other than the
main file, causing each to depend on nothing. These dummy rules work around
errors make gives if you remove header files without updating the Makefile to
match."
2015-11-27 16:25:08 +09:00
Julien BERAUD bf5ac43142 mk: build the bebop statically
The toolchains aren't compatible and the size of the binary doesn't get too
big with the static flag so it avoids creating a chroot.
2015-11-13 12:15:36 +11:00
Caio Marcelo de Oliveira Filho 8630df00b3 build: disable warnings for unused params for FLYMAPLE
Other boards disable it, so the common code contains a lot of unused
parameters already. Use -Wno-unused-parameter to reduce the "noise".
2015-11-12 21:22:32 +11:00
Andrew Tridgell 3d8993ff33 build: added sitl-asan build target
this enables the address sanitiser for array bounds error detection
2015-11-10 16:21:41 +11:00
Andrew Tridgell 3624162b18 PX4: added size of binaries to build
this will help us monitor the use of flash
2015-11-09 13:25:49 +11:00
Andrew Tridgell c823d64073 PX4: removed unused mixer files
reduce size of ROMFS
2015-11-07 16:37:51 +11:00
Andrew Tridgell 98ef21bc69 PX4: don't auto-start uavcan, use BRD_CAN_ENABLE instead 2015-11-06 10:23:54 +11:00
Víctor Mayoral Vilches 112df0a0a6 mk: Add Erle-Brain 2 support 2015-11-04 13:58:24 +11:00
Lucas De Marchi 5c29703732 build: remove tools to find arduino 2015-11-04 12:14:16 +11:00
Lucas De Marchi 633e9dc036 build: remove wrong comment about avr-gcc
Flymaple doesn't use avr-gcc.
2015-11-04 12:14:16 +11:00
Lucas De Marchi 0e6da397d1 build: remove AVR boards 2015-11-04 12:14:16 +11:00
Andrew Tridgell f1bcfa9d49 PX4: update to latest FMUv2 bootloader 2015-10-31 16:06:22 +11:00
Lucas De Marchi 29aa7001bf build: add minlure target 2015-10-22 12:04:53 +11:00
lanbo.gao 6b687ea7bc PX4: try to start both hmc5883 sensors for FMUv1
internal + external
2015-10-21 14:40:58 +11:00
Caio Marcelo de Oliveira Filho ec52df991c build: compile only the HAL files needed by the board
Instead of requiring every program to specify the HAL related modules,
let the build system do it (in practice everything we compiled depended
on HAL anyway). This allow including only the necessary files in the
compilation.
2015-10-21 09:16:07 +11:00
Andrew Tridgell a39b341308 PX4: clean out .d dependency files from uavcan on px4-cleandep 2015-10-20 15:09:28 +11:00
Andrew Tridgell 7ae5d3220a PX4: allow up to 1300 bytes frame size
needed for optimised EKF code
2015-10-20 14:36:58 +11:00
Andrew Tridgell 2ea23d66b0 PX4: use -fsingle-precision-constant for PX4 APM build
this will prevent us having to chase cases where developers forget to
add the f to a floating point constant in APM code
2015-10-19 12:12:20 +11:00
Andrew Tridgell 4e220284e0 PX4: allow I2C airspeed sensor on either bus 2015-10-16 18:38:40 +11:00
Caio Marcelo de Oliveira Filho 7c631d860f mk: fix list of warnings for board_native
When setting WARNFLAGCXX, the entry was missing a backslash character
and other entries were missing. It was also a duplicate, so removed it.
2015-10-10 14:34:52 +09:00
proficnc 18589f1ec7 Update README.txt
Added a link to show how to do get to the NSH shell
2015-10-06 14:54:51 +11:00
Víctor Mayoral Vilches fa5fb0a56a mk: ERLEBOARD add targets and help 2015-09-23 09:21:39 +10:00
Lucas De Marchi 64d1f378b5 build: speedup PX4 build
By serializing only the right part it's possible to speedup a clean
build of ardupilot + PX4Firmware. In my machine, doing a
"make -j6 px4-v2" without ccache now works, completing the job in
2min10s (previously it was breaking in the generation of the config.h
header inside PX4.

For comparison, a complete build with -j1 on the same machine (the only
possible option without this patch) takes around 4min40s.
2015-09-14 17:23:46 +10:00
raspilot 0134d105bf build: added support for raspilot 2015-09-14 14:22:15 +10:00
Angus Peart 5085fd025d mk: start oreoled driver before batt_smbus 2015-09-09 10:39:47 +09:00
Angus Peart cde4e582cd mk: only update oreoled firmware if required 2015-09-09 10:39:46 +09:00
Jonathan Challinger 93672add06 mk: always update oreoleds 2015-09-09 10:39:45 +09:00
Jonathan Challinger cdced64e27 mk: oreoled firmware v1.3 2015-09-09 10:39:44 +09:00
Víctor Mayoral Vilches 4431b33686 mk: ERLEBOARD legacy support
This config referred to the legacy Erle-Board
https://erlerobotics.com/blog/product/erle-board/
The configuration is preserved to support the
existing boards. "erle" renamed to "erleboard".
2015-09-09 10:31:55 +10:00
Eugene Agafonov dd22b19ddd mk: add 'upload' target to copy fresh ELF to Linux board using SCP
`make pxf upload` builds ELF and copy it to target
device using scp.

Target hostname should be specified in BOARD_LINUX_HOST variable
2015-09-09 10:05:45 +10:00
Brandon 8e6bb3164c Make: start irlock 2015-08-31 18:00:22 +09:00
Brandon 25c59f954a Make: add irlock to px4 build 2015-08-31 18:00:21 +09:00
Andrew Tridgell baeddfe4f3 PX4: enable probe of MPU9250 if available 2015-08-17 09:33:01 +10:00
Gustavo Jose de Sousa b5c5297d68 mk: remove include paths from make.inc
Now that the includes directives are stardardized, we don't need to add include
paths from make.inc anymore.
2015-08-11 16:38:25 +10:00
squilter 9cfc7a48da Board_AVR: locate recently-moved boards.txt file in arduino-core 2015-08-03 10:05:13 +10:00
squilter 506970fbd3 Tools: Add Bebop prereqs to Ubuntu script 2015-07-14 18:10:56 +09:00
Andrew Tridgell b33ed8ce39 build: added bebop build 2015-07-10 14:18:17 +10:00
Andrew Tridgell 698312a32c build: added more warnings and errors to SITL build
more closely match PX4 build
2015-07-06 09:21:39 +10:00
Andrew Tridgell 16ada34398 build: removed include of vehicle directory in build
this removes the temptation of including vehicle specific headers in
libraries
2015-06-29 15:34:43 +10:00
Andrew Tridgell 520d6cae6d build: fixed typo 2015-06-19 18:08:49 +10:00
Andrew Tridgell cfa63254b6 build: added support for developer.mk (at request of David) 2015-06-19 17:57:13 +10:00
Andrew Tridgell c4c97b14d3 build: only build required boards in NuttX archives
this speeds up the px4 build a lot
2015-06-19 17:44:18 +10:00
Andrew Tridgell c9e04cb98d PX4: fixed build with uavcan as submodule 2015-06-12 18:24:25 +10:00
Andrew Tridgell d45f6e8f1d PX4: fixed startup tone
'start' doesn't work any more
2015-06-12 17:55:29 +10:00
Andrew Tridgell bbdb4e41bb px4: added ARDUPILOT_BUILD=1 to PX4 build
this allows us to not include some source files in PX4Firmware modules
2015-06-11 13:27:43 +10:00
Andrew Tridgell a3334e0602 PX4: updates for upstream merge 2015-06-09 19:45:00 +10:00
Andrew Tridgell 9698cae971 PX4: fixed copy of template build for PX4 2015-06-09 15:36:55 +10:00
Andrew Tridgell 4036a2e19b px4: show warning if old PX4 subdirectories exist 2015-06-09 14:07:44 +10:00
Andrew Tridgell 3ec1a0ca84 modules: show wiki URL on all submodule errors 2015-06-09 13:51:15 +10:00
Andrew Tridgell 0e6f6c49c6 build: fixed subdirectory for NUTTX_SRC 2015-06-09 13:36:02 +10:00
Andrew Tridgell 3b886cd966 modules: show an error if config.mk specifies PX4 paths 2015-06-09 13:28:27 +10:00
Andrew Tridgell a6d34c208d modules: throw an error message on submodule init 2015-06-09 13:28:27 +10:00
Andrew Tridgell cf21cc8132 build: removed check for existance of PX4 subdirs
this prevents modules from initialising
2015-06-09 13:28:26 +10:00
Andrew Tridgell fc3b75710f modules: check also for modules/.git 2015-06-09 13:28:26 +10:00
Andrew Tridgell 5a6ac461d1 PX4: build using submodules 2015-06-09 13:28:26 +10:00
Andrew Tridgell a203dd2660 modules: added check_modules in PX4 build 2015-06-09 13:28:25 +10:00
Tim Ryan 5d749b7bb3 Typo "stil" => "sitl" in help.mk 2015-06-04 12:18:00 +09:00
Andrew Tridgell c5f680de44 build: removed support for .pde files in build 2015-06-01 18:19:48 +10:00
Andrew Tridgell 2d2cc6c574 build: fixed flymaple build 2015-06-01 13:02:18 +10:00
Andrew Tridgell d516dc7fde build: fixed dependency on frame type for px4 build 2015-06-01 10:19:31 +10:00
Andrew Tridgell 65d0ecdef7 build: fixed dependency on frame type and options
this ensures "make sitl-heli" rebuilds after a "make sitl"

Thanks to Michael Oborne for reporting this
2015-06-01 10:09:43 +10:00
Andrew Tridgell bcb6fe9ae7 build: make reading config.mk be info not warning 2015-05-30 21:00:50 +10:00
Andrew Tridgell 22ce36fc8b build: make px4-clean depend on px4-cleandep 2015-05-28 13:30:38 +10:00
Andrew Tridgell 544eb8ea3f build: fixed flymaple build with functors 2015-05-26 19:47:19 +10:00
Lucas De Marchi c423fb5f46 build: switch to c++11 2015-05-26 13:46:48 +10:00
Lucas De Marchi 58a3d70f8b build: avr: Fix build with gcc > 4.8
Pass -fno-use-cxa-atexit as option to compiler so it's possible to build
with gcc newer than 4.8.
2015-05-26 13:46:47 +10:00
Andrew Tridgell b40d8f94d6 build: removed .d dependency files in sketch directory on px4-cleandep 2015-05-26 13:46:02 +10:00
Andrew Tridgell b1f7b80f7e build: minimise the number of eval calls in build 2015-05-26 07:46:05 +10:00
Andrew Tridgell d48bd8708b build: allow ccache to be found on windows cygwin 2015-05-25 23:02:23 +10:00
Andrew Tridgell ef72d5bff2 build: don't expand all target unless a '-' is in main target 2015-05-25 22:41:13 +10:00
Andrew Tridgell 2b2259a6d7 SITL: use more granrular sleeps for windows 2015-05-25 17:05:44 +10:00
Andrew Tridgell 23617b442e build: use a config.mk if it exists, but don't require it 2015-05-25 14:51:12 +10:00
Andrew Tridgell 3fbd0a1db0 build: removed the need for 'make configure'
and make default build display help
2015-05-21 10:54:19 +10:00
Andrew Tridgell d6bf851783 build: allow for slightly larger stack size on PX4
this allows building with gcc 4.9
2015-05-21 09:36:58 +10:00
Andrew Tridgell d8ba16f9cf build: support non-pde projects for PX4 build 2015-05-21 07:48:49 +10:00
Andrew Tridgell 793ec76259 build: support building pure cpp projects 2015-05-21 07:48:49 +10:00
Andrew Tridgell 5f963cbf82 build: added XXX-debug option to builds for debug build 2015-05-18 07:13:07 +10:00
Andrew Tridgell 5241c66b57 build: added SKETCHBOOK to defines for native build
used by SITL to find JSBSim aircraft
2015-05-10 21:01:30 +10:00
Andrew Tridgell 4ad3075754 build: fix for HAL_SITL rename 2015-05-05 09:45:57 +10:00
Andrew Tridgell 2559964f04 build: added sitl-arm target 2015-05-05 09:45:54 +10:00
Andrew Tridgell 0eaf70cd85 build: added optimisation in native build 2015-05-05 09:45:54 +10:00
Andrew Tridgell eb284b4fca build: run Linux build with optimisation
this is starting to be worthwhile on some boards
2015-05-05 09:45:52 +10:00
Andrew Tridgell bd32774768 PX4: added ver command
this allows us to see what silicon revision the stm32 is
2015-04-25 07:34:56 +10:00
Tom Pittenger b263c32507 Make: px4 warnings become errors 2015-04-24 14:04:30 +09:00
Jonathan Challinger f93df8997b mk: add coax copter target 2015-04-16 20:59:28 +09:00
Andrew Tridgell 3659cd7359 PX4: update bootloader with battery power boot fix from David 2015-04-15 21:56:49 +10:00
Andrew Tridgell f4537f4dec PX4: updated bootloaders to current version 2015-04-15 15:54:32 +10:00
Andrew Tridgell 2aa73c427b PX4: enable temperature compensation in hmc5883 driver 2015-04-02 14:35:52 -07:00
Andrew Tridgell f05c4eb019 PX4: enabled SPI hmc5883 for FMUv3 2015-03-12 12:50:27 +11:00
Andrew Tridgell 644d0c223a PX4: update FMUv2 bootloader
this one adds the CHIP command so we can differentiate rev3 silicon
2015-03-05 22:12:08 +11:00
Randy Mackay ab96e98815 PX4: start oreoled driver 2015-03-02 16:57:54 +09:00