Commit Graph

429 Commits

Author SHA1 Message Date
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
Randy Mackay 43f3827fd5 Make: add oreoled module to Pixhawk build 2015-03-02 16:57:52 +09:00
Andrew Tridgell bdd265a985 PX4: use mode_pwm4 on startup
this prevents any pin activity on startup
2015-02-23 14:15:14 +11:00
Andrew Tridgell 9efc0acf19 PX4: start the pwm_input driver 2015-02-23 14:15:14 +11:00
Andrew Tridgell a6454c9918 PX4: build the pwm_input driver 2015-02-23 14:15:14 +11:00
Andrew Tridgell 648c398ccd PX4: added README for new tools 2015-02-14 12:25:44 +11:00
Andrew Tridgell 5d6bed2814 PX4: added genmsg and gencpp tools
these are needed for the latest PX4Firmware build
2015-02-14 12:25:44 +11:00
Andrew Tridgell 96d290a283 PX4: add PYTHONPATH for genmsg and gencpp tools 2015-02-14 12:25:44 +11:00
Jonathan Challinger 604742ac0e rc.APM: disarm px4io before trying to update 2015-02-11 21:05:42 +11:00
Jonathan Challinger 5059fc620c Build: add git hashes to .px4 files 2015-02-11 20:22:08 +11:00
Luis Rodrigues 6557432c0d PX4: Added support for TeraRanger One sensor 2015-02-11 18:41:42 +11:00
Randy Mackay a8c176f104 PX4: smart battery on second I2C bus 2015-02-10 21:44:12 +09:00
Andrew Tridgell c0e212916b PX4: auto-format microSD if corrupt
and allow boot with no microSD if USB is not connected. If USB is
connected give a nsh shell on USB
2015-02-06 19:05:02 +11:00
Andrew Tridgell 8bd7c171e4 PX4: added usb_connected command 2015-02-06 19:05:02 +11:00
Emile Castelnuovo b62ad2db71 build: added missing VR boards. 2015-02-02 08:44:01 +11:00
LukeMike b278e058fa ROMFS: added new ROMFS for VR Brain 5.2 and VR Micro Brain 5.2 2015-02-02 08:44:00 +11:00
LukeMike 35c7a74256 VRBRAIN_TARGETS: changed makefile for VR boards 2015-02-02 08:44:00 +11:00
Emile Castelnuovo cd9537e1f8 build: added and modified scripts to build for all VR boards 2015-02-02 08:43:58 +11:00
LukeMike af309a26d9 mk: added new VRBrain 5 PRO board 2015-02-02 08:43:57 +11:00
LukeMike b14ca1b977 build: Added flag to build VRBRAIN versions with different kind of RC Inputs
Conflicts:
	mk/vrbrain_targets.mk
2015-02-02 08:43:57 +11:00
Andrew Tridgell 3918413b36 PX4: simplify ms5611 startup 2015-02-01 14:13:59 +11:00
Andrew Tridgell b0b57cccce build: add -nologging build modifier
useful for testing
2015-01-17 10:45:02 +13:00
Grant Morphett 8b08402c60 mk: Added a "help" target to the make system.
Now if developers type "make help" they get a useful message.
2015-01-17 10:29:14 +13:00
mirkix 001758071f mk: add support for BBBMINI, simple ArduPilot DIY Cape for the BeagleBone Black 2015-01-12 21:36:40 +13:00
Andrew Tridgell 5133799e23 PX4: start two barometers if possible 2015-01-09 11:50:57 +11:00
Andrew Tridgell 15c5e153c8 PX4: re-enable some warnings as errors 2015-01-09 11:38:28 +11:00
Andrew Tridgell 5b46dec9a0 PX4: avoid build errors from new upstream -Werror directives 2015-01-09 11:37:57 +11:00
Randy Mackay b4b062e9ef PX4: start batt_smbus 2014-12-31 15:22:52 +09:00
Randy Mackay 70dcc724ac PX4: add batt_smbus module to build 2014-12-31 15:22:52 +09:00
Randy Mackay 9d5c27ca83 PX4: start px4flow driver 2014-12-06 18:16:43 +11:00
Andrew Tridgell 722ce0628a PX4: enable ccache on windows build 2014-12-04 08:12:47 +11:00
Andrew Tridgell 9b75237a38 PX4: don't build lsm303d and l3gd20 on PX4v1 2014-11-28 09:16:56 +11:00
Andrew Tridgell bbb47ece9c PX4: use a common makefile for most of v1 and v2 2014-11-28 08:06:32 +11:00
Andrew Tridgell 4edd943166 PX4: disable auth on px4v1 too 2014-11-26 19:19:05 +11:00
Andrew Tridgell 5a78c584d2 PX4: disable auth command to keep us below 1MByte 2014-11-26 10:38:31 +11:00
Andrew Tridgell 420889d061 build: added motor_test, and fixed build checks for PX4 2014-11-26 10:24:14 +11:00
Andrew Tridgell 4f44a63bef build: fixed build with PX4/Firmware master
the reflect command has not been merged upstream yet
2014-11-20 08:59:04 +11:00
Andrew Tridgell 6d10797c59 build: enable uavcan if ../uavcan directory is present 2014-11-18 21:42:36 +11:00
Andrew Tridgell a9ee2ae253 PX4: change IMU order so vib isolated IMUs are 1 and 2
also try to start external ms5611
2014-11-18 15:39:37 +11:00
Andrew Tridgell 26d3ad18b8 Revert "PX4: enabled support for UAVCAN"
This reverts commit 71b2306aa9.

