Commit Graph

427 Commits

Author SHA1 Message Date
Lorenz Meier 1c74887a68 Makefile: Fix CLANG-tidy calls
The calls have not been updated as the CI target has been.
2018-01-14 13:28:12 +01:00
Daniel Agar 82f661b37f Makefile distclean deinit all submodules 2018-01-09 13:05:08 -05:00
Lorenz Meier 1739deb517 Makefile: Fix missing params by searching one level deeper
This is required for generating documentation
2018-01-08 09:27:22 +01:00
Daniel Agar b8e6fc2730 Makefile tests_coverage run ROS tests 2018-01-02 01:35:57 +01:00
Daniel Agar 63deb40a76 ROS tests move to test/ and new Jenkins 2018-01-02 01:35:57 +01:00
Beat Küng ec50193d6c Makefile: add uorb_graphs target 2017-12-18 10:19:15 +01:00
Daniel Agar 4beeb7f560 delete obsolete s3 upload helpers 2017-12-15 14:31:25 -05:00
Daniel Agar baff0832bc Jenkins clang scan-build output publisher 2017-12-15 14:31:25 -05:00
Daniel Agar fc80846825 simplify param scoping and centralize dependencies 2017-11-22 10:36:51 +01:00
Daniel Agar e5cc1237e3 travis-ci fix coverity build 2017-11-22 02:23:07 -05:00
Daniel Agar 136d259876 travis-ci fix coverity scan and px4_metadata (#8156) 2017-10-20 09:20:30 -04:00
Daniel Agar d83073f016 move RTPS to dedicated px4fmu-v{3,4,4pro,5}, posix, sdflight builds (#8113) 2017-10-17 16:29:55 -04:00
Daniel Agar 979d092628 travis-ci enable tests under address sanitizier (#8095) 2017-10-17 16:26:17 -04:00
Daniel Agar 6f52d8a4e3 Makefile fix scan-build path (#8091) 2017-10-09 02:38:57 -04:00
Daniel Agar 6f3fe3f3ec travis-ci enable codecov (#8090) 2017-10-09 02:13:43 -04:00
Daniel Agar 8d07c647f7 NuttX improve apps builtins dependencies 2017-10-05 11:28:10 -10:00
Julien Lecoeur 5d01eac5de Fix check_stack target (#8050) 2017-10-04 10:02:23 -04:00
Lucas De Marchi fa458cdf0e build: get rid of annoying CMake warning (#8033)
Depending on the CMake version when we are configuring it emits a
warning about deprecation of CMAKE_FORCE_CXX_COMPILER. However we
rely on this macro and don't want to do what CMAKE_CXX_COMPILER
is doing. Here is what I get with CMake 3.9.1:

	CMake Deprecation Warning at /usr/share/cmake/Modules/CMakeForceCompiler.cmake:83 (message):
	  The CMAKE_FORCE_CXX_COMPILER macro is deprecated.  Instead just set
	  CMAKE_CXX_COMPILER and allow CMake to identify the compiler.
	Call Stack (most recent call first):
	  cmake/toolchains/Toolchain-arm-none-eabi.cmake:37 (cmake_force_cxx_compiler)
	  /usr/share/cmake/Modules/CMakeDetermineSystem.cmake:94 (include)
	  CMakeLists.txt:263 (project)

Avoid the warning by passing -Wno-deprecated to cmake.
2017-09-29 20:24:14 -04:00
Daniel Agar 3ac6d1aa27 px4fmu-v2 and px4fmu-v3 boards cleanup 2017-09-29 10:13:51 -04:00
Daniel Agar 474f216a0a UAVCAN bootloaders split into separate repository (#7878) 2017-09-29 10:13:51 -04:00
Daniel Agar 01b3e6fd25 NuttX upgrade cmake wrapper (#7873)
* NuttX cmake

* px4_macros:Pass the stringified predicate as second arg to static assert

   CC_ASSERT mapes to the c++ static_assert or provides the same
   funtionality for c via the other macros. The c++ static assert
   takes 2 argumants the prdicate and a message. This fixes the
   lacking second argument.

* Updated nuttx and apps submodule to upstream nuttx 7.21+==master

   This is the latest uptake of upstream nuttx and apps.

* ROMFS generate with xxd instead of objcopy

* delete nuttx-patches

* NuttX update submodules to latest px4_nuttx-master

* fix nuttx apps and board dependency

* docker_run update to latest container 2017-08-29

* cmake ROMFS portable sed usage

* NuttX update submodules to latest px4_nuttx-master
2017-09-29 10:13:51 -04:00
David Sidrane f04ddf4368 Inital Commit of px4-same70xplained-v1 2017-09-29 10:13:51 -04:00
David Sidrane 7a0d6174e2 nxphlite-v1:Removed from PX4
Superceeded by nxphlite-v3 before released
2017-09-29 10:13:51 -04:00
David Sidrane 160f5cc67d Removed px4cannode from build as it does not fit in flash. 2017-09-29 10:13:51 -04:00
David Sidrane d409ca3e46 Inital commit of nxphlite-v3 2017-09-29 10:13:51 -04:00
David Sidrane 0c576426b2 Add nxphlite-v1_default to alt builds for CI 2017-09-29 10:13:51 -04:00
Daniel Agar af9690cf08 add simple posix tests to SITL 2017-09-28 16:50:47 +01:00
Daniel Agar a87b6befbb ignore .vscode IDE directory 2017-09-16 21:29:52 +01:00
David Sidrane b4eb6e4492 Makefile:distclean should not delete an local eclipse .settings 2017-09-14 09:52:27 +02:00
David Sidrane a7ba7af89a FMUv1:Removed FMUv1 board from PX4 2017-09-10 13:37:23 -04:00
Julien Lecoeur ceeae7587e worst case analysis of stack usage (#7883)
* Makefile target "check_stack"
2017-09-10 13:34:34 -04:00
Daniel Agar 9f15c572a3 astyle scripting move to Tools/astyle 2017-08-23 08:07:36 +02:00
Daniel Agar 30f8e5751d Makefile simplify colorecho for CI 2017-08-01 22:32:43 +02:00
Beat Küng 7d50f3df0a Makefile: add module_documentation target 2017-07-14 11:57:11 +02:00
Daniel Agar 4937449890 move parameter unittest into systemcmds 2017-06-12 12:18:53 -04:00
Daniel Agar f26cd01d16 param gen reorganize and fix DISABLE_PARAMS_MODULE_SCOPING 2017-06-12 12:18:53 -04:00
Daniel Agar 24b26e53b9 cmake organize code coverage handling and base 2017-06-02 19:35:18 -04:00
Daniel Agar 17a3b195fa cppcheck start with errors only 2017-06-02 19:35:18 -04:00
Daniel Agar de9c39447c cppcheck ignore examples 2017-06-02 19:35:18 -04:00
Daniel Agar e4f55e4526 travis-ci upload cppcheck, scan-build, and coverage to s3 2017-06-02 19:35:18 -04:00
Daniel Agar 2e0ed3b47b travis-ci add cppcheck 2017-06-02 19:35:18 -04:00
Daniel Agar d731558286 Makefile prepare to split qgc_firmware 2017-06-02 19:35:18 -04:00
Daniel Agar ac4a706da0 build system fixes and improvements
- deploy px4 metadata using target
 - clang scan-build upload output to s3
 - clang-tidy properly check headers
 - add cppcheck helper
 - force gcc color
2017-06-02 19:35:18 -04:00
Lorenz Meier 0dac78b48f FMUv4PRO and FMUv5: Enable auto-build 2017-05-05 18:11:44 +02:00
Daniel Agar 293eca7d16 Makefile add px4_metadata for airframes and parameters 2017-04-22 21:31:05 -04:00
Andrew C. Smith d21b6655d2 Add the Gumstix AeroCore2 to the build system. 2017-04-20 12:24:27 -10:00
Daniel Agar 3721fb9d52 cmake cleanup nuttx dependency handling (#7007)
- closes #6501
 - closes #6820
 - closes #6881
2017-04-17 20:57:35 -04:00
Daniel Agar 8c9affddc8 travis-ci generate and upload parameters.md 2017-04-07 22:06:23 +02:00
Lorenz Meier 306d4b8817 Makefile: Add Gazebo clean step 2017-04-02 21:52:18 +02:00
David Sidrane 2d92ad2538 stm32 Updated flash patch to upstream revised (#6893)
* stm32 Updated flash patch to upstream (fixes missing commit)

* Removed zubaxgnss-v1_bootloader check build will not fit

Removing zubaxgnss-v1_bootloader from the check build. It is overflowing flash by 6 Bytes.
2017-03-25 00:06:00 -04:00
David Sidrane 9527dd7714 Add auav-x21_default to the qgc firmware for distribution 2017-02-02 14:39:43 +01:00
Daniel Agar 4e3b4091e8 run-clang-tidy only display output on error 2017-02-01 22:15:50 -05:00
Daniel Agar 73da6d30d9 clang-tidy errors cause target failure 2017-02-01 22:15:50 -05:00
Daniel Agar cdd472f722 Makefile update Firmware.zip px4 naming 2017-01-26 19:41:48 -05:00
wangxdflight b693e29d64 enable px4 flight for excelsior(legacy) 2017-01-16 08:25:58 -08:00
Daniel Agar 6961a513c7 clang-tidy readability-braces-around-statements 2017-01-14 18:31:09 -05:00
Daniel Agar 8caf6c54fa Makefile cleanup and travis-ci s3 deploy (#6329)
- pulls more of the travis-ci s3 deploy into the repo so we can potentially migrate to another CI system
 - fixed the sizes output and added verbose compiler version to cmake (#6322)
 - fixed filenames for firmware uploaded to s3 (was broken by the changes yesterday)
 - fixed some broken git version display in cmake
 - Makefile organization
 - simplified .travis.yml
 - added a print to know which config the nuttx patch was being applied to
 - docker_run.sh now respects PX4_DOCKER_REPO for setting the docker image, but defaults to the good production nuttx image
2017-01-14 09:38:28 -05:00
James Goppert a0fff97fd2 Moved deployment logic to python scripts. 2017-01-13 01:11:14 -08:00
James Goppert 50159cabbe Automatically set cmake version. 2017-01-13 01:11:14 -08:00
James Goppert 434dddedea Changes to add px4fmu-v2_lpe config. 2017-01-13 01:11:14 -08:00
BharathR 8c7f810cc2 Fixed build error in eagle_legacy_default mode (px4muorb.h generation issue) 2017-01-11 17:12:27 -08:00
bharathr ee0b0f2a3e Fixed build error in Snapdragon Flight legacy driver mode (partially) 2017-01-11 17:12:27 -08:00
Daniel Agar dc787830b5 circleci run tests under code coverage (#6273)
* use regular optimization levels for the code coverage build.
 * the mixer test fails intermittently when built without optimization
2017-01-09 16:08:40 -05:00
Daniel Agar defaf7f5e5 docker run helper script (#6270) 2017-01-08 13:45:28 -05:00
Daniel Agar a7e38e1119 Makefile rename checks_alt to alt_firmware 2017-01-04 11:16:28 -05:00
Beat Küng f0c905ae43 Makefile: remove executable bit 2017-01-03 10:39:55 +01:00
Daniel Agar 9689163125 tests skip junit output and cmake exclude from all 2017-01-03 04:16:11 -05:00
Daniel Agar 573aed0ee8 tests coverage reorder to avoid lcov issues 2017-01-03 04:00:41 -05:00
Daniel Agar b4da337cd4 test coverage cleanup
- dataman clean exit code
 - unit test proper cleanup
 - add some level of simulated sensors for tests
 - delete unused test/standard_vtol
2017-01-03 04:00:41 -05:00
Daniel Agar 34b2fb55e6 Makefile add clang-check and clang-tidy helpers 2017-01-02 10:14:41 +01:00
Daniel Agar 28971caaf3 partially restore mavlink_tests 2017-01-02 10:14:41 +01:00
Daniel Agar 5ec546f735 Makefile add scan-build target 2017-01-02 10:14:41 +01:00
Daniel Agar dc9a71b674 WIP startup_shutdown test with ASAN on 2017-01-02 10:14:41 +01:00
Daniel Agar f8d7c53537 lcov exclude gtest and mavlink 2017-01-02 10:14:41 +01:00
Daniel Agar 9fad6f9dd2 travis-ci use PX4_DOCKER for builds and specify tag 2017-01-02 10:14:41 +01:00
Daniel Agar d6fd633500 sitl tests manually list all 2017-01-02 10:14:41 +01:00
Daniel Agar 9ae5e55f43 Makefile escape cmake generator string 2017-01-02 10:14:41 +01:00
Daniel Agar 351b3d20cb sitl testing exclude tests 2017-01-02 10:14:41 +01:00
Daniel Agar 97bc0f4486 gather test results 2017-01-02 10:14:41 +01:00
Daniel Agar cddef87998 Makefile split large target list for semaphore 2017-01-02 10:14:41 +01:00
Daniel Agar 74231e6656 split tests for SITL ctest 2017-01-02 10:14:41 +01:00
Daniel Agar ac7c309925 move cmake version check into cmake 2017-01-02 10:14:41 +01:00
Daniel Agar 9ea80e9ff0 Makefile add PX4_RUN docker wrapper 2017-01-02 10:14:41 +01:00
Lucas De Marchi fd91f998c4 build: sort targets for GCS download
While at it, fix the trailing continuation line in the last item.
2016-12-29 08:54:02 -05:00
Lucas De Marchi e3f7bbfd8c build: add aerofc firmware for GCS download 2016-12-29 08:54:02 -05:00
Daniel Agar b1496f72cd Makefile cleanup target lists 2016-12-26 23:50:51 -05:00
Lucas De Marchi 03c3ea0040 build: also look for ninja-build in addition to ninja
The ninja binary may have other names on Linux distributions. On Fedora
it's ninja-build.
2016-12-22 08:33:33 +01:00
David Sidrane 116704ef50 Makefile add all Targets 2016-12-21 08:34:22 +01:00
Daniel Agar c98927121d crazyflie_default upload for QGC (#6030) 2016-12-11 13:59:35 -05:00
Daniel Agar 1941dfca87 add tests code coverage
-closes #5862
2016-12-07 20:17:00 +01:00
Daniel Agar 9d494e625f travis-ci upload px4fmu-v3 for qgc 2016-12-05 15:27:11 +01:00
Lucas De Marchi 0cd7984b7f Rename asc board to aerofc 2016-11-28 09:21:12 +01:00
Anton Matosov 3414fc1c7c Setup default CLion ignores 2016-11-15 11:10:22 +01:00
Carlo Wood e29b9b5d39 Remove fake config targets.
The "targets" posix_rpi_common, qurt_sdflight_default and
posix_sdflight_default are not real targets; they are
just files in cmake/configs that are included by other
targets.
2016-10-28 08:40:23 +02:00
Daniel Agar e9e15ba3d1 Makefile error preventing px4fmu-v4_default build
-fixes #5625
2016-10-10 22:47:28 -04:00
Beat Küng 670c93e726 cmake: add support for out-of-tree modules via EXTERNAL_MODULES_LOCATION variable 2016-09-27 15:10:23 +02:00
Lorenz Meier 2b9596cac0 Run clean beffore distclean so that a partial build is wiped as well. 2016-09-27 11:56:49 +02:00
David Sidrane f750140b6f Make line 280 check happy (#5550) 2016-09-27 08:34:48 +02:00
David Sidrane 0eca86443d Master additional targets (#5548)
* Allow Niga to be disabled from command line

* Add a build all nuttx targets
2016-09-26 22:48:37 +02:00
Daniel Agar 9fb167b642 add crazyflie to builds (#5516)
* Makefile simplify check and quick_check

* make check add crazyflie_default
2016-09-20 21:05:44 +02:00