Commit Graph

502 Commits

Author SHA1 Message Date
Lucas De Marchi 81a9a70910 ROMFS: use different UART for errors in aerofc 2017-03-24 12:06:19 +11:00
Lucas De Marchi 7d8bed8a55 ROMFS: standardize board-override script
Standardize on the following sequence for allowing different startup
sequences:

    board-specific file
    etc/rc on microSD card
    etc/rc.txt on microSD card

Also remove comment about MODE variable that is not used by ArduPilot
2017-03-24 12:06:19 +11:00
Lucas De Marchi 2349909033 AP_BoardConfig: start mtd driver 2017-03-24 12:06:19 +11:00
Lucas De Marchi d2aef41b08 build: add aerofc-v1 bootloader 2017-03-24 12:06:19 +11:00
Randy Mackay a52b1dd18f Build: remove batt_smbus from build 2017-02-09 10:45:02 +09:00
Andrew Tridgell b5a04f1f43 mk: removed oreoled.bin
fw update of oreoled doesn't work anyway. When we re-enable we need to
find another way to get it there
2017-01-29 16:31:06 +11:00
Andrew Tridgell 3f38b8c945 mk: enable uavcan on FMUv2 2017-01-29 16:31:06 +11:00
Andrew Tridgell 92933f7f04 mk: removed remaining PX4 rangefinder drivers 2017-01-27 18:12:20 +11:00
Andrew Tridgell 99d5f538f5 mk: removed PX4 trone driver 2017-01-27 18:11:29 +11:00
Randy Mackay 99ba42c26d Build: do not build PX4Firmware rgbled driver 2017-01-27 15:24:09 +09:00
Randy Mackay 82b1b41a61 PX4: do not start px4 firmware rgbled driver 2017-01-27 15:24:09 +09:00
Andrew Tridgell 960da45275 mk: fixed px4-v3 build with make 2017-01-13 08:43:28 +11:00
Andrew Tridgell 7a3c4fd2ee mk: removed most frame build targets 2017-01-12 17:39:37 +11:00
Andrew Tridgell 4cb9f772f2 mk: link SRV_Channel library 2017-01-12 17:39:37 +11:00
Andrew Tridgell 979c3a6270 mk: support px4-v3 with make
I really wish we didn't still need this!
2016-12-19 08:07:13 +11:00
Andrew Tridgell cd506834b7 mk: added AP_FlashStorage to makefile build
still needed by travis :-(
2016-12-02 09:49:39 +11:00
Andrew Tridgell 4ef4016e5e mk: removed PX4 irlock driver 2016-11-28 08:39:07 +11:00
Andrew Tridgell ca75f1fc12 mk: remove px4flow from build 2016-11-28 08:26:57 +11:00
Peter Barker e94c23e0a1 mk: stop ignoring exit status of mavlink header generation
Accept a 0 exit status, or a status >127 (indicating a signal
caused the process to exit) as success.

The original intent of ignoring the exit status was that
the python executable was segfaulting after successfully
building headers.

Recently builds have been failing because people have not been
doing recursive submodule updates, and the mavlink header generation
has failed.  Since we are ignoring the error the build rumbles on
and fails later with a failed #include.

This patch tightens our ignoring of a bad exit status to just
signals.

Note that the waf build system does the same check.
2016-11-16 00:08:49 +00:00
Andrew Tridgell 95de899229 mk: removed more drivers from rc.APM 2016-11-09 17:07:59 +11:00
Andrew Tridgell af947dbd38 mk: removed PX4 airspeed drivers 2016-11-09 17:07:59 +11:00
Lucas De Marchi 57aec40acb build: disable O_CLOEXEC for PX4 and VRBRAIN 2016-11-07 12:37:30 -03:00
Lucas De Marchi ae53920e5b build: don't build examples with old build system
We currently check examples are buildable with waf which doesn't need
the libraries to be specified in a make.inc file.  Having the makefiles
there is misleading since people try to build and realize the build is
broken.
2016-10-11 13:03:08 +11:00
Andrew Tridgell a69c1a6f90 build: added pymavlink submodule auto update 2016-09-16 09:04:30 +10:00
Andrew Tridgell 670dd22ad9 mk: make px4-clean remove vehicle object files 2016-09-05 18:22:01 +10:00
Andrew Tridgell 4c22c59933 mk: fixed bad parameter bug on px4-v2
we have been getting builds with bad parameter values when built with
"make px4". It seems to be mixing object files from two px4 targets
2016-09-05 11:22:36 +10:00
LukeMike 451390ddec VRBRAIN: removed sensor driver startup now managed into AP_BoardConfig 2016-08-11 07:52:39 +10:00
LukeMike 9be5e37faa VRBRAIN: moved common modules into vrbrain_common.mk and disabled unnecessary modules 2016-08-11 07:52:39 +10:00
LukeMike 11fb43e0c9 mk/vrbrain_targets: removed vrubrain-v52 from vrbrain target for mass building - board configuration in progress 2016-08-11 07:52:39 +10:00
Andrew Tridgell 00f3113e83 PX4: removed driver startup from rc.APM
moved to AP_BoardConfig instead
2016-08-10 19:54:00 +10:00
LukeMike bda59b890d VRBRAIN / mk: updated all makefiles and ROMFS for all VirtualRobotix boards 2016-08-07 20:31:52 +10:00
LukeMike cab1acee46 VRBRAIN / vrbrain_targets: updated makefile for all VirtualRobotix boards 2016-08-07 20:31:52 +10:00
LukeMike f9e1235593 VRBRAIN / targets: defined all VirtualRobotix targets 2016-08-07 20:31:52 +10:00
LukeMike 810f4bd44c VRBRAIN / environ: added vrcore (VR Core 1.0) and removed vrhero (not used) 2016-08-07 20:31:51 +10:00
Andrew Tridgell db8bf48747 build: added AP_ICEngine to build 2016-07-25 10:06:03 +10:00
Gustavo Jose de Sousa 308ee5fe45 mk: px4: remove misleading warnings about "old trees"
The user might just happen to have trees at those paths with work possibly
unrelated to ArduPilot.
2016-07-22 17:07:28 +10:00
Andrew Tridgell 241b6edfcf Build: added AP_Button to build 2016-07-22 15:01:20 +10:00
Andrew Tridgell fd286498af PX4: added otp to the build 2016-07-21 18:05:00 +10:00
Andrew Tridgell fc41e0e44e PX4: updated elf of bootloaders to match
for factory load
2016-07-15 11:49:59 +10:00
Andrew Tridgell 2d3fef72cd PX4: updated bootloaders 2016-07-15 08:35:36 +10:00
Andrew Tridgell f579c3e6eb mk: added a global make.inc
saves added global libraries to every subdirectory
2016-07-14 13:39:48 +10:00
Lucas De Marchi bf8d36fbe0 mk: add STDC format macros 2016-07-13 14:18:28 +10:00
Lucas De Marchi a014d0c790 mk: define missing headers for px4/qurt/sitl 2016-07-08 19:49:32 -03:00
Lucas De Marchi 1923d9029e mk: use SYSTYPE for Darwin and append to LIBS 2016-07-07 11:35:17 -03:00
Siddharth Bharat Purohit 98c97a689f MK: remove unused and undefined librt as build flag for macosx 2016-07-07 11:35:17 -03:00
Andrew Tridgell dece35e465 mk: fixed px4-cleandep warning 2016-05-31 21:22:40 +10:00
Andrew Tridgell 9de8b63814 mk: removed the attempt at highlight in warning
it just showed up as noise on gnome-terminal and actually made things
less clear

the sleep is annoying when testing things like build_examples.sh
2016-05-31 08:26:08 +10:00
Lucas De Marchi 8bec17e05b mk: remove support for flymaple 2016-05-23 21:49:45 -03:00
Lucas De Marchi 3457dbcdf8 AP_HAL_Linux: rename lttng define
Like others, use HAVE_ prefix and name it HAVE_LTTNG_UST to be the same
name as exported by pkg-config While at it remove wrong comment with
_HELLO_TP_H.
2016-05-23 12:06:42 -03:00
Andrew Tridgell d477ecc24e mk: default to building with MAVLink2 support 2016-05-21 15:25:14 +10:00
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