cmake merge linux cross compile targets (cross + native) and cleanup

- consolidate cross and native variants (only a single default is needed)
   - beaglebone_blue_cross + beaglebone_blue_native => beaglebone_blue_default
   - emlid_navio2_cross + emlid_navio2_native => emlid_navio2_default
   - px4_raspberrypi_cross + px4_raspberrypi_native => px4_raspberrypi_default
 - move upload helpers to cmake/upload.cmake
This commit is contained in:
Daniel Agar
2020-01-05 14:03:57 -05:00
committed by GitHub
parent aaf5670e7d
commit 7241eebd80
22 changed files with 290 additions and 352 deletions

View File

@@ -34,15 +34,3 @@
add_subdirectory(navio_adc)
add_subdirectory(navio_rgbled)
add_subdirectory(navio_sysfs_rc_in)
############################################################################
# Upload
############################################################################
add_custom_target(upload
COMMAND rsync -arh --progress ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} ${PX4_SOURCE_DIR}/posix-configs/rpi/*.config ${PX4_SOURCE_DIR}/ROMFS pi@"$ENV{AUTOPILOT_HOST}":/home/pi
DEPENDS px4
COMMENT "uploading px4"
USES_TERMINAL
)