From f692ad04d0ea22b8874926e9dc0cac23263bbeae Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Fri, 16 Nov 2018 12:52:37 -0500 Subject: [PATCH] boards organization --- .ci/Jenkinsfile-SITL_tests | 26 +- .ci/Jenkinsfile-compile | 28 +- .ci/Jenkinsfile-hardware | 12 +- .gitmodules | 4 +- .travis.yml | 2 +- CMakeLists.txt | 188 +- Jenkinsfile | 34 +- Makefile | 61 +- ROMFS/CMakeLists.txt | 10 +- ROMFS/px4fmu_common/init.d/rcS | 4 +- Tools/astyle/files_to_check_code_style.sh | 1 - Tools/docker_run.sh | 4 +- Tools/sitl_multiple_run.sh | 4 +- .../aerotenna/ocpoc/src}/CMakeLists.txt | 6 +- .../aerotenna/ocpoc/src}/board_config.h | 2 +- boards/aerotenna/ocpoc/ubuntu.cmake | 86 + boards/airmind/mindpx-v2/default.cmake | 116 ++ .../airmind/mindpx-v2/firmware.prototype | 0 .../mindpx-v2/nuttx-config}/include/board.h | 0 .../mindpx-v2/nuttx-config}/nsh/defconfig | 2 +- .../mindpx-v2/nuttx-config/scripts/ld.script | 2 +- .../airmind/mindpx-v2/src}/CMakeLists.txt | 0 .../airmind/mindpx-v2/src}/board_config.h | 2 +- .../airmind/mindpx-v2/src}/can.c | 0 .../airmind/mindpx-v2/src}/init.c | 0 .../airmind/mindpx-v2/src}/led.c | 0 .../airmind/mindpx-v2/src}/spi.c | 0 .../airmind/mindpx-v2/src}/timer_config.c | 0 .../airmind/mindpx-v2/src}/usb.c | 0 {cmake => boards/atlflight}/cmake_hexagon | 0 boards/atlflight/eagle/default.cmake | 115 ++ boards/atlflight/eagle/qurt-default.cmake | 83 + .../atlflight/eagle/src}/CMakeLists.txt | 4 +- .../atlflight/eagle/src}/board_config.h | 2 +- .../atlflight/eagle/src}/sitl_led.c | 0 boards/atlflight/excelsior/default.cmake | 115 ++ boards/atlflight/excelsior/qurt-default.cmake | 82 + .../atlflight/excelsior/src}/board_config.h | 0 boards/atmel/same70xplained/default.cmake | 116 ++ .../atmel/same70xplained/firmware.prototype | 2 +- .../nuttx-config}/include/board.h | 0 .../nuttx-config}/nsh/defconfig | 4 +- .../nuttx-config}/scripts/ld.script | 0 .../atmel/same70xplained/src}/CMakeLists.txt | 0 .../atmel/same70xplained/src}/README.md | 4 +- .../atmel/same70xplained/src}/board_config.h | 2 +- .../atmel/same70xplained/src}/can.c | 0 .../atmel/same70xplained/src}/init.c | 0 .../atmel/same70xplained/src}/led.c | 0 .../atmel/same70xplained/src}/sdram.c | 0 .../atmel/same70xplained/src}/spi.c | 0 .../atmel/same70xplained/src}/timer_config.c | 0 .../atmel/same70xplained/src}/usb.c | 0 .../auav/esc35-v1/default.cmake | 60 +- .../auav/esc35-v1/firmware.prototype | 0 .../auav/esc35-v1/nuttx-config}/Kconfig | 0 .../esc35-v1/nuttx-config}/include/README.txt | 0 .../esc35-v1/nuttx-config}/include/board.h | 0 .../auav/esc35-v1/nuttx-config}/nsh/defconfig | 4 +- .../esc35-v1/nuttx-config}/scripts/ld.script | 0 .../auav/esc35-v1/src}/CMakeLists.txt | 0 .../auav/esc35-v1/src}/board_config.h | 2 +- .../auav/esc35-v1/src}/init.c | 0 .../auav/esc35-v1/src}/led.c | 0 .../auav/esc35-v1/src}/usb.c | 0 boards/auav/x21/default.cmake | 122 ++ .../auav/x21/firmware.prototype | 0 .../auav/x21/nuttx-config}/include/board.h | 0 .../auav/x21/nuttx-config}/nsh/defconfig | 2 +- .../auav/x21/nuttx-config}/scripts/ld.script | 16 +- .../auav/x21/src}/CMakeLists.txt | 0 .../auav/x21/src}/board_config.h | 2 +- .../auav-x21 => boards/auav/x21/src}/can.c | 0 .../auav-x21 => boards/auav/x21/src}/init.c | 0 .../auav-x21 => boards/auav/x21/src}/led.c | 0 .../auav-x21 => boards/auav/x21/src}/spi.c | 0 .../auav/x21/src}/timer_config.c | 2 +- .../auav-x21 => boards/auav/x21/src}/usb.c | 2 +- boards/av/x-v1/default.cmake | 121 ++ .../av/x-v1/firmware.prototype | 0 .../av/x-v1/nuttx-config}/include/board.h | 0 .../av/x-v1/nuttx-config}/nsh/defconfig | 4 +- .../av/x-v1/nuttx-config}/scripts/ld.script | 2 +- .../av/x-v1/src}/CMakeLists.txt | 0 .../av/x-v1/src}/board_config.h | 2 +- .../av-x-v1 => boards/av/x-v1/src}/init.c | 0 .../av-x-v1 => boards/av/x-v1/src}/manifest.c | 0 .../av-x-v1 => boards/av/x-v1/src}/sdio.c | 0 .../av-x-v1 => boards/av/x-v1/src}/spi.c | 0 .../av/x-v1/src}/timer_config.c | 0 boards/beaglebone/blue/cross.cmake | 84 + boards/beaglebone/blue/native.cmake | 83 + .../beaglebone/blue/src}/CMakeLists.txt | 2 +- .../beaglebone/blue/src}/board_config.h | 2 +- .../beaglebone/blue/src}/init.c | 0 boards/bitcraze/crazyflie/default.cmake | 73 + .../bitcraze/crazyflie/firmware.prototype | 0 .../crazyflie/nuttx-config}/include/board.h | 0 .../crazyflie/nuttx-config}/nsh/defconfig | 2 +- .../crazyflie/nuttx-config}/scripts/ld.script | 0 .../bitcraze/crazyflie/src}/CMakeLists.txt | 0 .../bitcraze/crazyflie/src}/board_config.h | 2 +- .../bitcraze/crazyflie/src}/init.c | 0 .../bitcraze/crazyflie/src}/led.c | 0 .../bitcraze/crazyflie/src}/spi.c | 0 .../bitcraze/crazyflie/src}/timer_config.c | 0 .../bitcraze/crazyflie/src}/usb.c | 0 boards/emlid/navio2/cross.cmake | 94 + boards/emlid/navio2/native.cmake | 93 + .../emlid/navio2/src}/CMakeLists.txt | 3 +- .../emlid/navio2/src}/board_config.h | 6 +- boards/gumstix/aerocore2/default.cmake | 119 ++ .../gumstix/aerocore2/firmware.prototype | 0 .../gumstix/aerocore2/nuttx-config}/Kconfig | 0 .../aerocore2/nuttx-config}/include/board.h | 0 .../aerocore2/nuttx-config}/nsh/defconfig | 2 +- .../aerocore2/nuttx-config}/scripts/ld.script | 0 .../gumstix/aerocore2/src}/CMakeLists.txt | 0 .../gumstix/aerocore2/src}/board_config.h | 2 +- .../gumstix/aerocore2/src}/can.c | 0 .../gumstix/aerocore2/src}/init.c | 0 .../gumstix/aerocore2/src}/led.c | 0 .../gumstix/aerocore2/src}/spi.c | 0 .../gumstix/aerocore2/src}/timer_config.c | 0 .../gumstix/aerocore2/src}/usb.c | 0 boards/intel/aerofc-v1/default.cmake | 101 + .../intel/aerofc-v1/firmware.prototype | 0 .../intel/aerofc-v1/nuttx-config}/Kconfig | 0 .../aerofc-v1/nuttx-config}/include/board.h | 0 .../aerofc-v1/nuttx-config}/nsh/defconfig | 2 +- .../aerofc-v1/nuttx-config}/scripts/ld.script | 0 boards/intel/aerofc-v1/rtps.cmake | 104 + .../intel/aerofc-v1/src}/CMakeLists.txt | 0 .../intel/aerofc-v1/src}/board_config.h | 2 +- .../intel/aerofc-v1/src}/init.c | 0 .../intel/aerofc-v1/src}/led.c | 0 .../intel/aerofc-v1/src}/spi.c | 0 .../intel/aerofc-v1/src}/timer_config.c | 0 boards/nxp/hlite-v3/default.cmake | 118 ++ .../nxp/hlite-v3/firmware.prototype | 0 .../nxp/hlite-v3/nuttx-config}/Kconfig | 0 .../hlite-v3/nuttx-config}/include/board.h | 0 .../nxp/hlite-v3/nuttx-config}/nsh/defconfig | 0 .../hlite-v3/nuttx-config}/scripts/ld.script | 0 .../nxp/hlite-v3/src}/CMakeLists.txt | 0 .../nxp/hlite-v3/src}/autoleds.c | 0 .../nxp/hlite-v3/src}/automount.c | 0 .../nxp/hlite-v3/src}/board_config.h | 2 +- .../nxp/hlite-v3/src}/can.c | 0 .../nxp/hlite-v3/src}/init.c | 0 .../nxp/hlite-v3/src}/led.c | 0 .../nxp/hlite-v3/src}/sdhc.c | 0 .../nxp/hlite-v3/src}/spi.c | 0 .../nxp/hlite-v3/src}/timer_config.c | 0 .../nxp/hlite-v3/src}/usb.c | 0 boards/omnibus/f4sd/default.cmake | 113 ++ .../omnibus/f4sd/firmware.prototype | 0 .../f4sd/nuttx-config}/include/board.h | 0 .../omnibus/f4sd/nuttx-config}/nsh/defconfig | 4 +- .../f4sd/nuttx-config}/scripts/ld.script | 0 .../omnibus/f4sd/src}/CMakeLists.txt | 0 .../omnibus/f4sd/src}/board_config.h | 2 +- .../omnibus/f4sd/src}/init.c | 0 .../omnibus/f4sd/src}/led.c | 0 .../omnibus/f4sd/src}/spi.c | 0 .../omnibus/f4sd/src}/timer_config.c | 0 .../omnibus/f4sd/src}/usb.c | 0 boards/parrot/bebop/default.cmake | 64 + .../parrot/bebop/src}/CMakeLists.txt | 3 +- .../parrot/bebop/src}/board_config.h | 2 +- .../px4/cannode-v1/default.cmake | 44 +- .../px4/cannode-v1/firmware.prototype | 0 .../px4/cannode-v1/nuttx-config}/Kconfig | 0 .../nuttx-config}/include/README.txt | 0 .../cannode-v1/nuttx-config}/include/board.h | 0 .../cannode-v1/nuttx-config}/nsh/defconfig | 0 .../nuttx-config}/nsh/defconfig.nonsh | 0 .../nuttx-config}/nsh/defconfig.nsh | 0 .../nuttx-config}/scripts/ld.script | 0 .../px4/cannode-v1/src}/CMakeLists.txt | 0 .../px4/cannode-v1/src}/board_config.h | 2 +- .../px4/cannode-v1/src}/buttons.c | 0 .../px4/cannode-v1/src}/can.c | 0 .../px4/cannode-v1/src}/init.c | 0 .../px4/cannode-v1/src}/led.c | 0 .../px4/cannode-v1/src}/spi.c | 0 .../px4/esc-v1/default.cmake | 58 +- .../px4/esc-v1/firmware.prototype | 0 .../px4/esc-v1/nuttx-config}/Kconfig | 0 .../esc-v1/nuttx-config}/include/README.txt | 0 .../px4/esc-v1/nuttx-config}/include/board.h | 0 .../px4/esc-v1/nuttx-config}/nsh/defconfig | 0 .../esc-v1/nuttx-config}/scripts/ld.script | 0 .../px4/esc-v1/src}/CMakeLists.txt | 0 .../px4/esc-v1/src}/board_config.h | 2 +- .../px4/esc-v1/src}/init.c | 0 .../px4esc-v1 => boards/px4/esc-v1/src}/led.c | 0 .../px4esc-v1 => boards/px4/esc-v1/src}/usb.c | 0 boards/px4/fmu-v2/default.cmake | 121 ++ .../px4/fmu-v2/firmware.prototype | 10 +- boards/px4/fmu-v2/lpe.cmake | 118 ++ .../px4/fmu-v2/nuttx-config}/Kconfig | 0 .../px4/fmu-v2/nuttx-config}/include/board.h | 0 .../px4/fmu-v2/nuttx-config}/nsh/defconfig | 0 .../fmu-v2/nuttx-config}/scripts/ld.script | 0 .../px4/fmu-v2/src}/CMakeLists.txt | 0 .../px4/fmu-v2/src}/board_config.h | 2 +- .../px4fmu-v2 => boards/px4/fmu-v2/src}/can.c | 0 .../px4fmu-v2 => boards/px4/fmu-v2/src}/i2c.c | 0 .../px4/fmu-v2/src}/init.c | 0 .../px4fmu-v2 => boards/px4/fmu-v2/src}/led.c | 0 .../px4/fmu-v2/src}/manifest.c | 0 .../px4fmu-v2 => boards/px4/fmu-v2/src}/spi.c | 0 .../px4/fmu-v2/src}/timer_config.c | 0 .../px4fmu-v2 => boards/px4/fmu-v2/src}/usb.c | 0 boards/px4/fmu-v2/test.cmake | 119 ++ boards/px4/fmu-v3/default.cmake | 129 ++ .../px4/fmu-v3/firmware.prototype | 0 .../px4/fmu-v3/nuttx-config}/Kconfig | 2 +- .../px4/fmu-v3/nuttx-config}/include/board.h | 234 ++- boards/px4/fmu-v3/nuttx-config/nsh/defconfig | 1688 +++++++++++++++++ .../fmu-v3/nuttx-config}/scripts/ld.script | 18 +- .../fmu-v3/nuttx-config}/stackcheck/defconfig | 4 +- boards/px4/fmu-v3/rtps.cmake | 130 ++ .../px4/fmu-v3/src}/CMakeLists.txt | 17 +- boards/px4/fmu-v3/src/board_config.h | 569 ++++++ .../px4fmu-v4 => boards/px4/fmu-v3/src}/can.c | 0 .../px4/fmu-v3/src/i2c.c | 25 +- boards/px4/fmu-v3/src/init.c | 570 ++++++ boards/px4/fmu-v3/src/led.c | 96 + boards/px4/fmu-v3/src/manifest.c | 149 ++ boards/px4/fmu-v3/src/spi.c | 462 +++++ boards/px4/fmu-v3/src/timer_config.c | 126 ++ .../px4/fmu-v3/src}/usb.c | 0 boards/px4/fmu-v3/stackcheck.cmake | 129 ++ boards/px4/fmu-v4/default.cmake | 114 ++ .../px4/fmu-v4/firmware.prototype | 0 .../px4/fmu-v4/nuttx-config}/include/board.h | 0 .../px4/fmu-v4/nuttx-config}/nsh/defconfig | 0 .../fmu-v4/nuttx-config}/scripts/ld.script | 24 +- .../fmu-v4/nuttx-config}/stackcheck/defconfig | 0 boards/px4/fmu-v4/rtps.cmake | 116 ++ .../px4/fmu-v4/src}/CMakeLists.txt | 0 .../px4/fmu-v4/src}/board_config.h | 2 +- .../px4/fmu-v4/src}/can.c | 0 .../px4/fmu-v4/src}/init.c | 0 .../px4fmu-v4 => boards/px4/fmu-v4/src}/led.c | 0 .../px4fmu-v4 => boards/px4/fmu-v4/src}/spi.c | 0 .../px4/fmu-v4/src}/timer_config.c | 0 .../px4fmu-v4 => boards/px4/fmu-v4/src}/usb.c | 0 boards/px4/fmu-v4/stackcheck.cmake | 114 ++ boards/px4/fmu-v4pro/default.cmake | 128 ++ .../px4/fmu-v4pro/firmware.prototype | 0 .../px4/fmu-v4pro/nuttx-config}/Kconfig | 0 .../fmu-v4pro/nuttx-config}/include/board.h | 0 .../px4/fmu-v4pro/nuttx-config}/nsh/defconfig | 0 .../fmu-v4pro/nuttx-config}/scripts/ld.script | 16 +- boards/px4/fmu-v4pro/rtps.cmake | 129 ++ .../px4/fmu-v4pro/src}/CMakeLists.txt | 0 .../px4/fmu-v4pro/src}/board_config.h | 2 +- .../px4/fmu-v4pro/src}/can.c | 11 +- .../px4/fmu-v4pro/src}/init.c | 0 .../px4/fmu-v4pro/src}/led.c | 0 .../px4/fmu-v4pro/src}/spi.c | 0 .../px4/fmu-v4pro/src}/timer_config.c | 0 boards/px4/fmu-v4pro/src/usb.c | 107 ++ boards/px4/fmu-v5/default.cmake | 129 ++ .../px4/fmu-v5/firmware.prototype | 0 .../px4/fmu-v5/nuttx-config}/Kconfig | 0 .../px4/fmu-v5/nuttx-config}/include/board.h | 0 .../px4/fmu-v5/nuttx-config}/nsh/defconfig | 0 .../fmu-v5/nuttx-config}/scripts/ld.script | 2 +- .../fmu-v5/nuttx-config}/stackcheck/defconfig | 0 boards/px4/fmu-v5/rtps.cmake | 127 ++ .../px4/fmu-v5/src}/CMakeLists.txt | 0 .../px4/fmu-v5/src}/board_config.h | 2 +- .../px4fmu-v5 => boards/px4/fmu-v5/src}/can.c | 0 .../px4/fmu-v5/src}/init.c | 0 .../px4fmu-v5 => boards/px4/fmu-v5/src}/led.c | 0 .../px4/fmu-v5/src}/manifest.c | 0 .../px4/fmu-v5/src}/sdio.c | 0 .../px4fmu-v5 => boards/px4/fmu-v5/src}/spi.c | 0 .../px4/fmu-v5/src}/timer_config.c | 0 .../px4fmu-v5 => boards/px4/fmu-v5/src}/usb.c | 0 boards/px4/fmu-v5/stackcheck.cmake | 126 ++ boards/px4/io-v2/default.cmake | 11 + .../px4/io-v2/firmware.prototype | 0 .../px4/io-v2/nuttx-config}/include/board.h | 0 .../px4/io-v2/nuttx-config}/nsh/defconfig | 0 .../px4/io-v2/nuttx-config}/scripts/ld.script | 0 .../px4/io-v2/src}/CMakeLists.txt | 0 .../px4/io-v2/src}/board_config.h | 2 +- .../px4io-v2 => boards/px4/io-v2/src}/init.c | 0 .../px4/io-v2/src}/timer_config.c | 0 boards/px4/raspberrypi/cross.cmake | 81 + boards/px4/raspberrypi/native.cmake | 80 + .../px4/raspberrypi/src}/CMakeLists.txt | 3 +- boards/px4/raspberrypi/src/board_config.h | 57 + boards/px4/sitl/default.cmake | 96 + boards/px4/sitl/rtps.cmake | 98 + .../px4/sitl/src}/CMakeLists.txt | 4 +- .../px4/sitl/src}/board_config.h | 2 +- .../eagle => boards/px4/sitl/src}/sitl_led.c | 0 boards/px4/sitl/test.cmake | 96 + boards/stm/32f4discovery/default.cmake | 106 ++ .../stm/32f4discovery/firmware.prototype | 2 +- .../nuttx-config}/include/board.h | 0 .../32f4discovery/nuttx-config}/nsh/defconfig | 4 +- .../nuttx-config}/scripts/ld.script | 0 .../stm/32f4discovery/src}/CMakeLists.txt | 1 + .../stm/32f4discovery/src}/board_config.h | 2 +- .../stm/32f4discovery/src}/init.c | 0 .../stm/32f4discovery/src}/led.c | 0 boards/stm/32f4discovery/src/timer_config.c | 76 + .../stm/32f4discovery/src}/usb.c | 0 boards/stm/nucleo-F767ZI/default.cmake | 115 ++ .../stm/nucleo-F767ZI/firmware.prototype | 4 +- .../nuttx-config}/include/board.h | 2 +- .../nucleo-F767ZI/nuttx-config}/nsh/defconfig | 4 +- .../nuttx-config}/scripts/ld.script | 0 .../stm/nucleo-F767ZI/src}/CMakeLists.txt | 0 .../stm/nucleo-F767ZI/src}/board_config.h | 2 +- .../stm/nucleo-F767ZI/src}/can.c | 0 .../stm/nucleo-F767ZI/src}/init.c | 0 .../stm/nucleo-F767ZI/src}/led.c | 0 .../stm/nucleo-F767ZI/src}/sdio.c | 0 .../stm/nucleo-F767ZI/src}/spi.c | 0 .../stm/nucleo-F767ZI/src}/timer_config.c | 0 .../stm/nucleo-F767ZI/src}/usb.c | 0 .../thiemar/s2740vc-v1/default.cmake | 42 +- .../thiemar/s2740vc-v1/firmware.prototype | 0 .../thiemar/s2740vc-v1/nuttx-config}/Kconfig | 0 .../nuttx-config}/include/README.txt | 0 .../s2740vc-v1/nuttx-config}/include/board.h | 0 .../nuttx-config}/nsh/IMPORTANT_README.txt | 0 .../s2740vc-v1/nuttx-config}/nsh/defconfig | 2 +- .../nuttx-config}/scripts/ld.script | 0 .../thiemar/s2740vc-v1/src}/CMakeLists.txt | 0 .../thiemar/s2740vc-v1/src}/board_config.h | 2 +- .../thiemar/s2740vc-v1/src}/can.c | 0 .../thiemar/s2740vc-v1/src}/init.c | 0 cmake/configs/nuttx_aerocore2_default.cmake | 135 -- cmake/configs/nuttx_aerofc-v1_default.cmake | 75 - cmake/configs/nuttx_aerofc-v1_rtps.cmake | 7 - cmake/configs/nuttx_auav-x21_default.cmake | 158 -- cmake/configs/nuttx_av-x-v1_default.cmake | 154 -- cmake/configs/nuttx_crazyflie_default.cmake | 104 - cmake/configs/nuttx_mindpx-v2_default.cmake | 150 -- cmake/configs/nuttx_nxphlite-v3_default.cmake | 163 -- .../configs/nuttx_omnibus-f4sd_default.cmake | 143 -- .../nuttx_px4-same70xplained-v1_default.cmake | 122 -- .../nuttx_px4-stm32f4discovery_default.cmake | 41 - cmake/configs/nuttx_px4fmu-v2_default.cmake | 187 -- cmake/configs/nuttx_px4fmu-v2_lpe.cmake | 16 - cmake/configs/nuttx_px4fmu-v2_test.cmake | 163 -- cmake/configs/nuttx_px4fmu-v3_default.cmake | 170 -- cmake/configs/nuttx_px4fmu-v3_rtps.cmake | 7 - .../configs/nuttx_px4fmu-v3_stackcheck.cmake | 128 -- cmake/configs/nuttx_px4fmu-v4_default.cmake | 158 -- cmake/configs/nuttx_px4fmu-v4_rtps.cmake | 5 - .../configs/nuttx_px4fmu-v4_stackcheck.cmake | 116 -- .../configs/nuttx_px4fmu-v4pro_default.cmake | 162 -- cmake/configs/nuttx_px4fmu-v4pro_rtps.cmake | 5 - cmake/configs/nuttx_px4fmu-v5_default.cmake | 164 -- cmake/configs/nuttx_px4fmu-v5_rtps.cmake | 5 - .../configs/nuttx_px4fmu-v5_stackcheck.cmake | 121 -- cmake/configs/nuttx_px4io-v2_default.cmake | 7 - .../nuttx_px4nucleoF767ZI-v1_default.cmake | 128 -- cmake/configs/posix_bbblue_common.cmake | 104 - cmake/configs/posix_bbblue_cross.cmake | 3 - cmake/configs/posix_bbblue_native.cmake | 7 - cmake/configs/posix_bebop_default.cmake | 75 - cmake/configs/posix_eagle_default.cmake | 17 - cmake/configs/posix_eagle_hil.cmake | 38 - cmake/configs/posix_eagle_legacy.cmake | 15 - cmake/configs/posix_eagle_muorb.cmake | 19 - cmake/configs/posix_excelsior_default.cmake | 11 - cmake/configs/posix_excelsior_legacy.cmake | 14 - cmake/configs/posix_ocpoc_cross.cmake | 85 - cmake/configs/posix_ocpoc_ubuntu.cmake | 84 - cmake/configs/posix_rpi_common.cmake | 103 - cmake/configs/posix_rpi_cross.cmake | 3 - cmake/configs/posix_rpi_cross_no_shield.cmake | 19 - cmake/configs/posix_rpi_native.cmake | 7 - cmake/configs/posix_sdflight_default.cmake | 66 - cmake/configs/posix_sdflight_legacy.cmake | 56 - cmake/configs/posix_sdflight_rtps.cmake | 5 - cmake/configs/posix_sitl_broadcast.cmake | 3 - cmake/configs/posix_sitl_default.cmake | 164 -- cmake/configs/posix_sitl_rtps.cmake | 5 - cmake/configs/posix_sitl_test.cmake | 2 - cmake/configs/qurt_eagle_default.cmake | 12 - cmake/configs/qurt_eagle_hello.cmake | 33 - cmake/configs/qurt_eagle_hil.cmake | 59 - cmake/configs/qurt_eagle_legacy.cmake | 12 - cmake/configs/qurt_eagle_muorb.cmake | 38 - cmake/configs/qurt_eagle_test.cmake | 33 - cmake/configs/qurt_eagle_travis.cmake | 65 - cmake/configs/qurt_excelsior_default.cmake | 12 - cmake/configs/qurt_excelsior_legacy.cmake | 14 - cmake/configs/qurt_sdflight_default.cmake | 93 - cmake/configs/qurt_sdflight_legacy.cmake | 88 - cmake/{common => }/coverage.cmake | 0 cmake/px4_add_board.cmake | 200 ++ cmake/{common => }/px4_base.cmake | 95 +- cmake/{common => }/px4_git.cmake | 2 +- cmake/px4_make_uavcan_bootloader.cmake | 99 + cmake/{common => }/px4_metadata.cmake | 2 +- cmake/{common => }/sanitizers.cmake | 0 .../Toolchain-arm-linux-gnueabihf.cmake | 30 - .../toolchains/Toolchain-arm-none-eabi.cmake | 82 - .../Toolchain-arm-xilinx-linux-gnueabi.cmake | 88 - .../Toolchain-gcc-arm-linux-gnueabihf.cmake | 74 - eclipse.cproject | 16 +- eclipse.project | 4 +- platforms/nuttx/CMakeLists.txt | 30 +- platforms/nuttx/Debug/poor-mans-profiler.sh | 2 +- platforms/nuttx/Images/px4flow-v2.prototype | 13 - platforms/nuttx/Images/zubaxgnss-v1.prototype | 13 - platforms/nuttx/NuttX/CMakeLists.txt | 84 +- .../{nuttx-configs => NuttX}/Make.defs.in | 53 +- .../include => NuttX}/nsh_romfsimg.h | 0 .../nuttx/NuttX/tools/new_nuttx_px_config.sh | 173 -- .../Generic-arm-none-eabi-gcc-cortex-m3.cmake | 6 + .../Generic-arm-none-eabi-gcc-cortex-m4.cmake | 6 + .../Generic-arm-none-eabi-gcc-cortex-m7.cmake | 6 + .../nuttx/cmake/Toolchain-arm-none-eabi.cmake | 48 + platforms/nuttx/cmake/px4_add_board_os.cmake | 130 ++ platforms/nuttx/cmake/px4_impl_os.cmake | 160 +- .../auav-x21/include/nsh_romfsimg.h | 42 - .../av-x-v1/include/nsh_romfsimg.h | 42 - .../crazyflie/include/nsh_romfsimg.h | 42 - .../mindpx-v2/include/nsh_romfsimg.h | 42 - .../nxphlite-v3/include/nsh_romfsimg.h | 42 - .../omnibus-f4sd/include/nsh_romfsimg.h | 42 - .../px4-same70xplained-v1/Kconfig | 22 - .../include/nsh_romfsimg.h | 42 - .../px4-same70xplained-v1/nsh/setenv.sh | 80 - .../scripts/flash-dtcm.ld | 123 -- .../scripts/flash-sram.ld | 120 -- .../px4-same70xplained-v1/scripts/gnu-elf.ld | 129 -- .../scripts/kernel-space.ld | 111 -- .../px4-same70xplained-v1/scripts/memory.ld | 84 - .../scripts/user-space.ld | 126 -- .../include/nsh_romfsimg.h | 42 - .../nuttx/nuttx-configs/px4flow-v2/Kconfig | 22 - .../px4flow-v2/include/README.txt | 2 - .../nuttx-configs/px4flow-v2/nsh/defconfig | 1004 ---------- .../px4flow-v2/scripts/ld.script | 158 -- .../px4fmu-v2/include/nsh_romfsimg.h | 42 - .../px4fmu-v4/include/nsh_romfsimg.h | 42 - .../px4fmu-v4pro/include/nsh_romfsimg.h | 42 - .../px4fmu-v5/include/nsh_romfsimg.h | 42 - .../px4nucleoF767ZI-v1/include/nsh_romfsimg.h | 42 - .../nuttx/nuttx-configs/zubaxgnss-v1/Kconfig | 22 - .../zubaxgnss-v1/include/README.txt | 4 - .../zubaxgnss-v1/include/board.h | 251 --- .../nuttx-configs/zubaxgnss-v1/nsh/defconfig | 1070 ----------- .../zubaxgnss-v1/scripts/ld.script | 153 -- platforms/nuttx/src/px4_layer/CMakeLists.txt | 2 +- platforms/posix/CMakeLists.txt | 26 +- ...Linux-arm-linux-gnueabihf-cortex-a53.cmake | 6 + .../Linux-arm-linux-gnueabihf-cortex-a8.cmake | 6 + .../Linux-arm-linux-gnueabihf-cortex-a9.cmake | 6 + .../cmake/Toolchain-arm-linux-gnueabihf.cmake | 45 + .../posix/cmake}/Toolchain-native.cmake | 0 platforms/posix/cmake/px4_add_board_os.cmake | 106 ++ platforms/posix/cmake/px4_impl_os.cmake | 73 +- platforms/posix/src/px4_layer/CMakeLists.txt | 2 +- platforms/qurt/CMakeLists.txt | 3 +- platforms/qurt/cmake/px4_add_board_os.cmake | 101 + platforms/qurt/cmake/px4_impl_os.cmake | 15 +- platforms/qurt/include/board_config.h | 2 +- platforms/qurt/src/px4_layer/CMakeLists.txt | 2 +- src/drivers/bbblue_adc/CMakeLists.txt | 2 +- src/drivers/boards/CMakeLists.txt | 9 +- src/drivers/boards/common/CMakeLists.txt | 2 +- src/drivers/boards/common/board_common.h | 2 +- .../boards/common/stm32/CMakeLists.txt | 15 +- src/drivers/boards/px4flow-v2/board_config.h | 385 ---- src/drivers/boards/px4flow-v2/init.c | 190 -- src/drivers/boards/px4flow-v2/led.c | 192 -- .../boards/zubaxgnss-v1/board_config.h | 247 --- src/drivers/boards/zubaxgnss-v1/gnss_init.c | 186 -- src/drivers/boards/zubaxgnss-v1/gnss_led.c | 191 -- .../distance_sensor/sf0x/CMakeLists.txt | 5 +- src/drivers/px4io/CMakeLists.txt | 28 +- src/lib/cdev/CMakeLists.txt | 2 +- src/lib/controllib/CMakeLists.txt | 6 +- src/lib/drivers/device/CMakeLists.txt | 4 +- src/lib/parameters/CMakeLists.txt | 22 +- src/lib/rc/CMakeLists.txt | 4 + src/lib/rc/rc_tests/RCTest.cpp | 1 + src/modules/commander/CMakeLists.txt | 9 +- .../failure_detector}/CMakeLists.txt | 8 +- src/modules/mavlink/CMakeLists.txt | 4 + src/modules/micrortps_bridge/CMakeLists.txt | 2 +- src/modules/simulator/CMakeLists.txt | 2 +- src/modules/systemlib/CMakeLists.txt | 4 +- src/modules/uORB/CMakeLists.txt | 4 + src/modules/uavcan/CMakeLists.txt | 17 +- src/modules/uavcanesc/CMakeLists.txt | 2 +- src/modules/uavcannode/CMakeLists.txt | 2 +- src/platforms/common/CMakeLists.txt | 2 +- .../common/work_queue/CMakeLists.txt | 2 +- src/systemcmds/tests/CMakeLists.txt | 2 +- test/rostest_px4_run.sh | 2 +- 507 files changed, 9976 insertions(+), 10990 deletions(-) rename {src/drivers/boards/rpi => boards/aerotenna/ocpoc/src}/CMakeLists.txt (94%) rename {src/drivers/boards/ocpoc => boards/aerotenna/ocpoc/src}/board_config.h (98%) create mode 100644 boards/aerotenna/ocpoc/ubuntu.cmake create mode 100644 boards/airmind/mindpx-v2/default.cmake rename platforms/nuttx/Images/mindpx-v2.prototype => boards/airmind/mindpx-v2/firmware.prototype (100%) rename {platforms/nuttx/nuttx-configs/mindpx-v2 => boards/airmind/mindpx-v2/nuttx-config}/include/board.h (100%) rename {platforms/nuttx/nuttx-configs/mindpx-v2 => boards/airmind/mindpx-v2/nuttx-config}/nsh/defconfig (99%) rename platforms/nuttx/nuttx-configs/px4fmu-v2/scripts/ld_full.script => boards/airmind/mindpx-v2/nuttx-config/scripts/ld.script (99%) rename {src/drivers/boards/mindpx-v2 => boards/airmind/mindpx-v2/src}/CMakeLists.txt (100%) rename {src/drivers/boards/mindpx-v2 => boards/airmind/mindpx-v2/src}/board_config.h (99%) rename {src/drivers/boards/mindpx-v2 => boards/airmind/mindpx-v2/src}/can.c (100%) rename {src/drivers/boards/mindpx-v2 => boards/airmind/mindpx-v2/src}/init.c (100%) rename {src/drivers/boards/mindpx-v2 => boards/airmind/mindpx-v2/src}/led.c (100%) rename {src/drivers/boards/mindpx-v2 => boards/airmind/mindpx-v2/src}/spi.c (100%) rename {src/drivers/boards/mindpx-v2 => boards/airmind/mindpx-v2/src}/timer_config.c (100%) rename {src/drivers/boards/mindpx-v2 => boards/airmind/mindpx-v2/src}/usb.c (100%) rename {cmake => boards/atlflight}/cmake_hexagon (100%) create mode 100644 boards/atlflight/eagle/default.cmake create mode 100644 boards/atlflight/eagle/qurt-default.cmake rename {src/drivers/boards/sitl => boards/atlflight/eagle/src}/CMakeLists.txt (94%) rename {src/drivers/boards/eagle => boards/atlflight/eagle/src}/board_config.h (97%) rename {src/drivers/boards/sitl => boards/atlflight/eagle/src}/sitl_led.c (100%) create mode 100644 boards/atlflight/excelsior/default.cmake create mode 100644 boards/atlflight/excelsior/qurt-default.cmake rename {src/drivers/boards/excelsior => boards/atlflight/excelsior/src}/board_config.h (100%) create mode 100644 boards/atmel/same70xplained/default.cmake rename platforms/nuttx/Images/px4-same70xplained-v1.prototype => boards/atmel/same70xplained/firmware.prototype (87%) rename {platforms/nuttx/nuttx-configs/px4-same70xplained-v1 => boards/atmel/same70xplained/nuttx-config}/include/board.h (100%) rename {platforms/nuttx/nuttx-configs/px4-same70xplained-v1 => boards/atmel/same70xplained/nuttx-config}/nsh/defconfig (99%) rename {platforms/nuttx/nuttx-configs/px4-same70xplained-v1 => boards/atmel/same70xplained/nuttx-config}/scripts/ld.script (100%) rename {src/drivers/boards/px4-same70xplained-v1 => boards/atmel/same70xplained/src}/CMakeLists.txt (100%) rename {src/drivers/boards/px4-same70xplained-v1 => boards/atmel/same70xplained/src}/README.md (88%) rename {src/drivers/boards/px4-same70xplained-v1 => boards/atmel/same70xplained/src}/board_config.h (99%) rename {src/drivers/boards/px4-same70xplained-v1 => boards/atmel/same70xplained/src}/can.c (100%) rename {src/drivers/boards/px4-same70xplained-v1 => boards/atmel/same70xplained/src}/init.c (100%) rename {src/drivers/boards/px4-same70xplained-v1 => boards/atmel/same70xplained/src}/led.c (100%) rename {src/drivers/boards/px4-same70xplained-v1 => boards/atmel/same70xplained/src}/sdram.c (100%) rename {src/drivers/boards/px4-same70xplained-v1 => boards/atmel/same70xplained/src}/spi.c (100%) rename {src/drivers/boards/px4-same70xplained-v1 => boards/atmel/same70xplained/src}/timer_config.c (100%) rename {src/drivers/boards/px4-same70xplained-v1 => boards/atmel/same70xplained/src}/usb.c (100%) rename cmake/configs/nuttx_esc35-v1_default.cmake => boards/auav/esc35-v1/default.cmake (60%) rename platforms/nuttx/Images/esc35-v1.prototype => boards/auav/esc35-v1/firmware.prototype (100%) rename {platforms/nuttx/nuttx-configs/esc35-v1 => boards/auav/esc35-v1/nuttx-config}/Kconfig (100%) rename {platforms/nuttx/nuttx-configs/esc35-v1 => boards/auav/esc35-v1/nuttx-config}/include/README.txt (100%) mode change 100755 => 100644 rename {platforms/nuttx/nuttx-configs/esc35-v1 => boards/auav/esc35-v1/nuttx-config}/include/board.h (100%) mode change 100755 => 100644 rename {platforms/nuttx/nuttx-configs/esc35-v1 => boards/auav/esc35-v1/nuttx-config}/nsh/defconfig (99%) rename {platforms/nuttx/nuttx-configs/esc35-v1 => boards/auav/esc35-v1/nuttx-config}/scripts/ld.script (100%) rename {src/drivers/boards/esc35-v1 => boards/auav/esc35-v1/src}/CMakeLists.txt (100%) rename {src/drivers/boards/esc35-v1 => boards/auav/esc35-v1/src}/board_config.h (99%) rename {src/drivers/boards/esc35-v1 => boards/auav/esc35-v1/src}/init.c (100%) rename {src/drivers/boards/esc35-v1 => boards/auav/esc35-v1/src}/led.c (100%) rename {src/drivers/boards/esc35-v1 => boards/auav/esc35-v1/src}/usb.c (100%) create mode 100644 boards/auav/x21/default.cmake rename platforms/nuttx/Images/auav-x21.prototype => boards/auav/x21/firmware.prototype (100%) rename {platforms/nuttx/nuttx-configs/auav-x21 => boards/auav/x21/nuttx-config}/include/board.h (100%) mode change 100755 => 100644 rename {platforms/nuttx/nuttx-configs/auav-x21 => boards/auav/x21/nuttx-config}/nsh/defconfig (99%) rename {platforms/nuttx/nuttx-configs/auav-x21 => boards/auav/x21/nuttx-config}/scripts/ld.script (93%) rename {src/drivers/boards/aerocore2 => boards/auav/x21/src}/CMakeLists.txt (100%) rename {src/drivers/boards/auav-x21 => boards/auav/x21/src}/board_config.h (99%) rename {src/drivers/boards/auav-x21 => boards/auav/x21/src}/can.c (100%) rename {src/drivers/boards/auav-x21 => boards/auav/x21/src}/init.c (100%) rename {src/drivers/boards/auav-x21 => boards/auav/x21/src}/led.c (100%) rename {src/drivers/boards/auav-x21 => boards/auav/x21/src}/spi.c (100%) rename {src/drivers/boards/auav-x21 => boards/auav/x21/src}/timer_config.c (99%) rename {src/drivers/boards/auav-x21 => boards/auav/x21/src}/usb.c (99%) create mode 100644 boards/av/x-v1/default.cmake rename platforms/nuttx/Images/av-x-v1.prototype => boards/av/x-v1/firmware.prototype (100%) rename {platforms/nuttx/nuttx-configs/av-x-v1 => boards/av/x-v1/nuttx-config}/include/board.h (100%) mode change 100755 => 100644 rename {platforms/nuttx/nuttx-configs/av-x-v1 => boards/av/x-v1/nuttx-config}/nsh/defconfig (99%) rename {platforms/nuttx/nuttx-configs/av-x-v1 => boards/av/x-v1/nuttx-config}/scripts/ld.script (99%) rename {src/drivers/boards/av-x-v1 => boards/av/x-v1/src}/CMakeLists.txt (100%) rename {src/drivers/boards/av-x-v1 => boards/av/x-v1/src}/board_config.h (99%) rename {src/drivers/boards/av-x-v1 => boards/av/x-v1/src}/init.c (100%) rename {src/drivers/boards/av-x-v1 => boards/av/x-v1/src}/manifest.c (100%) rename {src/drivers/boards/av-x-v1 => boards/av/x-v1/src}/sdio.c (100%) rename {src/drivers/boards/av-x-v1 => boards/av/x-v1/src}/spi.c (100%) rename {src/drivers/boards/av-x-v1 => boards/av/x-v1/src}/timer_config.c (100%) create mode 100644 boards/beaglebone/blue/cross.cmake create mode 100644 boards/beaglebone/blue/native.cmake rename {src/drivers/boards/bbblue => boards/beaglebone/blue/src}/CMakeLists.txt (94%) rename {src/drivers/boards/bbblue => boards/beaglebone/blue/src}/board_config.h (98%) rename {src/drivers/boards/bbblue => boards/beaglebone/blue/src}/init.c (100%) create mode 100644 boards/bitcraze/crazyflie/default.cmake rename platforms/nuttx/Images/crazyflie.prototype => boards/bitcraze/crazyflie/firmware.prototype (100%) rename {platforms/nuttx/nuttx-configs/crazyflie => boards/bitcraze/crazyflie/nuttx-config}/include/board.h (100%) rename {platforms/nuttx/nuttx-configs/crazyflie => boards/bitcraze/crazyflie/nuttx-config}/nsh/defconfig (99%) rename {platforms/nuttx/nuttx-configs/crazyflie => boards/bitcraze/crazyflie/nuttx-config}/scripts/ld.script (100%) rename {src/drivers/boards/crazyflie => boards/bitcraze/crazyflie/src}/CMakeLists.txt (100%) rename {src/drivers/boards/crazyflie => boards/bitcraze/crazyflie/src}/board_config.h (99%) rename {src/drivers/boards/crazyflie => boards/bitcraze/crazyflie/src}/init.c (100%) rename {src/drivers/boards/crazyflie => boards/bitcraze/crazyflie/src}/led.c (100%) rename {src/drivers/boards/crazyflie => boards/bitcraze/crazyflie/src}/spi.c (100%) rename {src/drivers/boards/crazyflie => boards/bitcraze/crazyflie/src}/timer_config.c (100%) rename {src/drivers/boards/crazyflie => boards/bitcraze/crazyflie/src}/usb.c (100%) create mode 100644 boards/emlid/navio2/cross.cmake create mode 100644 boards/emlid/navio2/native.cmake rename {src/drivers/boards/ocpoc => boards/emlid/navio2/src}/CMakeLists.txt (94%) rename {src/drivers/boards/rpi => boards/emlid/navio2/src}/board_config.h (94%) create mode 100644 boards/gumstix/aerocore2/default.cmake rename platforms/nuttx/Images/aerocore2.prototype => boards/gumstix/aerocore2/firmware.prototype (100%) rename {platforms/nuttx/nuttx-configs/aerocore2 => boards/gumstix/aerocore2/nuttx-config}/Kconfig (100%) rename {platforms/nuttx/nuttx-configs/aerocore2 => boards/gumstix/aerocore2/nuttx-config}/include/board.h (100%) mode change 100755 => 100644 rename {platforms/nuttx/nuttx-configs/aerocore2 => boards/gumstix/aerocore2/nuttx-config}/nsh/defconfig (99%) rename {platforms/nuttx/nuttx-configs/aerocore2 => boards/gumstix/aerocore2/nuttx-config}/scripts/ld.script (100%) rename {src/drivers/boards/auav-x21 => boards/gumstix/aerocore2/src}/CMakeLists.txt (100%) rename {src/drivers/boards/aerocore2 => boards/gumstix/aerocore2/src}/board_config.h (99%) rename {src/drivers/boards/aerocore2 => boards/gumstix/aerocore2/src}/can.c (100%) rename {src/drivers/boards/aerocore2 => boards/gumstix/aerocore2/src}/init.c (100%) rename {src/drivers/boards/aerocore2 => boards/gumstix/aerocore2/src}/led.c (100%) rename {src/drivers/boards/aerocore2 => boards/gumstix/aerocore2/src}/spi.c (100%) rename {src/drivers/boards/aerocore2 => boards/gumstix/aerocore2/src}/timer_config.c (100%) rename {src/drivers/boards/aerocore2 => boards/gumstix/aerocore2/src}/usb.c (100%) create mode 100644 boards/intel/aerofc-v1/default.cmake rename platforms/nuttx/Images/aerofc-v1.prototype => boards/intel/aerofc-v1/firmware.prototype (100%) rename {platforms/nuttx/nuttx-configs/aerofc-v1 => boards/intel/aerofc-v1/nuttx-config}/Kconfig (100%) rename {platforms/nuttx/nuttx-configs/aerofc-v1 => boards/intel/aerofc-v1/nuttx-config}/include/board.h (100%) rename {platforms/nuttx/nuttx-configs/aerofc-v1 => boards/intel/aerofc-v1/nuttx-config}/nsh/defconfig (99%) rename {platforms/nuttx/nuttx-configs/aerofc-v1 => boards/intel/aerofc-v1/nuttx-config}/scripts/ld.script (100%) create mode 100644 boards/intel/aerofc-v1/rtps.cmake rename {src/drivers/boards/aerofc-v1 => boards/intel/aerofc-v1/src}/CMakeLists.txt (100%) rename {src/drivers/boards/aerofc-v1 => boards/intel/aerofc-v1/src}/board_config.h (99%) rename {src/drivers/boards/aerofc-v1 => boards/intel/aerofc-v1/src}/init.c (100%) rename {src/drivers/boards/aerofc-v1 => boards/intel/aerofc-v1/src}/led.c (100%) rename {src/drivers/boards/aerofc-v1 => boards/intel/aerofc-v1/src}/spi.c (100%) rename {src/drivers/boards/aerofc-v1 => boards/intel/aerofc-v1/src}/timer_config.c (100%) create mode 100644 boards/nxp/hlite-v3/default.cmake rename platforms/nuttx/Images/nxphlite-v3.prototype => boards/nxp/hlite-v3/firmware.prototype (100%) rename {platforms/nuttx/nuttx-configs/nxphlite-v3 => boards/nxp/hlite-v3/nuttx-config}/Kconfig (100%) rename {platforms/nuttx/nuttx-configs/nxphlite-v3 => boards/nxp/hlite-v3/nuttx-config}/include/board.h (100%) rename {platforms/nuttx/nuttx-configs/nxphlite-v3 => boards/nxp/hlite-v3/nuttx-config}/nsh/defconfig (100%) rename {platforms/nuttx/nuttx-configs/nxphlite-v3 => boards/nxp/hlite-v3/nuttx-config}/scripts/ld.script (100%) rename {src/drivers/boards/nxphlite-v3 => boards/nxp/hlite-v3/src}/CMakeLists.txt (100%) rename {src/drivers/boards/nxphlite-v3 => boards/nxp/hlite-v3/src}/autoleds.c (100%) rename {src/drivers/boards/nxphlite-v3 => boards/nxp/hlite-v3/src}/automount.c (100%) rename {src/drivers/boards/nxphlite-v3 => boards/nxp/hlite-v3/src}/board_config.h (99%) rename {src/drivers/boards/nxphlite-v3 => boards/nxp/hlite-v3/src}/can.c (100%) rename {src/drivers/boards/nxphlite-v3 => boards/nxp/hlite-v3/src}/init.c (100%) rename {src/drivers/boards/nxphlite-v3 => boards/nxp/hlite-v3/src}/led.c (100%) rename {src/drivers/boards/nxphlite-v3 => boards/nxp/hlite-v3/src}/sdhc.c (100%) rename {src/drivers/boards/nxphlite-v3 => boards/nxp/hlite-v3/src}/spi.c (100%) rename {src/drivers/boards/nxphlite-v3 => boards/nxp/hlite-v3/src}/timer_config.c (100%) rename {src/drivers/boards/nxphlite-v3 => boards/nxp/hlite-v3/src}/usb.c (100%) create mode 100644 boards/omnibus/f4sd/default.cmake rename platforms/nuttx/Images/omnibus-f4sd.prototype => boards/omnibus/f4sd/firmware.prototype (100%) rename {platforms/nuttx/nuttx-configs/omnibus-f4sd => boards/omnibus/f4sd/nuttx-config}/include/board.h (100%) rename {platforms/nuttx/nuttx-configs/omnibus-f4sd => boards/omnibus/f4sd/nuttx-config}/nsh/defconfig (99%) rename {platforms/nuttx/nuttx-configs/omnibus-f4sd => boards/omnibus/f4sd/nuttx-config}/scripts/ld.script (100%) rename {src/drivers/boards/omnibus-f4sd => boards/omnibus/f4sd/src}/CMakeLists.txt (100%) rename {src/drivers/boards/omnibus-f4sd => boards/omnibus/f4sd/src}/board_config.h (99%) rename {src/drivers/boards/omnibus-f4sd => boards/omnibus/f4sd/src}/init.c (100%) rename {src/drivers/boards/omnibus-f4sd => boards/omnibus/f4sd/src}/led.c (100%) rename {src/drivers/boards/omnibus-f4sd => boards/omnibus/f4sd/src}/spi.c (100%) rename {src/drivers/boards/omnibus-f4sd => boards/omnibus/f4sd/src}/timer_config.c (100%) rename {src/drivers/boards/omnibus-f4sd => boards/omnibus/f4sd/src}/usb.c (100%) create mode 100644 boards/parrot/bebop/default.cmake rename {src/drivers/boards/sim => boards/parrot/bebop/src}/CMakeLists.txt (94%) rename {src/drivers/boards/bebop => boards/parrot/bebop/src}/board_config.h (97%) rename cmake/configs/nuttx_px4cannode-v1_default.cmake => boards/px4/cannode-v1/default.cmake (71%) rename platforms/nuttx/Images/px4cannode-v1.prototype => boards/px4/cannode-v1/firmware.prototype (100%) rename {platforms/nuttx/nuttx-configs/px4cannode-v1 => boards/px4/cannode-v1/nuttx-config}/Kconfig (100%) rename {platforms/nuttx/nuttx-configs/px4cannode-v1 => boards/px4/cannode-v1/nuttx-config}/include/README.txt (100%) mode change 100755 => 100644 rename {platforms/nuttx/nuttx-configs/px4cannode-v1 => boards/px4/cannode-v1/nuttx-config}/include/board.h (100%) mode change 100755 => 100644 rename {platforms/nuttx/nuttx-configs/px4cannode-v1 => boards/px4/cannode-v1/nuttx-config}/nsh/defconfig (100%) rename {platforms/nuttx/nuttx-configs/px4cannode-v1 => boards/px4/cannode-v1/nuttx-config}/nsh/defconfig.nonsh (100%) rename {platforms/nuttx/nuttx-configs/px4cannode-v1 => boards/px4/cannode-v1/nuttx-config}/nsh/defconfig.nsh (100%) rename {platforms/nuttx/nuttx-configs/px4cannode-v1 => boards/px4/cannode-v1/nuttx-config}/scripts/ld.script (100%) rename {src/drivers/boards/px4cannode-v1 => boards/px4/cannode-v1/src}/CMakeLists.txt (100%) rename {src/drivers/boards/px4cannode-v1 => boards/px4/cannode-v1/src}/board_config.h (99%) rename {src/drivers/boards/px4cannode-v1 => boards/px4/cannode-v1/src}/buttons.c (100%) rename {src/drivers/boards/px4cannode-v1 => boards/px4/cannode-v1/src}/can.c (100%) rename {src/drivers/boards/px4cannode-v1 => boards/px4/cannode-v1/src}/init.c (100%) rename {src/drivers/boards/px4cannode-v1 => boards/px4/cannode-v1/src}/led.c (100%) rename {src/drivers/boards/px4cannode-v1 => boards/px4/cannode-v1/src}/spi.c (100%) rename cmake/configs/nuttx_px4esc-v1_default.cmake => boards/px4/esc-v1/default.cmake (62%) rename platforms/nuttx/Images/px4esc-v1.prototype => boards/px4/esc-v1/firmware.prototype (100%) rename {platforms/nuttx/nuttx-configs/px4esc-v1 => boards/px4/esc-v1/nuttx-config}/Kconfig (100%) rename {platforms/nuttx/nuttx-configs/px4esc-v1 => boards/px4/esc-v1/nuttx-config}/include/README.txt (100%) mode change 100755 => 100644 rename {platforms/nuttx/nuttx-configs/px4esc-v1 => boards/px4/esc-v1/nuttx-config}/include/board.h (100%) mode change 100755 => 100644 rename {platforms/nuttx/nuttx-configs/px4esc-v1 => boards/px4/esc-v1/nuttx-config}/nsh/defconfig (100%) rename {platforms/nuttx/nuttx-configs/px4esc-v1 => boards/px4/esc-v1/nuttx-config}/scripts/ld.script (100%) rename {src/drivers/boards/px4esc-v1 => boards/px4/esc-v1/src}/CMakeLists.txt (100%) rename {src/drivers/boards/px4esc-v1 => boards/px4/esc-v1/src}/board_config.h (99%) rename {src/drivers/boards/px4esc-v1 => boards/px4/esc-v1/src}/init.c (100%) rename {src/drivers/boards/px4esc-v1 => boards/px4/esc-v1/src}/led.c (100%) rename {src/drivers/boards/px4esc-v1 => boards/px4/esc-v1/src}/usb.c (100%) create mode 100644 boards/px4/fmu-v2/default.cmake rename platforms/nuttx/Images/px4fmu-v2.prototype => boards/px4/fmu-v2/firmware.prototype (52%) create mode 100644 boards/px4/fmu-v2/lpe.cmake rename {platforms/nuttx/nuttx-configs/px4fmu-v2 => boards/px4/fmu-v2/nuttx-config}/Kconfig (100%) rename {platforms/nuttx/nuttx-configs/px4fmu-v2 => boards/px4/fmu-v2/nuttx-config}/include/board.h (100%) mode change 100755 => 100644 rename {platforms/nuttx/nuttx-configs/px4fmu-v2 => boards/px4/fmu-v2/nuttx-config}/nsh/defconfig (100%) rename {platforms/nuttx/nuttx-configs/px4fmu-v2 => boards/px4/fmu-v2/nuttx-config}/scripts/ld.script (100%) rename {src/drivers/boards/px4fmu-v2 => boards/px4/fmu-v2/src}/CMakeLists.txt (100%) rename {src/drivers/boards/px4fmu-v2 => boards/px4/fmu-v2/src}/board_config.h (99%) rename {src/drivers/boards/px4fmu-v2 => boards/px4/fmu-v2/src}/can.c (100%) rename {src/drivers/boards/px4fmu-v2 => boards/px4/fmu-v2/src}/i2c.c (100%) rename {src/drivers/boards/px4fmu-v2 => boards/px4/fmu-v2/src}/init.c (100%) rename {src/drivers/boards/px4fmu-v2 => boards/px4/fmu-v2/src}/led.c (100%) rename {src/drivers/boards/px4fmu-v2 => boards/px4/fmu-v2/src}/manifest.c (100%) rename {src/drivers/boards/px4fmu-v2 => boards/px4/fmu-v2/src}/spi.c (100%) rename {src/drivers/boards/px4fmu-v2 => boards/px4/fmu-v2/src}/timer_config.c (100%) rename {src/drivers/boards/px4fmu-v2 => boards/px4/fmu-v2/src}/usb.c (100%) create mode 100644 boards/px4/fmu-v2/test.cmake create mode 100644 boards/px4/fmu-v3/default.cmake rename platforms/nuttx/Images/px4fmu-v3.prototype => boards/px4/fmu-v3/firmware.prototype (100%) rename {platforms/nuttx/nuttx-configs/px4nucleoF767ZI-v1 => boards/px4/fmu-v3/nuttx-config}/Kconfig (94%) rename {platforms/nuttx/nuttx-configs/px4flow-v2 => boards/px4/fmu-v3/nuttx-config}/include/board.h (62%) mode change 100755 => 100644 create mode 100644 boards/px4/fmu-v3/nuttx-config/nsh/defconfig rename {platforms/nuttx/nuttx-configs/px4fmu-v4 => boards/px4/fmu-v3/nuttx-config}/scripts/ld.script (93%) rename {platforms/nuttx/nuttx-configs/px4fmu-v2 => boards/px4/fmu-v3/nuttx-config}/stackcheck/defconfig (99%) create mode 100644 boards/px4/fmu-v3/rtps.cmake rename {src/drivers/boards/zubaxgnss-v1 => boards/px4/fmu-v3/src}/CMakeLists.txt (88%) create mode 100644 boards/px4/fmu-v3/src/board_config.h rename {src/drivers/boards/px4fmu-v4 => boards/px4/fmu-v3/src}/can.c (100%) rename platforms/nuttx/nuttx-configs/aerofc-v1/include/nsh_romfsimg.h => boards/px4/fmu-v3/src/i2c.c (81%) create mode 100644 boards/px4/fmu-v3/src/init.c create mode 100644 boards/px4/fmu-v3/src/led.c create mode 100644 boards/px4/fmu-v3/src/manifest.c create mode 100644 boards/px4/fmu-v3/src/spi.c create mode 100644 boards/px4/fmu-v3/src/timer_config.c rename {src/drivers/boards/px4fmu-v4pro => boards/px4/fmu-v3/src}/usb.c (100%) create mode 100644 boards/px4/fmu-v3/stackcheck.cmake create mode 100644 boards/px4/fmu-v4/default.cmake rename platforms/nuttx/Images/px4fmu-v4.prototype => boards/px4/fmu-v4/firmware.prototype (100%) rename {platforms/nuttx/nuttx-configs/px4fmu-v4 => boards/px4/fmu-v4/nuttx-config}/include/board.h (100%) mode change 100755 => 100644 rename {platforms/nuttx/nuttx-configs/px4fmu-v4 => boards/px4/fmu-v4/nuttx-config}/nsh/defconfig (100%) rename {platforms/nuttx/nuttx-configs/mindpx-v2 => boards/px4/fmu-v4/nuttx-config}/scripts/ld.script (92%) rename {platforms/nuttx/nuttx-configs/px4fmu-v4 => boards/px4/fmu-v4/nuttx-config}/stackcheck/defconfig (100%) create mode 100644 boards/px4/fmu-v4/rtps.cmake rename {src/drivers/boards/px4fmu-v4 => boards/px4/fmu-v4/src}/CMakeLists.txt (100%) rename {src/drivers/boards/px4fmu-v4 => boards/px4/fmu-v4/src}/board_config.h (99%) rename {src/drivers/boards/px4fmu-v4pro => boards/px4/fmu-v4/src}/can.c (100%) rename {src/drivers/boards/px4fmu-v4 => boards/px4/fmu-v4/src}/init.c (100%) rename {src/drivers/boards/px4fmu-v4 => boards/px4/fmu-v4/src}/led.c (100%) rename {src/drivers/boards/px4fmu-v4 => boards/px4/fmu-v4/src}/spi.c (100%) rename {src/drivers/boards/px4fmu-v4 => boards/px4/fmu-v4/src}/timer_config.c (100%) rename {src/drivers/boards/px4fmu-v4 => boards/px4/fmu-v4/src}/usb.c (100%) create mode 100644 boards/px4/fmu-v4/stackcheck.cmake create mode 100644 boards/px4/fmu-v4pro/default.cmake rename platforms/nuttx/Images/px4fmu-v4pro.prototype => boards/px4/fmu-v4pro/firmware.prototype (100%) rename {platforms/nuttx/nuttx-configs/px4fmu-v4pro => boards/px4/fmu-v4pro/nuttx-config}/Kconfig (100%) rename {platforms/nuttx/nuttx-configs/px4fmu-v4pro => boards/px4/fmu-v4pro/nuttx-config}/include/board.h (100%) rename {platforms/nuttx/nuttx-configs/px4fmu-v4pro => boards/px4/fmu-v4pro/nuttx-config}/nsh/defconfig (100%) rename {platforms/nuttx/nuttx-configs/px4fmu-v4pro => boards/px4/fmu-v4pro/nuttx-config}/scripts/ld.script (93%) create mode 100644 boards/px4/fmu-v4pro/rtps.cmake rename {src/drivers/boards/px4fmu-v4pro => boards/px4/fmu-v4pro/src}/CMakeLists.txt (100%) rename {src/drivers/boards/px4fmu-v4pro => boards/px4/fmu-v4pro/src}/board_config.h (99%) rename {src/drivers/boards/s2740vc-v1 => boards/px4/fmu-v4pro/src}/can.c (94%) rename {src/drivers/boards/px4fmu-v4pro => boards/px4/fmu-v4pro/src}/init.c (100%) rename {src/drivers/boards/px4fmu-v4pro => boards/px4/fmu-v4pro/src}/led.c (100%) rename {src/drivers/boards/px4fmu-v4pro => boards/px4/fmu-v4pro/src}/spi.c (100%) rename {src/drivers/boards/px4fmu-v4pro => boards/px4/fmu-v4pro/src}/timer_config.c (100%) create mode 100644 boards/px4/fmu-v4pro/src/usb.c create mode 100644 boards/px4/fmu-v5/default.cmake rename platforms/nuttx/Images/px4fmu-v5.prototype => boards/px4/fmu-v5/firmware.prototype (100%) rename {platforms/nuttx/nuttx-configs/px4fmu-v5 => boards/px4/fmu-v5/nuttx-config}/Kconfig (100%) rename {platforms/nuttx/nuttx-configs/px4fmu-v5 => boards/px4/fmu-v5/nuttx-config}/include/board.h (100%) mode change 100755 => 100644 rename {platforms/nuttx/nuttx-configs/px4fmu-v5 => boards/px4/fmu-v5/nuttx-config}/nsh/defconfig (100%) rename {platforms/nuttx/nuttx-configs/px4fmu-v5 => boards/px4/fmu-v5/nuttx-config}/scripts/ld.script (99%) rename {platforms/nuttx/nuttx-configs/px4fmu-v5 => boards/px4/fmu-v5/nuttx-config}/stackcheck/defconfig (100%) create mode 100644 boards/px4/fmu-v5/rtps.cmake rename {src/drivers/boards/px4fmu-v5 => boards/px4/fmu-v5/src}/CMakeLists.txt (100%) rename {src/drivers/boards/px4fmu-v5 => boards/px4/fmu-v5/src}/board_config.h (99%) rename {src/drivers/boards/px4fmu-v5 => boards/px4/fmu-v5/src}/can.c (100%) rename {src/drivers/boards/px4fmu-v5 => boards/px4/fmu-v5/src}/init.c (100%) rename {src/drivers/boards/px4fmu-v5 => boards/px4/fmu-v5/src}/led.c (100%) rename {src/drivers/boards/px4fmu-v5 => boards/px4/fmu-v5/src}/manifest.c (100%) rename {src/drivers/boards/px4fmu-v5 => boards/px4/fmu-v5/src}/sdio.c (100%) rename {src/drivers/boards/px4fmu-v5 => boards/px4/fmu-v5/src}/spi.c (100%) rename {src/drivers/boards/px4fmu-v5 => boards/px4/fmu-v5/src}/timer_config.c (100%) rename {src/drivers/boards/px4fmu-v5 => boards/px4/fmu-v5/src}/usb.c (100%) create mode 100644 boards/px4/fmu-v5/stackcheck.cmake create mode 100644 boards/px4/io-v2/default.cmake rename platforms/nuttx/Images/px4io-v2.prototype => boards/px4/io-v2/firmware.prototype (100%) rename {platforms/nuttx/nuttx-configs/px4io-v2 => boards/px4/io-v2/nuttx-config}/include/board.h (100%) mode change 100755 => 100644 rename {platforms/nuttx/nuttx-configs/px4io-v2 => boards/px4/io-v2/nuttx-config}/nsh/defconfig (100%) mode change 100755 => 100644 rename {platforms/nuttx/nuttx-configs/px4io-v2 => boards/px4/io-v2/nuttx-config}/scripts/ld.script (100%) mode change 100755 => 100644 rename {src/drivers/boards/px4io-v2 => boards/px4/io-v2/src}/CMakeLists.txt (100%) rename {src/drivers/boards/px4io-v2 => boards/px4/io-v2/src}/board_config.h (99%) rename {src/drivers/boards/px4io-v2 => boards/px4/io-v2/src}/init.c (100%) rename {src/drivers/boards/px4io-v2 => boards/px4/io-v2/src}/timer_config.c (100%) create mode 100644 boards/px4/raspberrypi/cross.cmake create mode 100644 boards/px4/raspberrypi/native.cmake rename {src/drivers/boards/bebop => boards/px4/raspberrypi/src}/CMakeLists.txt (94%) create mode 100644 boards/px4/raspberrypi/src/board_config.h create mode 100644 boards/px4/sitl/default.cmake create mode 100644 boards/px4/sitl/rtps.cmake rename {src/drivers/boards/eagle => boards/px4/sitl/src}/CMakeLists.txt (94%) rename {src/drivers/boards/sitl => boards/px4/sitl/src}/board_config.h (98%) rename {src/drivers/boards/eagle => boards/px4/sitl/src}/sitl_led.c (100%) create mode 100644 boards/px4/sitl/test.cmake create mode 100644 boards/stm/32f4discovery/default.cmake rename platforms/nuttx/Images/px4-stm32f4discovery.prototype => boards/stm/32f4discovery/firmware.prototype (87%) rename {platforms/nuttx/nuttx-configs/px4-stm32f4discovery => boards/stm/32f4discovery/nuttx-config}/include/board.h (100%) rename {platforms/nuttx/nuttx-configs/px4-stm32f4discovery => boards/stm/32f4discovery/nuttx-config}/nsh/defconfig (99%) rename {platforms/nuttx/nuttx-configs/px4-stm32f4discovery => boards/stm/32f4discovery/nuttx-config}/scripts/ld.script (100%) rename {src/drivers/boards/px4-stm32f4discovery => boards/stm/32f4discovery/src}/CMakeLists.txt (99%) rename {src/drivers/boards/px4-stm32f4discovery => boards/stm/32f4discovery/src}/board_config.h (99%) rename {src/drivers/boards/px4-stm32f4discovery => boards/stm/32f4discovery/src}/init.c (100%) rename {src/drivers/boards/px4-stm32f4discovery => boards/stm/32f4discovery/src}/led.c (100%) create mode 100644 boards/stm/32f4discovery/src/timer_config.c rename {src/drivers/boards/px4-stm32f4discovery => boards/stm/32f4discovery/src}/usb.c (100%) create mode 100644 boards/stm/nucleo-F767ZI/default.cmake rename platforms/nuttx/Images/px4nucleoF767ZI-v1.prototype => boards/stm/nucleo-F767ZI/firmware.prototype (64%) rename {platforms/nuttx/nuttx-configs/px4nucleoF767ZI-v1 => boards/stm/nucleo-F767ZI/nuttx-config}/include/board.h (99%) mode change 100755 => 100644 rename {platforms/nuttx/nuttx-configs/px4nucleoF767ZI-v1 => boards/stm/nucleo-F767ZI/nuttx-config}/nsh/defconfig (99%) rename {platforms/nuttx/nuttx-configs/px4nucleoF767ZI-v1 => boards/stm/nucleo-F767ZI/nuttx-config}/scripts/ld.script (100%) rename {src/drivers/boards/px4nucleoF767ZI-v1 => boards/stm/nucleo-F767ZI/src}/CMakeLists.txt (100%) rename {src/drivers/boards/px4nucleoF767ZI-v1 => boards/stm/nucleo-F767ZI/src}/board_config.h (99%) rename {src/drivers/boards/px4nucleoF767ZI-v1 => boards/stm/nucleo-F767ZI/src}/can.c (100%) rename {src/drivers/boards/px4nucleoF767ZI-v1 => boards/stm/nucleo-F767ZI/src}/init.c (100%) rename {src/drivers/boards/px4nucleoF767ZI-v1 => boards/stm/nucleo-F767ZI/src}/led.c (100%) rename {src/drivers/boards/px4nucleoF767ZI-v1 => boards/stm/nucleo-F767ZI/src}/sdio.c (100%) rename {src/drivers/boards/px4nucleoF767ZI-v1 => boards/stm/nucleo-F767ZI/src}/spi.c (100%) rename {src/drivers/boards/px4nucleoF767ZI-v1 => boards/stm/nucleo-F767ZI/src}/timer_config.c (100%) rename {src/drivers/boards/px4nucleoF767ZI-v1 => boards/stm/nucleo-F767ZI/src}/usb.c (100%) rename cmake/configs/nuttx_s2740vc-v1_default.cmake => boards/thiemar/s2740vc-v1/default.cmake (68%) rename platforms/nuttx/Images/s2740vc-v1.prototype => boards/thiemar/s2740vc-v1/firmware.prototype (100%) rename {platforms/nuttx/nuttx-configs/s2740vc-v1 => boards/thiemar/s2740vc-v1/nuttx-config}/Kconfig (100%) rename {platforms/nuttx/nuttx-configs/s2740vc-v1 => boards/thiemar/s2740vc-v1/nuttx-config}/include/README.txt (100%) mode change 100755 => 100644 rename {platforms/nuttx/nuttx-configs/s2740vc-v1 => boards/thiemar/s2740vc-v1/nuttx-config}/include/board.h (100%) mode change 100755 => 100644 rename {platforms/nuttx/nuttx-configs/s2740vc-v1 => boards/thiemar/s2740vc-v1/nuttx-config}/nsh/IMPORTANT_README.txt (100%) mode change 100755 => 100644 rename {platforms/nuttx/nuttx-configs/s2740vc-v1 => boards/thiemar/s2740vc-v1/nuttx-config}/nsh/defconfig (99%) rename {platforms/nuttx/nuttx-configs/s2740vc-v1 => boards/thiemar/s2740vc-v1/nuttx-config}/scripts/ld.script (100%) rename {src/drivers/boards/s2740vc-v1 => boards/thiemar/s2740vc-v1/src}/CMakeLists.txt (100%) rename {src/drivers/boards/s2740vc-v1 => boards/thiemar/s2740vc-v1/src}/board_config.h (99%) rename {src/drivers/boards/px4flow-v2 => boards/thiemar/s2740vc-v1/src}/can.c (100%) rename {src/drivers/boards/s2740vc-v1 => boards/thiemar/s2740vc-v1/src}/init.c (100%) delete mode 100644 cmake/configs/nuttx_aerocore2_default.cmake delete mode 100644 cmake/configs/nuttx_aerofc-v1_default.cmake delete mode 100644 cmake/configs/nuttx_aerofc-v1_rtps.cmake delete mode 100644 cmake/configs/nuttx_auav-x21_default.cmake delete mode 100644 cmake/configs/nuttx_av-x-v1_default.cmake delete mode 100644 cmake/configs/nuttx_crazyflie_default.cmake delete mode 100644 cmake/configs/nuttx_mindpx-v2_default.cmake delete mode 100644 cmake/configs/nuttx_nxphlite-v3_default.cmake delete mode 100644 cmake/configs/nuttx_omnibus-f4sd_default.cmake delete mode 100644 cmake/configs/nuttx_px4-same70xplained-v1_default.cmake delete mode 100644 cmake/configs/nuttx_px4-stm32f4discovery_default.cmake delete mode 100644 cmake/configs/nuttx_px4fmu-v2_default.cmake delete mode 100644 cmake/configs/nuttx_px4fmu-v2_lpe.cmake delete mode 100644 cmake/configs/nuttx_px4fmu-v2_test.cmake delete mode 100644 cmake/configs/nuttx_px4fmu-v3_default.cmake delete mode 100644 cmake/configs/nuttx_px4fmu-v3_rtps.cmake delete mode 100644 cmake/configs/nuttx_px4fmu-v3_stackcheck.cmake delete mode 100644 cmake/configs/nuttx_px4fmu-v4_default.cmake delete mode 100644 cmake/configs/nuttx_px4fmu-v4_rtps.cmake delete mode 100644 cmake/configs/nuttx_px4fmu-v4_stackcheck.cmake delete mode 100644 cmake/configs/nuttx_px4fmu-v4pro_default.cmake delete mode 100644 cmake/configs/nuttx_px4fmu-v4pro_rtps.cmake delete mode 100644 cmake/configs/nuttx_px4fmu-v5_default.cmake delete mode 100644 cmake/configs/nuttx_px4fmu-v5_rtps.cmake delete mode 100644 cmake/configs/nuttx_px4fmu-v5_stackcheck.cmake delete mode 100644 cmake/configs/nuttx_px4io-v2_default.cmake delete mode 100644 cmake/configs/nuttx_px4nucleoF767ZI-v1_default.cmake delete mode 100644 cmake/configs/posix_bbblue_common.cmake delete mode 100644 cmake/configs/posix_bbblue_cross.cmake delete mode 100644 cmake/configs/posix_bbblue_native.cmake delete mode 100644 cmake/configs/posix_bebop_default.cmake delete mode 100644 cmake/configs/posix_eagle_default.cmake delete mode 100644 cmake/configs/posix_eagle_hil.cmake delete mode 100644 cmake/configs/posix_eagle_legacy.cmake delete mode 100644 cmake/configs/posix_eagle_muorb.cmake delete mode 100644 cmake/configs/posix_excelsior_default.cmake delete mode 100644 cmake/configs/posix_excelsior_legacy.cmake delete mode 100644 cmake/configs/posix_ocpoc_cross.cmake delete mode 100644 cmake/configs/posix_ocpoc_ubuntu.cmake delete mode 100644 cmake/configs/posix_rpi_common.cmake delete mode 100644 cmake/configs/posix_rpi_cross.cmake delete mode 100644 cmake/configs/posix_rpi_cross_no_shield.cmake delete mode 100644 cmake/configs/posix_rpi_native.cmake delete mode 100644 cmake/configs/posix_sdflight_default.cmake delete mode 100644 cmake/configs/posix_sdflight_legacy.cmake delete mode 100644 cmake/configs/posix_sdflight_rtps.cmake delete mode 100644 cmake/configs/posix_sitl_broadcast.cmake delete mode 100644 cmake/configs/posix_sitl_default.cmake delete mode 100644 cmake/configs/posix_sitl_rtps.cmake delete mode 100644 cmake/configs/posix_sitl_test.cmake delete mode 100644 cmake/configs/qurt_eagle_default.cmake delete mode 100644 cmake/configs/qurt_eagle_hello.cmake delete mode 100644 cmake/configs/qurt_eagle_hil.cmake delete mode 100644 cmake/configs/qurt_eagle_legacy.cmake delete mode 100644 cmake/configs/qurt_eagle_muorb.cmake delete mode 100644 cmake/configs/qurt_eagle_test.cmake delete mode 100644 cmake/configs/qurt_eagle_travis.cmake delete mode 100644 cmake/configs/qurt_excelsior_default.cmake delete mode 100644 cmake/configs/qurt_excelsior_legacy.cmake delete mode 100644 cmake/configs/qurt_sdflight_default.cmake delete mode 100644 cmake/configs/qurt_sdflight_legacy.cmake rename cmake/{common => }/coverage.cmake (100%) create mode 100644 cmake/px4_add_board.cmake rename cmake/{common => }/px4_base.cmake (85%) rename cmake/{common => }/px4_git.cmake (99%) create mode 100644 cmake/px4_make_uavcan_bootloader.cmake rename cmake/{common => }/px4_metadata.cmake (98%) rename cmake/{common => }/sanitizers.cmake (100%) delete mode 100644 cmake/toolchains/Toolchain-arm-linux-gnueabihf.cmake delete mode 100644 cmake/toolchains/Toolchain-arm-none-eabi.cmake delete mode 100644 cmake/toolchains/Toolchain-arm-xilinx-linux-gnueabi.cmake delete mode 100644 cmake/toolchains/Toolchain-gcc-arm-linux-gnueabihf.cmake delete mode 100644 platforms/nuttx/Images/px4flow-v2.prototype delete mode 100644 platforms/nuttx/Images/zubaxgnss-v1.prototype rename platforms/nuttx/{nuttx-configs => NuttX}/Make.defs.in (79%) rename platforms/nuttx/{nuttx-configs/aerocore2/include => NuttX}/nsh_romfsimg.h (100%) delete mode 100755 platforms/nuttx/NuttX/tools/new_nuttx_px_config.sh create mode 100644 platforms/nuttx/cmake/Platform/Generic-arm-none-eabi-gcc-cortex-m3.cmake create mode 100644 platforms/nuttx/cmake/Platform/Generic-arm-none-eabi-gcc-cortex-m4.cmake create mode 100644 platforms/nuttx/cmake/Platform/Generic-arm-none-eabi-gcc-cortex-m7.cmake create mode 100644 platforms/nuttx/cmake/Toolchain-arm-none-eabi.cmake create mode 100644 platforms/nuttx/cmake/px4_add_board_os.cmake delete mode 100644 platforms/nuttx/nuttx-configs/auav-x21/include/nsh_romfsimg.h delete mode 100644 platforms/nuttx/nuttx-configs/av-x-v1/include/nsh_romfsimg.h delete mode 100644 platforms/nuttx/nuttx-configs/crazyflie/include/nsh_romfsimg.h delete mode 100644 platforms/nuttx/nuttx-configs/mindpx-v2/include/nsh_romfsimg.h delete mode 100644 platforms/nuttx/nuttx-configs/nxphlite-v3/include/nsh_romfsimg.h delete mode 100644 platforms/nuttx/nuttx-configs/omnibus-f4sd/include/nsh_romfsimg.h delete mode 100644 platforms/nuttx/nuttx-configs/px4-same70xplained-v1/Kconfig delete mode 100644 platforms/nuttx/nuttx-configs/px4-same70xplained-v1/include/nsh_romfsimg.h delete mode 100755 platforms/nuttx/nuttx-configs/px4-same70xplained-v1/nsh/setenv.sh delete mode 100644 platforms/nuttx/nuttx-configs/px4-same70xplained-v1/scripts/flash-dtcm.ld delete mode 100644 platforms/nuttx/nuttx-configs/px4-same70xplained-v1/scripts/flash-sram.ld delete mode 100644 platforms/nuttx/nuttx-configs/px4-same70xplained-v1/scripts/gnu-elf.ld delete mode 100644 platforms/nuttx/nuttx-configs/px4-same70xplained-v1/scripts/kernel-space.ld delete mode 100644 platforms/nuttx/nuttx-configs/px4-same70xplained-v1/scripts/memory.ld delete mode 100644 platforms/nuttx/nuttx-configs/px4-same70xplained-v1/scripts/user-space.ld delete mode 100644 platforms/nuttx/nuttx-configs/px4-stm32f4discovery/include/nsh_romfsimg.h delete mode 100644 platforms/nuttx/nuttx-configs/px4flow-v2/Kconfig delete mode 100755 platforms/nuttx/nuttx-configs/px4flow-v2/include/README.txt delete mode 100644 platforms/nuttx/nuttx-configs/px4flow-v2/nsh/defconfig delete mode 100644 platforms/nuttx/nuttx-configs/px4flow-v2/scripts/ld.script delete mode 100644 platforms/nuttx/nuttx-configs/px4fmu-v2/include/nsh_romfsimg.h delete mode 100644 platforms/nuttx/nuttx-configs/px4fmu-v4/include/nsh_romfsimg.h delete mode 100644 platforms/nuttx/nuttx-configs/px4fmu-v4pro/include/nsh_romfsimg.h delete mode 100644 platforms/nuttx/nuttx-configs/px4fmu-v5/include/nsh_romfsimg.h delete mode 100644 platforms/nuttx/nuttx-configs/px4nucleoF767ZI-v1/include/nsh_romfsimg.h delete mode 100644 platforms/nuttx/nuttx-configs/zubaxgnss-v1/Kconfig delete mode 100755 platforms/nuttx/nuttx-configs/zubaxgnss-v1/include/README.txt delete mode 100755 platforms/nuttx/nuttx-configs/zubaxgnss-v1/include/board.h delete mode 100644 platforms/nuttx/nuttx-configs/zubaxgnss-v1/nsh/defconfig delete mode 100644 platforms/nuttx/nuttx-configs/zubaxgnss-v1/scripts/ld.script create mode 100644 platforms/posix/cmake/Platform/Linux-arm-linux-gnueabihf-cortex-a53.cmake create mode 100644 platforms/posix/cmake/Platform/Linux-arm-linux-gnueabihf-cortex-a8.cmake create mode 100644 platforms/posix/cmake/Platform/Linux-arm-linux-gnueabihf-cortex-a9.cmake create mode 100644 platforms/posix/cmake/Toolchain-arm-linux-gnueabihf.cmake rename {cmake/toolchains => platforms/posix/cmake}/Toolchain-native.cmake (100%) create mode 100644 platforms/posix/cmake/px4_add_board_os.cmake create mode 100644 platforms/qurt/cmake/px4_add_board_os.cmake delete mode 100644 src/drivers/boards/px4flow-v2/board_config.h delete mode 100644 src/drivers/boards/px4flow-v2/init.c delete mode 100644 src/drivers/boards/px4flow-v2/led.c delete mode 100644 src/drivers/boards/zubaxgnss-v1/board_config.h delete mode 100644 src/drivers/boards/zubaxgnss-v1/gnss_init.c delete mode 100644 src/drivers/boards/zubaxgnss-v1/gnss_led.c rename src/{drivers/boards/px4flow-v2 => modules/commander/failure_detector}/CMakeLists.txt (93%) diff --git a/.ci/Jenkinsfile-SITL_tests b/.ci/Jenkinsfile-SITL_tests index 25a3aafb9c..2d092fec86 100644 --- a/.ci/Jenkinsfile-SITL_tests +++ b/.ci/Jenkinsfile-SITL_tests @@ -30,7 +30,7 @@ pipeline { sh('make distclean') sh "ccache -z" sh "git fetch --tags" - sh('make posix_sitl_default') + sh('make px4sitl_default') sh "ccache -s" } } @@ -47,8 +47,8 @@ pipeline { stage('unit tests') { steps { sh 'export' - sh 'make posix_sitl_default test_results_junit' - junit 'build/posix_sitl_default/JUnitTestResults.xml' + sh 'make px4sitl_default test_results_junit' + junit 'build/px4sitl_default/JUnitTestResults.xml' } } @@ -56,7 +56,7 @@ pipeline { steps { sh 'export' sh "ccache -z" - sh('make posix_sitl_default sitl_gazebo') + sh('make px4sitl_default sitl_gazebo') sh "ccache -s" } } @@ -64,8 +64,8 @@ pipeline { stage('package') { steps { sh 'export' - sh('make posix_sitl_default package') - stash(name: "px4_sitl_package", includes: "build/posix_sitl_default/*.bz2") + sh('make px4sitl_default package') + stash(name: "px4_sitl_package", includes: "build/px4sitl_default/*.bz2") } } @@ -176,7 +176,7 @@ pipeline { steps { sh 'export' sh 'make distclean' - sh 'make posix_sitl_default test_results_junit' + sh 'make px4sitl_default test_results_junit' withCredentials([string(credentialsId: 'FIRMWARE_CODECOV_TOKEN', variable: 'CODECOV_TOKEN')]) { sh 'curl -s https://codecov.io/bash | bash -s - -F unittest' } @@ -221,11 +221,11 @@ def createTestNode(Map test_def) { } unstash('px4_sitl_package') - sh('tar -xjpvf build/posix_sitl_default/px4-posix_sitl_default*.bz2') + sh('tar -xjpvf build/px4sitl_default/px4-px4sitl_default*.bz2') // run test try { - sh('px4-posix_sitl_default*/px4/test/rostest_px4_run.sh ' + test_def.test + ' mission:=' + test_def.mission + ' vehicle:=' + test_def.vehicle) + sh('px4-px4sitl_default*/px4/test/rostest_px4_run.sh ' + test_def.test + ' mission:=' + test_def.mission + ' vehicle:=' + test_def.vehicle) } catch (exc) { // save all test artifacts for debugging @@ -240,7 +240,7 @@ def createTestNode(Map test_def) { // process log data (with python code coverage) try { - sh('coverage run -p px4-posix_sitl_default*/px4/Tools/ecl_ekf/process_logdata_ekf.py .ros/log/*/*.ulg') + sh('coverage run -p px4-px4sitl_default*/px4/Tools/ecl_ekf/process_logdata_ekf.py .ros/log/*/*.ulg') } catch (exc) { // save log analysis artifacts for debugging archiveArtifacts(allowEmptyArchive: false, artifacts: '.ros/**/*.pdf, .ros/**/*.csv') @@ -249,7 +249,7 @@ def createTestNode(Map test_def) { } // upload log to flight review (https://logs.px4.io/) with python code coverage - sh('coverage run -p px4-posix_sitl_default*/px4/Tools/upload_log.py -q --description "${JOB_NAME}: ${STAGE_NAME}" --feedback "${JOB_NAME} ${CHANGE_TITLE} ${CHANGE_URL}" --source CI .ros/log/*/*.ulg') + sh('coverage run -p px4-px4sitl_default*/px4/Tools/upload_log.py -q --description "${JOB_NAME}: ${STAGE_NAME}" --feedback "${JOB_NAME} ${CHANGE_TITLE} ${CHANGE_URL}" --source CI .ros/log/*/*.ulg') // upload python code coverage to codecov.io sh 'curl -s https://codecov.io/bash | bash -s - -X gcov -F sitl_python_${STAGE_NAME}' @@ -257,7 +257,7 @@ def createTestNode(Map test_def) { } else { // non code coverage // process ekf log data try { - sh('px4-posix_sitl_default*/px4/Tools/ecl_ekf/process_logdata_ekf.py .ros/log/*/*.ulg') + sh('px4-px4sitl_default*/px4/Tools/ecl_ekf/process_logdata_ekf.py .ros/log/*/*.ulg') } catch (exc) { // save log analysis artifacts for debugging archiveArtifacts(allowEmptyArchive: false, artifacts: '.ros/**/*.pdf, .ros/**/*.csv') @@ -266,7 +266,7 @@ def createTestNode(Map test_def) { } // upload log to flight review (https://logs.px4.io/) - sh('px4-posix_sitl_default*/px4/Tools/upload_log.py -q --description "${JOB_NAME}: ${STAGE_NAME}" --feedback "${JOB_NAME} ${CHANGE_TITLE} ${CHANGE_URL}" --source CI .ros/log/*/*.ulg') + sh('px4-px4sitl_default*/px4/Tools/upload_log.py -q --description "${JOB_NAME}: ${STAGE_NAME}" --feedback "${JOB_NAME} ${CHANGE_TITLE} ${CHANGE_URL}" --source CI .ros/log/*/*.ulg') } if (!test_ok) { diff --git a/.ci/Jenkinsfile-compile b/.ci/Jenkinsfile-compile index a0c90fdc89..63d86451a3 100644 --- a/.ci/Jenkinsfile-compile +++ b/.ci/Jenkinsfile-compile @@ -18,8 +18,8 @@ pipeline { snapdragon: "lorenzmeier/px4-dev-snapdragon:2018-09-12" ] - // MAC OSX posix_sitl_default - build_nodes["posix_sitl_default (OSX)"] = { + // MAC OSX px4sitl_default + build_nodes["px4sitl_default (OSX)"] = { node("mac") { withEnv(["CCACHE_BASEDIR=${pwd()}"]) { stage("sitl (OSX)") { @@ -28,7 +28,7 @@ pipeline { sh('export') sh('make distclean') sh('ccache -z') - sh('make posix_sitl_default') + sh('make px4sitl_default') sh('ccache -s') sh('make tests') } @@ -43,7 +43,7 @@ pipeline { } } - // MAC OSX nuttx_px4fmu-v4pro_default + // MAC OSX px4fmu-v4pro_default build_nodes["px4fmu-v4pro_default (OSX)"] = { node("mac") { withEnv(["CCACHE_BASEDIR=${pwd()}"]) { @@ -53,7 +53,7 @@ pipeline { sh('export') sh('make distclean') sh('ccache -z') - sh('make nuttx_px4fmu-v4pro_default') + sh('make px4fmu-v4pro_default') sh('ccache -s') } catch (exc) { @@ -69,46 +69,46 @@ pipeline { // docker builds: def arch_builds = [ - target: ["posix_sitl_default"], + target: ["px4sitl_default"], image: docker_images.arch, archive: false ] def armhf_builds = [ - target: ["posix_ocpoc_ubuntu"], + target: ["aerotennaocpoc_ubuntu"], image: docker_images.armhf, archive: false ] def base_builds = [ - target: ["posix_sitl_rtps"], + target: ["px4sitl_rtps"], image: docker_images.base, archive: false ] def nuttx_builds_archive = [ target: ["px4fmu-v2_default", "px4fmu-v3_default", "px4fmu-v4_default", "px4fmu-v4pro_default", "px4fmu-v5_default", "px4fmu-v5_rtps", "px4fmu-v5_stackcheck", - "aerofc-v1_default", "aerocore2_default", "auav-x21_default", "av-x-v1_default", "crazyflie_default", "mindpx-v2_default", - "nxphlite-v3_default", "omnibus-f4sd_default"], + "intelaerofc-v1_default", "gumstixaerocore2_default", "auavx21_default", "avx-v1_default", "bitcrazecrazyflie_default", "airmindmindpx-v2_default", + "nxphlite-v3_default", "omnibusf4sd_default"], image: docker_images.nuttx, archive: true ] def nuttx_builds_other = [ - target: ["px4-same70xplained-v1_default", "px4-stm32f4discovery_default", "px4cannode-v1_default", - "px4esc-v1_default", "px4nucleoF767ZI-v1_default", "s2740vc-v1_default"], + target: ["atmelsame70xplained_default", "stm32f4discovery_default", "px4cannode-v1_default", + "px4esc-v1_default", "stmnucleo-F767ZI_default", "thiemars2740vc-v1_default"], image: docker_images.nuttx, archive: false ] def rpi_builds = [ - target: ["posix_rpi_cross", "posix_bebop_default"], + target: ["emlidnavio2_cross", "parrotbebop_default"], image: docker_images.rpi, archive: false ] def snapdragon_builds = [ - target: ["qurt_eagle_default", "posix_eagle_default"], + target: ["atlflighteagle_qurt-default", "atlflighteagle_default"], image: docker_images.snapdragon, archive: false ] diff --git a/.ci/Jenkinsfile-hardware b/.ci/Jenkinsfile-hardware index 5825efe7c7..e95c743d4b 100644 --- a/.ci/Jenkinsfile-hardware +++ b/.ci/Jenkinsfile-hardware @@ -18,10 +18,10 @@ pipeline { sh 'make distclean' sh 'ccache -z' sh 'git fetch --tags' - sh 'make nuttx_px4fmu-v2_test' + sh 'make px4fmu-v2_test' sh 'make sizes' sh 'ccache -s' - stash includes: 'build/nuttx_px4fmu-v2_test/nuttx_px4fmu-v2_test.elf', name: 'px4fmu-v2_test' + stash includes: 'build/px4fmu-v2_test/px4fmu-v2_test.elf', name: 'px4fmu-v2_test' stash includes: 'Tools/HIL/monitor_firmware_upload.py, Tools/HIL/run_tests.py', name: 'scripts-px4fmu-v2' } post { @@ -43,10 +43,10 @@ pipeline { sh 'make distclean' sh 'ccache -z' sh 'git fetch --tags' - sh 'make nuttx_px4fmu-v4_stackcheck' + sh 'make px4fmu-v4_stackcheck' sh 'make sizes' sh 'ccache -s' - stash includes: 'build/nuttx_px4fmu-v4_stackcheck/nuttx_px4fmu-v4_stackcheck.elf', name: 'px4fmu-v4_stackcheck' + stash includes: 'build/px4fmu-v4_stackcheck/px4fmu-v4_stackcheck.elf', name: 'px4fmu-v4_stackcheck' stash includes: 'Tools/HIL/monitor_firmware_upload.py, Tools/HIL/run_tests.py', name: 'scripts-px4fmu-v4' } post { @@ -82,7 +82,7 @@ pipeline { -ex "attach 1" \ -ex "load" \ -ex "kill" \ - build/nuttx_px4fmu-v2_test/nuttx_px4fmu-v2_test.elf + build/px4fmu-v2_test/px4fmu-v2_test.elf ''' sh './Tools/HIL/monitor_firmware_upload.py --device `find /dev/serial -name *Black_Magic_Probe_*-if02` --baudrate 57600' sh './Tools/HIL/run_tests.py --device `find /dev/serial -name *Black_Magic_Probe_*-if02`' @@ -116,7 +116,7 @@ pipeline { -ex "attach 1" \ -ex "load" \ -ex "kill" \ - build/nuttx_px4fmu-v4_stackcheck/nuttx_px4fmu-v4_stackcheck.elf + build/px4fmu-v4_stackcheck/px4fmu-v4_stackcheck.elf ''' sh './Tools/HIL/monitor_firmware_upload.py --device `find /dev/serial -name *Black_Magic_Probe_*-if02` --baudrate 57600' sh './Tools/HIL/run_tests.py --device `find /dev/serial -name *Black_Magic_Probe_*-if02`' diff --git a/.gitmodules b/.gitmodules index 20028c8155..112c186ef5 100644 --- a/.gitmodules +++ b/.gitmodules @@ -34,8 +34,8 @@ path = src/lib/ecl url = https://github.com/PX4/ecl.git branch = master -[submodule "cmake/cmake_hexagon"] - path = cmake/cmake_hexagon +[submodule "boards/atlflight/cmake_hexagon"] + path = boards/atlflight/cmake_hexagon url = https://github.com/ATLFlight/cmake_hexagon.git branch = master [submodule "src/drivers/gps/devices"] diff --git a/.travis.yml b/.travis.yml index fcc1e11f63..53399ae06e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,5 +28,5 @@ addons: description: "Build submitted via Travis CI" notification_email: ci@px4.io build_command_prepend: "make distclean" - build_command: "make posix_sitl_default" + build_command: "make px4sitl_default" branch_pattern: coverity_scan diff --git a/CMakeLists.txt b/CMakeLists.txt index b1e00ca630..fce4003d0d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,7 +40,7 @@ # * Common functions should be included in px_base.cmake. # # * OS/ board specific fucntions should be include in -# px_impl_${OS}.cmake or px4_impl_${OS}_${BOARD}.cmake. +# px_impl_${PX4_PLATFORM}.cmake or px4_impl_${PX4_PLATFORM}_${PX4_BOARD}.cmake. # # Formatting # --------------------------------------------------------------------------- @@ -92,9 +92,9 @@ # --------------------------------------------------------------------------- # # * If referencing a string variable, don't put it in quotes. -# Don't do "${OS}" STREQUAL "posix", -# instead type ${OS} STREQUAL "posix". This will throw an -# error when ${OS} is not defined instead of silently +# Don't do "${PX4_PLATFORM}" STREQUAL "posix", +# instead type ${PX4_PLATFORM} STREQUAL "posix". This will throw an +# error when ${PX4_PLATFORM} is not defined instead of silently # evaluating to false. # #============================================================================= @@ -104,12 +104,12 @@ cmake_minimum_required(VERSION 3.2 FATAL_ERROR) set(PX4_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}") set(PX4_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}") -list(APPEND CMAKE_MODULE_PATH "${PX4_SOURCE_DIR}/cmake") +list(APPEND CMAKE_MODULE_PATH ${PX4_SOURCE_DIR}/cmake) #============================================================================= # git # -include(common/px4_git) +include(px4_git) execute_process( COMMAND git describe --always --tags @@ -132,13 +132,90 @@ define_property(GLOBAL PROPERTY PX4_MODULE_PATHS # configuration # -set(CONFIG "posix_sitl_default" CACHE STRING "desired configuration") +set(CONFIG "px4sitl_default" CACHE STRING "desired configuration") -string(REPLACE "_" ";" config_args ${CONFIG}) -list(GET config_args 0 OS) -list(GET config_args 1 BOARD) -list(GET config_args 2 LABEL) +set(config_module_list) +set(config_df_driver_list) +# find PX4 config +# look for in tree board config that matches CONFIG input +if(NOT PX4_CONFIG_FILE) + + file(GLOB_RECURSE board_configs + RELATIVE "${PX4_SOURCE_DIR}/boards" + "boards/*.cmake" + ) + + set(PX4_CONFIGS ${board_configs} CACHE STRINGS "PX4 board configs" FORCE) + + foreach(filename ${board_configs}) + # parse input CONFIG into components to match with existing in tree configs + # the platform prefix (eg nuttx_) is historical, and removed if present + string(REPLACE ".cmake" "" filename_stripped ${filename}) + string(REPLACE "/" ";" config ${filename_stripped}) + list(LENGTH config config_len) + + if(${config_len} EQUAL 3) + + + list(GET config 0 vendor) + list(GET config 1 model) + list(GET config 2 label) + + set(board "${vendor}${model}") + + # __