This broke the build due to git submodules. We need to work out how
ArduPilot is going to handle the external uavcan module dependency
before we enable this again
2014-11-14 16:08:52 +11:00
Holger Steinhaus 71b2306aa9 PX4: enabled support for UAVCAN 2014-11-14 14:32:42 +11:00
John Williams b1c6931ade Build: added zynq make target 2014-11-14 10:21:05 +11:00
Andrew Tridgell 75a517824b build: put elf file in current directory
makes it more obvious where the build ends up
2014-11-13 17:27:53 +11:00
Andrew Tridgell b5f1ab496b build: be less strict on compiler version for PXF 2014-11-07 22:15:28 +11:00
Andrew Tridgell 3f60cddb87 PX4: build reflect command for USB stress testing 2014-11-07 22:15:28 +11:00
Andrew Tridgell 1adacf42b9 PX4: fixed startup log msg location 2014-10-30 08:30:38 +11:00
Andrew Tridgell 6bf76acf96 PX4: add TESTS_MATHLIB_DISABLE define
this helps building with upstream master
2014-10-30 08:09:39 +11:00
Andrew Tridgell 500ecebf57 PX4: conditionally build auth command and libraries
this makes it possible to build with upstream master
2014-10-30 08:09:38 +11:00
Andrew Tridgell 834c91b192 PX4: try starting the ll40ls on either I2C bus 2014-10-20 07:07:14 +11:00
Randy Mackay 4bdd814dcc Build: enable px4flow driver on Pixhawk 2014-10-15 16:35:26 +09:00
Emile Castelnuovo 958e5e31fc Build: VRBRAIN corrected order of MAG startup for 4.5 board 2014-08-31 10:57:05 +09:00
Emile Castelnuovo 0e118eb3d0 Build: VRBRAIN corrected order of MAG startup 2014-08-31 10:57:01 +09:00
LukeMike 44f1ef207d VRBRAIN: added startup of internal mag's driver for VR Brain Standard 5 2014-08-31 10:56:54 +09:00
LukeMike bebfbd3fbb VRBRAIN: modified target clean 2014-08-16 20:28:42 +10:00
Andrew Tridgell 148dfbd180 build: fixed flymaple build 2014-08-13 18:46:44 +10:00
Andrew Tridgell 1a007dfcc0 build: added subtypes for all boards 2014-08-13 18:46:43 +10:00
Mikhail Avkhimenia 2899e44c0c build: add navio build target 2014-08-12 22:08:13 +10:00
Mikhail Avkhimenia e5c8a0af77 build: add Raspberry Pi toolchain 2014-08-12 22:07:22 +10:00
Andrew Tridgell 4dfafcf7ba build: removed hil from frames list
it breaks "apm1-hil" target for copter
2014-08-07 12:34:30 +10:00
Andrew Tridgell 8ac9c11055 build: allow "make px4-v2-hil-upload" 2014-08-07 09:51:32 +10:00
Andrew Tridgell 24b481ac0d build: fixed dependency on frame type in make target 2014-08-01 06:54:03 +10:00
LukeMike b6d361a3f7 build: VRBRAIN changed start of new drivers of sensors 2014-07-15 20:42:50 +10:00
LukeMike f1b99036e2 build: VRBRAIN added new module for rotation of sensors 2014-07-15 20:42:33 +10:00
Andrew Tridgell fdeac40135 build: added board subtypes to build 2014-07-14 09:44:35 +10:00
Andrew Tridgell e2a3a4e45c build: allow native build to use distcc 2014-07-14 09:44:34 +10:00
Andrew Tridgell 3475f39daf build: enable ccache if installed for all builds 2014-07-14 09:44:34 +10:00
Andrew Tridgell 09e9074cb2 build: added bbone as build target 2014-07-14 09:44:34 +10:00
Andrew Tridgell a224d8c3f9 build: rename board_avr_sitl.mk to board_native.mk 2014-07-14 09:44:34 +10:00
Andrew Tridgell 0b6c810a6e build: added ERLE build type 2014-07-14 08:52:43 +10:00
Andrew Tridgell fc368202ad build: fixed build with latest upstream PX4 Firmware tree 2014-07-09 08:12:10 +10:00
Andrew Tridgell 5230684bad build: disable some compiler errors for now
this needs more work, but allows us to build with upstream PX4
Firmware now
2014-07-08 20:28:45 +10:00
akdslr 26a36eeca1 PX4 ROMFS INIT: Added starting the optional mb12xx sensor 2014-07-08 15:07:49 +10:00
akdslr 17eacf5bff mk PX4: Added the new ll40ls device to modules list and start commands 2014-07-08 15:07:49 +10:00
Andrew Tridgell 8710922a02 PX4: fixed orientation of internal hmc5883 on FMUv3 2014-07-04 13:58:38 +10:00