From 8ff237c69f0a0786de39980f936ae4f1d2abb540 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Tue, 27 Sep 2016 16:54:37 +0200 Subject: [PATCH] Remove size optimization for individual modules It makes more sense to set the optimization flags on a platform basis instead of individually for each module. This allows for different optimization options for SITL, NuttX, Snapdragon, etc. --- src/drivers/airspeed/CMakeLists.txt | 3 +-- src/drivers/ardrone_interface/CMakeLists.txt | 3 +-- src/drivers/batt_smbus/CMakeLists.txt | 3 +-- src/drivers/blinkm/CMakeLists.txt | 3 +-- src/drivers/bma180/CMakeLists.txt | 3 +-- src/drivers/bmi160/CMakeLists.txt | 3 +-- src/drivers/bmp280/CMakeLists.txt | 3 +-- src/drivers/boards/aerocore/CMakeLists.txt | 1 - src/drivers/boards/asc-v1/CMakeLists.txt | 3 +-- src/drivers/boards/mindpx-v2/CMakeLists.txt | 3 +-- src/drivers/boards/px4fmu-v1/CMakeLists.txt | 3 +-- src/drivers/boards/px4fmu-v2/CMakeLists.txt | 1 - src/drivers/boards/px4fmu-v4/CMakeLists.txt | 3 +-- src/drivers/boards/px4io-v1/CMakeLists.txt | 3 +-- src/drivers/boards/px4io-v2/CMakeLists.txt | 3 +-- src/drivers/boards/sitl/CMakeLists.txt | 3 +-- src/drivers/boards/tap-v1/CMakeLists.txt | 3 +-- src/drivers/bst/CMakeLists.txt | 3 +-- src/drivers/camera_trigger/CMakeLists.txt | 3 +-- src/drivers/ets_airspeed/CMakeLists.txt | 3 +-- src/drivers/frsky_telemetry/CMakeLists.txt | 1 - src/drivers/gps/CMakeLists.txt | 1 - src/drivers/hc_sr04/CMakeLists.txt | 3 +-- src/drivers/hmc5883/CMakeLists.txt | 3 +-- src/drivers/hott/CMakeLists.txt | 4 +--- src/drivers/hott/hott_sensors/CMakeLists.txt | 3 +-- src/drivers/hott/hott_telemetry/CMakeLists.txt | 3 +-- src/drivers/irlock/CMakeLists.txt | 3 +-- src/drivers/l3gd20/CMakeLists.txt | 3 +-- src/drivers/led/CMakeLists.txt | 3 +-- src/drivers/lis3mdl/CMakeLists.txt | 3 +-- src/drivers/ll40ls/CMakeLists.txt | 3 +-- src/drivers/lps25h/CMakeLists.txt | 3 +-- src/drivers/lsm303d/CMakeLists.txt | 3 +-- src/drivers/mb12xx/CMakeLists.txt | 3 +-- src/drivers/md25/CMakeLists.txt | 3 +-- src/drivers/meas_airspeed/CMakeLists.txt | 3 +-- src/drivers/mkblctrl/CMakeLists.txt | 3 +-- src/drivers/mpu6000/CMakeLists.txt | 3 +-- src/drivers/mpu6500/CMakeLists.txt | 3 +-- src/drivers/mpu9250/CMakeLists.txt | 1 - src/drivers/ms5611/CMakeLists.txt | 3 +-- src/drivers/navio_gpio/CMakeLists.txt | 2 +- src/drivers/navio_rgbled/CMakeLists.txt | 2 +- src/drivers/navio_sysfs_pwm_out/CMakeLists.txt | 1 - src/drivers/navio_sysfs_rc_in/CMakeLists.txt | 2 +- src/drivers/oreoled/CMakeLists.txt | 3 +-- src/drivers/pca8574/CMakeLists.txt | 3 +-- src/drivers/pwm_out_rc_in/CMakeLists.txt | 1 - src/drivers/pwm_out_sim/CMakeLists.txt | 3 +-- src/drivers/px4flow/CMakeLists.txt | 3 +-- src/drivers/px4fmu/CMakeLists.txt | 3 +-- src/drivers/px4io/CMakeLists.txt | 3 +-- src/drivers/rgbled/CMakeLists.txt | 3 +-- src/drivers/rgbled_pwm/CMakeLists.txt | 3 +-- src/drivers/roboclaw/CMakeLists.txt | 3 +-- src/drivers/sf0x/CMakeLists.txt | 3 +-- src/drivers/sf1xx/CMakeLists.txt | 3 +-- src/drivers/snapdragon_rc_pwm/CMakeLists.txt | 3 +-- src/drivers/srf02/CMakeLists.txt | 3 +-- src/drivers/srf02_i2c/CMakeLists.txt | 3 +-- src/drivers/stm32/CMakeLists.txt | 3 +-- src/drivers/stm32/adc/CMakeLists.txt | 3 +-- src/drivers/stm32/tone_alarm/CMakeLists.txt | 3 +-- src/drivers/tap_esc/CMakeLists.txt | 3 +-- src/drivers/test_ppm/CMakeLists.txt | 3 +-- src/drivers/trone/CMakeLists.txt | 3 +-- src/examples/ekf_att_pos_estimator/CMakeLists.txt | 4 ++-- src/lib/controllib/CMakeLists.txt | 3 +-- src/lib/conversion/CMakeLists.txt | 3 +-- src/lib/ecl | 2 +- src/lib/external_lgpl/CMakeLists.txt | 3 +-- src/lib/geo_lookup/CMakeLists.txt | 3 +-- src/lib/launchdetection/CMakeLists.txt | 3 +-- src/lib/mathlib/CMakeLists.txt | 3 +-- src/lib/rc/CMakeLists.txt | 3 +-- src/lib/runway_takeoff/CMakeLists.txt | 3 +-- src/lib/tailsitter_recovery/CMakeLists.txt | 3 +-- src/lib/terrain_estimation/CMakeLists.txt | 3 +-- src/modules/attitude_estimator_q/CMakeLists.txt | 3 +-- src/modules/bottle_drop/CMakeLists.txt | 3 +-- src/modules/commander/CMakeLists.txt | 3 +-- src/modules/controllib_test/CMakeLists.txt | 3 +-- src/modules/dataman/CMakeLists.txt | 3 +-- src/modules/dummy/CMakeLists.txt | 3 +-- src/modules/ekf2/CMakeLists.txt | 4 ++-- src/modules/fw_att_control/CMakeLists.txt | 3 +-- src/modules/fw_pos_control_l1/CMakeLists.txt | 4 ++-- src/modules/gpio_led/CMakeLists.txt | 3 +-- src/modules/land_detector/CMakeLists.txt | 3 +-- src/modules/load_mon/CMakeLists.txt | 2 +- src/modules/local_position_estimator/CMakeLists.txt | 4 ++-- src/modules/logger/CMakeLists.txt | 4 ++-- src/modules/mavlink/CMakeLists.txt | 3 +-- src/modules/mavlink/mavlink_tests/CMakeLists.txt | 3 +-- src/modules/mc_att_control/CMakeLists.txt | 4 ++-- src/modules/mc_pos_control/CMakeLists.txt | 4 ++-- src/modules/muorb/adsp/CMakeLists.txt | 3 +-- src/modules/navigator/CMakeLists.txt | 3 +-- src/modules/param/CMakeLists.txt | 3 +-- src/modules/position_estimator_inav/CMakeLists.txt | 4 ++-- src/modules/sdlog2/CMakeLists.txt | 3 +-- src/modules/sensors/CMakeLists.txt | 1 - src/modules/systemlib/CMakeLists.txt | 1 - src/modules/uORB/CMakeLists.txt | 3 +-- src/modules/uORB/uORB_tests/CMakeLists.txt | 3 +-- src/modules/uavcan/CMakeLists.txt | 3 +-- src/modules/unit_test/CMakeLists.txt | 3 +-- src/modules/vtol_att_control/CMakeLists.txt | 4 ++-- src/platforms/nuttx/CMakeLists.txt | 3 +-- src/platforms/nuttx/px4_layer/CMakeLists.txt | 3 +-- src/platforms/posix/drivers/adcsim/CMakeLists.txt | 3 +-- .../posix/drivers/airspeedsim/CMakeLists.txt | 3 +-- src/platforms/posix/drivers/barosim/CMakeLists.txt | 3 +-- src/platforms/posix/drivers/gpssim/CMakeLists.txt | 3 +-- src/platforms/posix/drivers/gyrosim/CMakeLists.txt | 3 +-- src/platforms/posix/drivers/ledsim/CMakeLists.txt | 3 +-- src/platforms/posix/drivers/rgbledsim/CMakeLists.txt | 3 +-- .../posix/drivers/tonealrmsim/CMakeLists.txt | 3 +-- src/platforms/posix/px4_layer/CMakeLists.txt | 1 - src/platforms/posix/work_queue/CMakeLists.txt | 3 +-- src/platforms/qurt/fc_addon/mpu_spi/CMakeLists.txt | 8 ++++---- .../qurt/fc_addon/rc_receiver/CMakeLists.txt | 8 ++++---- src/platforms/qurt/fc_addon/uart_esc/CMakeLists.txt | 12 ++++++------ src/platforms/qurt/px4_layer/CMakeLists.txt | 1 - src/systemcmds/bl_update/CMakeLists.txt | 3 +-- src/systemcmds/config/CMakeLists.txt | 3 +-- src/systemcmds/dumpfile/CMakeLists.txt | 3 +-- src/systemcmds/esc_calib/CMakeLists.txt | 3 +-- src/systemcmds/i2c/CMakeLists.txt | 3 +-- src/systemcmds/mixer/CMakeLists.txt | 5 ++--- src/systemcmds/motor_test/CMakeLists.txt | 3 +-- src/systemcmds/mtd/CMakeLists.txt | 3 +-- src/systemcmds/nshterm/CMakeLists.txt | 3 +-- src/systemcmds/param/CMakeLists.txt | 3 +-- src/systemcmds/perf/CMakeLists.txt | 3 +-- src/systemcmds/pwm/CMakeLists.txt | 3 +-- src/systemcmds/reboot/CMakeLists.txt | 3 +-- src/systemcmds/reflect/CMakeLists.txt | 3 +-- src/systemcmds/sd_bench/CMakeLists.txt | 3 +-- src/systemcmds/tests/CMakeLists.txt | 1 - src/systemcmds/top/CMakeLists.txt | 3 +-- src/systemcmds/topic_listener/CMakeLists.txt | 3 +-- src/systemcmds/usb_connected/CMakeLists.txt | 3 +-- src/systemcmds/ver/CMakeLists.txt | 3 +-- 145 files changed, 154 insertions(+), 283 deletions(-) diff --git a/src/drivers/airspeed/CMakeLists.txt b/src/drivers/airspeed/CMakeLists.txt index 81a8f61113..6a80c1c2b6 100644 --- a/src/drivers/airspeed/CMakeLists.txt +++ b/src/drivers/airspeed/CMakeLists.txt @@ -33,10 +33,9 @@ px4_add_module( MODULE drivers__airspeed COMPILE_FLAGS - -Os SRCS airspeed.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/ardrone_interface/CMakeLists.txt b/src/drivers/ardrone_interface/CMakeLists.txt index ac3de51b65..1cda1ba714 100644 --- a/src/drivers/ardrone_interface/CMakeLists.txt +++ b/src/drivers/ardrone_interface/CMakeLists.txt @@ -35,11 +35,10 @@ px4_add_module( MAIN ardrone_interface STACK_MAIN 1200 COMPILE_FLAGS - -Os SRCS ardrone_interface.c ardrone_motor_control.c DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/batt_smbus/CMakeLists.txt b/src/drivers/batt_smbus/CMakeLists.txt index d1ee69d45d..fb20856ec2 100644 --- a/src/drivers/batt_smbus/CMakeLists.txt +++ b/src/drivers/batt_smbus/CMakeLists.txt @@ -34,10 +34,9 @@ px4_add_module( MODULE drivers__batt_smbus MAIN batt_smbus COMPILE_FLAGS - -Os SRCS batt_smbus.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/blinkm/CMakeLists.txt b/src/drivers/blinkm/CMakeLists.txt index 599913acaf..94f7942c5d 100644 --- a/src/drivers/blinkm/CMakeLists.txt +++ b/src/drivers/blinkm/CMakeLists.txt @@ -34,10 +34,9 @@ px4_add_module( MODULE drivers__blinkm MAIN blinkm COMPILE_FLAGS - -Os SRCS blinkm.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/bma180/CMakeLists.txt b/src/drivers/bma180/CMakeLists.txt index 7df83173fd..0a05b6da80 100644 --- a/src/drivers/bma180/CMakeLists.txt +++ b/src/drivers/bma180/CMakeLists.txt @@ -34,10 +34,9 @@ px4_add_module( MODULE drivers__bma180 MAIN bma180 COMPILE_FLAGS - -Os SRCS bma180.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/bmi160/CMakeLists.txt b/src/drivers/bmi160/CMakeLists.txt index 58a74dd300..8ef6b1d70a 100644 --- a/src/drivers/bmi160/CMakeLists.txt +++ b/src/drivers/bmi160/CMakeLists.txt @@ -36,7 +36,6 @@ px4_add_module( STACK_MAIN 1200 COMPILE_FLAGS -Weffc++ - -Os SRCS bmi160.cpp bmi160_gyro.cpp @@ -44,4 +43,4 @@ px4_add_module( DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/bmp280/CMakeLists.txt b/src/drivers/bmp280/CMakeLists.txt index 1199aa1d75..d35a8c2666 100644 --- a/src/drivers/bmp280/CMakeLists.txt +++ b/src/drivers/bmp280/CMakeLists.txt @@ -35,11 +35,10 @@ px4_add_module( MODULE drivers__bmp280 MAIN bmp280 COMPILE_FLAGS - -Os SRCS bmp280_spi.cpp bmp280.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/boards/aerocore/CMakeLists.txt b/src/drivers/boards/aerocore/CMakeLists.txt index 36d865a9da..77e1ebf968 100644 --- a/src/drivers/boards/aerocore/CMakeLists.txt +++ b/src/drivers/boards/aerocore/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__boards__aerocore COMPILE_FLAGS - -Os SRCS ../common/board_name.c aerocore_init.c diff --git a/src/drivers/boards/asc-v1/CMakeLists.txt b/src/drivers/boards/asc-v1/CMakeLists.txt index 569073455e..538af2fb2f 100644 --- a/src/drivers/boards/asc-v1/CMakeLists.txt +++ b/src/drivers/boards/asc-v1/CMakeLists.txt @@ -34,7 +34,6 @@ px4_add_module( MODULE drivers__boards__asc-v1 COMPILE_FLAGS - -Os SRCS ../common/board_name.c asc_init.c @@ -45,4 +44,4 @@ px4_add_module( DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/boards/mindpx-v2/CMakeLists.txt b/src/drivers/boards/mindpx-v2/CMakeLists.txt index 06598cda39..61e380a207 100644 --- a/src/drivers/boards/mindpx-v2/CMakeLists.txt +++ b/src/drivers/boards/mindpx-v2/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__boards__mindpx-v2 COMPILE_FLAGS - -Os SRCS ../common/board_dma_alloc.c ../common/board_name.c @@ -46,4 +45,4 @@ px4_add_module( DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/boards/px4fmu-v1/CMakeLists.txt b/src/drivers/boards/px4fmu-v1/CMakeLists.txt index c10b3e2b29..05cca55e41 100644 --- a/src/drivers/boards/px4fmu-v1/CMakeLists.txt +++ b/src/drivers/boards/px4fmu-v1/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__boards__px4fmu-v1 COMPILE_FLAGS - -Os SRCS ../common/board_name.c px4fmu_can.c @@ -45,4 +44,4 @@ px4_add_module( DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/boards/px4fmu-v2/CMakeLists.txt b/src/drivers/boards/px4fmu-v2/CMakeLists.txt index e53cc92ac0..e597a786cb 100644 --- a/src/drivers/boards/px4fmu-v2/CMakeLists.txt +++ b/src/drivers/boards/px4fmu-v2/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__boards__px4fmu-v2 COMPILE_FLAGS - -Os SRCS ../common/board_name.c ../common/board_dma_alloc.c diff --git a/src/drivers/boards/px4fmu-v4/CMakeLists.txt b/src/drivers/boards/px4fmu-v4/CMakeLists.txt index 8370a7c857..f90f833a56 100644 --- a/src/drivers/boards/px4fmu-v4/CMakeLists.txt +++ b/src/drivers/boards/px4fmu-v4/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__boards__px4fmu-v4 COMPILE_FLAGS - -Os SRCS ../common/board_name.c ../common/board_dma_alloc.c @@ -46,4 +45,4 @@ px4_add_module( DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/boards/px4io-v1/CMakeLists.txt b/src/drivers/boards/px4io-v1/CMakeLists.txt index 420d7d2ac7..bf2f9117fd 100644 --- a/src/drivers/boards/px4io-v1/CMakeLists.txt +++ b/src/drivers/boards/px4io-v1/CMakeLists.txt @@ -33,11 +33,10 @@ px4_add_module( MODULE drivers__boards__px4io-v1 COMPILE_FLAGS - -Os SRCS px4io_init.c px4io_timer_config.c DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/boards/px4io-v2/CMakeLists.txt b/src/drivers/boards/px4io-v2/CMakeLists.txt index 5dc1324604..01d9f37205 100644 --- a/src/drivers/boards/px4io-v2/CMakeLists.txt +++ b/src/drivers/boards/px4io-v2/CMakeLists.txt @@ -33,11 +33,10 @@ px4_add_module( MODULE drivers__boards__px4io-v2 COMPILE_FLAGS - -Os SRCS px4iov2_init.c px4iov2_timer_config.c DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/boards/sitl/CMakeLists.txt b/src/drivers/boards/sitl/CMakeLists.txt index 8d7d7bee34..b6ea65a1fd 100644 --- a/src/drivers/boards/sitl/CMakeLists.txt +++ b/src/drivers/boards/sitl/CMakeLists.txt @@ -33,10 +33,9 @@ px4_add_module( MODULE drivers__boards__sitl COMPILE_FLAGS - -Os SRCS sitl_led.c DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/boards/tap-v1/CMakeLists.txt b/src/drivers/boards/tap-v1/CMakeLists.txt index a2adb6c876..93942a0e69 100644 --- a/src/drivers/boards/tap-v1/CMakeLists.txt +++ b/src/drivers/boards/tap-v1/CMakeLists.txt @@ -34,7 +34,6 @@ px4_add_module( MODULE drivers__boards__tap-v1 COMPILE_FLAGS - -Os SRCS ../common/board_name.c tap_init.c @@ -48,4 +47,4 @@ px4_add_module( DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/bst/CMakeLists.txt b/src/drivers/bst/CMakeLists.txt index f7e5d8ebc3..7a638c7ed5 100644 --- a/src/drivers/bst/CMakeLists.txt +++ b/src/drivers/bst/CMakeLists.txt @@ -35,10 +35,9 @@ px4_add_module( MAIN bst STACK_MAIN 1200 COMPILE_FLAGS - -Os SRCS bst.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/camera_trigger/CMakeLists.txt b/src/drivers/camera_trigger/CMakeLists.txt index 1a1491dbe3..dd4980b07a 100644 --- a/src/drivers/camera_trigger/CMakeLists.txt +++ b/src/drivers/camera_trigger/CMakeLists.txt @@ -35,7 +35,6 @@ px4_add_module( MAIN camera_trigger STACK_MAIN 1200 COMPILE_FLAGS - -Os SRCS camera_trigger.cpp camera_trigger_params.c @@ -45,4 +44,4 @@ px4_add_module( DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/ets_airspeed/CMakeLists.txt b/src/drivers/ets_airspeed/CMakeLists.txt index c89279f26d..9055085f00 100644 --- a/src/drivers/ets_airspeed/CMakeLists.txt +++ b/src/drivers/ets_airspeed/CMakeLists.txt @@ -35,10 +35,9 @@ px4_add_module( MAIN ets_airspeed STACK_MAIN 1200 COMPILE_FLAGS - -Os SRCS ets_airspeed.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/frsky_telemetry/CMakeLists.txt b/src/drivers/frsky_telemetry/CMakeLists.txt index ceda3d347a..6f2293ffc9 100644 --- a/src/drivers/frsky_telemetry/CMakeLists.txt +++ b/src/drivers/frsky_telemetry/CMakeLists.txt @@ -35,7 +35,6 @@ px4_add_module( MAIN frsky_telemetry STACK_MAIN 1200 COMPILE_FLAGS - -Os SRCS frsky_data.c sPort_data.c diff --git a/src/drivers/gps/CMakeLists.txt b/src/drivers/gps/CMakeLists.txt index 8e1ec4ece8..d22e084820 100644 --- a/src/drivers/gps/CMakeLists.txt +++ b/src/drivers/gps/CMakeLists.txt @@ -35,7 +35,6 @@ px4_add_module( MAIN gps STACK_MAIN 1200 COMPILE_FLAGS - -Os SRCS gps.cpp devices/src/gps_helper.cpp diff --git a/src/drivers/hc_sr04/CMakeLists.txt b/src/drivers/hc_sr04/CMakeLists.txt index ef127f0bed..a1308e0306 100644 --- a/src/drivers/hc_sr04/CMakeLists.txt +++ b/src/drivers/hc_sr04/CMakeLists.txt @@ -35,10 +35,9 @@ px4_add_module( MAIN hc_sr04 STACK_MAIN 1200 COMPILE_FLAGS - -Os SRCS hc_sr04.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/hmc5883/CMakeLists.txt b/src/drivers/hmc5883/CMakeLists.txt index 63f7cd2862..a2fa931604 100644 --- a/src/drivers/hmc5883/CMakeLists.txt +++ b/src/drivers/hmc5883/CMakeLists.txt @@ -36,7 +36,6 @@ px4_add_module( STACK_MAIN 1200 COMPILE_FLAGS -Weffc++ - -Os SRCS hmc5883_i2c.cpp hmc5883_spi.cpp @@ -44,4 +43,4 @@ px4_add_module( DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/hott/CMakeLists.txt b/src/drivers/hott/CMakeLists.txt index b309930001..436c31c84d 100644 --- a/src/drivers/hott/CMakeLists.txt +++ b/src/drivers/hott/CMakeLists.txt @@ -30,16 +30,14 @@ # POSSIBILITY OF SUCH DAMAGE. # ############################################################################ -set(MODULE_CFLAGS -Os) list(APPEND MODULE_CFLAGS -Wframe-larger-than=1100) px4_add_module( MODULE drivers__hott COMPILE_FLAGS - ${MODULE_CFLAGS} SRCS messages.cpp comms.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/hott/hott_sensors/CMakeLists.txt b/src/drivers/hott/hott_sensors/CMakeLists.txt index 6d9b9b6c47..9a6f458a22 100644 --- a/src/drivers/hott/hott_sensors/CMakeLists.txt +++ b/src/drivers/hott/hott_sensors/CMakeLists.txt @@ -34,10 +34,9 @@ px4_add_module( MODULE drivers__hott__hott_sensors MAIN hott_sensors COMPILE_FLAGS - -Os SRCS hott_sensors.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/hott/hott_telemetry/CMakeLists.txt b/src/drivers/hott/hott_telemetry/CMakeLists.txt index b86ef91cb3..57ac30197f 100644 --- a/src/drivers/hott/hott_telemetry/CMakeLists.txt +++ b/src/drivers/hott/hott_telemetry/CMakeLists.txt @@ -34,10 +34,9 @@ px4_add_module( MODULE drivers__hott__hott_telemetry MAIN hott_telemetry COMPILE_FLAGS - -Os SRCS hott_telemetry.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/irlock/CMakeLists.txt b/src/drivers/irlock/CMakeLists.txt index d821afb3b6..22b101d3a7 100644 --- a/src/drivers/irlock/CMakeLists.txt +++ b/src/drivers/irlock/CMakeLists.txt @@ -34,10 +34,9 @@ px4_add_module( MODULE drivers__irlock MAIN irlock COMPILE_FLAGS - -Os SRCS irlock.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/l3gd20/CMakeLists.txt b/src/drivers/l3gd20/CMakeLists.txt index e02a75e933..f398fcd439 100644 --- a/src/drivers/l3gd20/CMakeLists.txt +++ b/src/drivers/l3gd20/CMakeLists.txt @@ -36,10 +36,9 @@ px4_add_module( STACK_MAIN 1200 COMPILE_FLAGS -Weffc++ - -Os SRCS l3gd20.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/led/CMakeLists.txt b/src/drivers/led/CMakeLists.txt index 2279751d8c..8264c72df9 100644 --- a/src/drivers/led/CMakeLists.txt +++ b/src/drivers/led/CMakeLists.txt @@ -33,10 +33,9 @@ px4_add_module( MODULE drivers__led COMPILE_FLAGS - -Os SRCS led.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/lis3mdl/CMakeLists.txt b/src/drivers/lis3mdl/CMakeLists.txt index d97e1dc221..1581c238b4 100644 --- a/src/drivers/lis3mdl/CMakeLists.txt +++ b/src/drivers/lis3mdl/CMakeLists.txt @@ -36,7 +36,6 @@ px4_add_module( STACK_MAIN 1200 COMPILE_FLAGS -Weffc++ - -Os SRCS lis3mdl_i2c.cpp lis3mdl_spi.cpp @@ -44,4 +43,4 @@ px4_add_module( DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/ll40ls/CMakeLists.txt b/src/drivers/ll40ls/CMakeLists.txt index e8f6a9af96..666b7a1468 100644 --- a/src/drivers/ll40ls/CMakeLists.txt +++ b/src/drivers/ll40ls/CMakeLists.txt @@ -34,7 +34,6 @@ px4_add_module( MODULE drivers__ll40ls MAIN ll40ls COMPILE_FLAGS - -Os SRCS ll40ls.cpp LidarLite.cpp @@ -43,4 +42,4 @@ px4_add_module( DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/lps25h/CMakeLists.txt b/src/drivers/lps25h/CMakeLists.txt index cabae2165c..db8edefebe 100644 --- a/src/drivers/lps25h/CMakeLists.txt +++ b/src/drivers/lps25h/CMakeLists.txt @@ -36,7 +36,6 @@ px4_add_module( STACK_MAIN 1200 COMPILE_FLAGS -Weffc++ - -Os SRCS lps25h.cpp lps25h_i2c.cpp @@ -45,4 +44,4 @@ px4_add_module( DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/lsm303d/CMakeLists.txt b/src/drivers/lsm303d/CMakeLists.txt index d2f43526ba..96794af060 100644 --- a/src/drivers/lsm303d/CMakeLists.txt +++ b/src/drivers/lsm303d/CMakeLists.txt @@ -36,10 +36,9 @@ px4_add_module( STACK_MAIN 1200 COMPILE_FLAGS -Weffc++ - -Os SRCS lsm303d.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/mb12xx/CMakeLists.txt b/src/drivers/mb12xx/CMakeLists.txt index 3517cf4eb0..37b7813234 100644 --- a/src/drivers/mb12xx/CMakeLists.txt +++ b/src/drivers/mb12xx/CMakeLists.txt @@ -34,10 +34,9 @@ px4_add_module( MODULE drivers__mb12xx MAIN mb12xx COMPILE_FLAGS - -Os SRCS mb12xx.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/md25/CMakeLists.txt b/src/drivers/md25/CMakeLists.txt index d57ff5b4f5..12e740e614 100644 --- a/src/drivers/md25/CMakeLists.txt +++ b/src/drivers/md25/CMakeLists.txt @@ -34,11 +34,10 @@ px4_add_module( MODULE drivers__md25 MAIN md25 COMPILE_FLAGS - -Os SRCS md25.cpp md25_main.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/meas_airspeed/CMakeLists.txt b/src/drivers/meas_airspeed/CMakeLists.txt index fe997e1681..a1b153affb 100644 --- a/src/drivers/meas_airspeed/CMakeLists.txt +++ b/src/drivers/meas_airspeed/CMakeLists.txt @@ -36,10 +36,9 @@ px4_add_module( STACK_MAIN 1200 COMPILE_FLAGS -Weffc++ - -Os SRCS meas_airspeed.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/mkblctrl/CMakeLists.txt b/src/drivers/mkblctrl/CMakeLists.txt index 1a711bdfa0..bdd223a92b 100644 --- a/src/drivers/mkblctrl/CMakeLists.txt +++ b/src/drivers/mkblctrl/CMakeLists.txt @@ -34,11 +34,10 @@ px4_add_module( MODULE drivers__mkblctrl MAIN mkblctrl COMPILE_FLAGS - -Os SRCS mkblctrl.cpp mkblctrl_params.c DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/mpu6000/CMakeLists.txt b/src/drivers/mpu6000/CMakeLists.txt index 290ff79917..1c7f33d23a 100644 --- a/src/drivers/mpu6000/CMakeLists.txt +++ b/src/drivers/mpu6000/CMakeLists.txt @@ -36,7 +36,6 @@ px4_add_module( STACK_MAIN 1400 COMPILE_FLAGS -Weffc++ - -Os SRCS mpu6000.cpp mpu6000_i2c.cpp @@ -44,4 +43,4 @@ px4_add_module( DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/mpu6500/CMakeLists.txt b/src/drivers/mpu6500/CMakeLists.txt index b89fd7c487..85d8706cb4 100644 --- a/src/drivers/mpu6500/CMakeLists.txt +++ b/src/drivers/mpu6500/CMakeLists.txt @@ -36,10 +36,9 @@ px4_add_module( STACK_MAIN 1200 COMPILE_FLAGS -Weffc++ - -Os SRCS mpu6500.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/mpu9250/CMakeLists.txt b/src/drivers/mpu9250/CMakeLists.txt index 98fc65a551..c37351b768 100644 --- a/src/drivers/mpu9250/CMakeLists.txt +++ b/src/drivers/mpu9250/CMakeLists.txt @@ -36,7 +36,6 @@ px4_add_module( STACK_MAIN 1200 COMPILE_FLAGS -Weffc++ - -Os SRCS mpu9250.cpp mpu9250_i2c.cpp diff --git a/src/drivers/ms5611/CMakeLists.txt b/src/drivers/ms5611/CMakeLists.txt index 1c5ebbb673..5c6e1559a0 100644 --- a/src/drivers/ms5611/CMakeLists.txt +++ b/src/drivers/ms5611/CMakeLists.txt @@ -41,9 +41,8 @@ px4_add_module( MAIN ms5611 STACK_MAIN 1200 COMPILE_FLAGS - -Os SRCS ${srcs} DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/navio_gpio/CMakeLists.txt b/src/drivers/navio_gpio/CMakeLists.txt index 79b33fb737..7430c6cf01 100644 --- a/src/drivers/navio_gpio/CMakeLists.txt +++ b/src/drivers/navio_gpio/CMakeLists.txt @@ -34,7 +34,7 @@ px4_add_module( MODULE drivers__navio_gpio MAIN navio_gpio STACK_MAIN 1200 - COMPILE_FLAGS -Os + COMPILE_FLAGS SRCS navio_gpio.cpp DEPENDS diff --git a/src/drivers/navio_rgbled/CMakeLists.txt b/src/drivers/navio_rgbled/CMakeLists.txt index 998a840e69..26b3e587f5 100644 --- a/src/drivers/navio_rgbled/CMakeLists.txt +++ b/src/drivers/navio_rgbled/CMakeLists.txt @@ -35,7 +35,7 @@ include_directories(../navio_gpio) px4_add_module( MODULE drivers__navio_rgbled MAIN navio_rgbled - COMPILE_FLAGS -Os + COMPILE_FLAGS SRCS navio_rgbled.cpp DEPENDS diff --git a/src/drivers/navio_sysfs_pwm_out/CMakeLists.txt b/src/drivers/navio_sysfs_pwm_out/CMakeLists.txt index 36841dbe6d..135afd57b2 100644 --- a/src/drivers/navio_sysfs_pwm_out/CMakeLists.txt +++ b/src/drivers/navio_sysfs_pwm_out/CMakeLists.txt @@ -34,7 +34,6 @@ px4_add_module( MODULE drivers__navio_sysfs_pwm_out MAIN navio_sysfs_pwm_out COMPILE_FLAGS - -Os SRCS navio_sysfs_pwm_out.cpp DEPENDS diff --git a/src/drivers/navio_sysfs_rc_in/CMakeLists.txt b/src/drivers/navio_sysfs_rc_in/CMakeLists.txt index 03910a27ff..4859a2d348 100644 --- a/src/drivers/navio_sysfs_rc_in/CMakeLists.txt +++ b/src/drivers/navio_sysfs_rc_in/CMakeLists.txt @@ -34,7 +34,7 @@ px4_add_module( MODULE drivers__navio_sysfs_rc_in MAIN navio_sysfs_rc_in STACK_MAIN 1200 - COMPILE_FLAGS -Os + COMPILE_FLAGS SRCS navio_sysfs_rc_in.cpp DEPENDS diff --git a/src/drivers/oreoled/CMakeLists.txt b/src/drivers/oreoled/CMakeLists.txt index ea2f774cc8..55b96b3d9d 100644 --- a/src/drivers/oreoled/CMakeLists.txt +++ b/src/drivers/oreoled/CMakeLists.txt @@ -35,10 +35,9 @@ px4_add_module( MAIN oreoled STACK_MAIN 1024 COMPILE_FLAGS - -Os SRCS oreoled.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/pca8574/CMakeLists.txt b/src/drivers/pca8574/CMakeLists.txt index 4b00076be4..df04edb222 100644 --- a/src/drivers/pca8574/CMakeLists.txt +++ b/src/drivers/pca8574/CMakeLists.txt @@ -34,10 +34,9 @@ px4_add_module( MODULE drivers__pca8574 MAIN pca8574 COMPILE_FLAGS - -Os SRCS pca8574.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/pwm_out_rc_in/CMakeLists.txt b/src/drivers/pwm_out_rc_in/CMakeLists.txt index 24faeff27f..a2eaa03f62 100644 --- a/src/drivers/pwm_out_rc_in/CMakeLists.txt +++ b/src/drivers/pwm_out_rc_in/CMakeLists.txt @@ -34,7 +34,6 @@ px4_add_module( MODULE drivers__pwm_out_rc_in MAIN pwm_out_rc_in COMPILE_FLAGS - -Os -DMAVLINK_COMM_NUM_BUFFERS=1 SRCS pwm_out_rc_in.cpp diff --git a/src/drivers/pwm_out_sim/CMakeLists.txt b/src/drivers/pwm_out_sim/CMakeLists.txt index 573d9a7afb..dafb6a27ca 100644 --- a/src/drivers/pwm_out_sim/CMakeLists.txt +++ b/src/drivers/pwm_out_sim/CMakeLists.txt @@ -36,10 +36,9 @@ px4_add_module( STACK_MAIN 1200 STACK_MAX 1200 COMPILE_FLAGS - -Os SRCS pwm_out_sim.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/px4flow/CMakeLists.txt b/src/drivers/px4flow/CMakeLists.txt index d8953b1ae1..30bd4efc31 100644 --- a/src/drivers/px4flow/CMakeLists.txt +++ b/src/drivers/px4flow/CMakeLists.txt @@ -35,10 +35,9 @@ px4_add_module( MAIN px4flow STACK_MAIN 1200 COMPILE_FLAGS - -Os SRCS px4flow.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/px4fmu/CMakeLists.txt b/src/drivers/px4fmu/CMakeLists.txt index 768db85d12..473baa2331 100644 --- a/src/drivers/px4fmu/CMakeLists.txt +++ b/src/drivers/px4fmu/CMakeLists.txt @@ -35,11 +35,10 @@ px4_add_module( MAIN fmu STACK_MAIN 1200 COMPILE_FLAGS - -Os SRCS fmu.cpp px4fmu_params.c DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/px4io/CMakeLists.txt b/src/drivers/px4io/CMakeLists.txt index 7280bcd43b..b515678677 100644 --- a/src/drivers/px4io/CMakeLists.txt +++ b/src/drivers/px4io/CMakeLists.txt @@ -35,7 +35,6 @@ px4_add_module( MAIN px4io STACK_MAIN 1800 COMPILE_FLAGS - -Os SRCS px4io.cpp px4io_uploader.cpp @@ -45,4 +44,4 @@ px4_add_module( DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/rgbled/CMakeLists.txt b/src/drivers/rgbled/CMakeLists.txt index d833567467..9520988934 100644 --- a/src/drivers/rgbled/CMakeLists.txt +++ b/src/drivers/rgbled/CMakeLists.txt @@ -34,10 +34,9 @@ px4_add_module( MODULE drivers__rgbled MAIN rgbled COMPILE_FLAGS - -Os SRCS rgbled.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/rgbled_pwm/CMakeLists.txt b/src/drivers/rgbled_pwm/CMakeLists.txt index 0805c8aea9..035c468cc8 100644 --- a/src/drivers/rgbled_pwm/CMakeLists.txt +++ b/src/drivers/rgbled_pwm/CMakeLists.txt @@ -34,10 +34,9 @@ px4_add_module( MODULE drivers__rgbled_pwm MAIN rgbled COMPILE_FLAGS - -Os SRCS rgbled_pwm.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/roboclaw/CMakeLists.txt b/src/drivers/roboclaw/CMakeLists.txt index c2eac724e6..d40271d9f6 100644 --- a/src/drivers/roboclaw/CMakeLists.txt +++ b/src/drivers/roboclaw/CMakeLists.txt @@ -34,11 +34,10 @@ px4_add_module( MODULE drivers__roboclaw MAIN roboclaw COMPILE_FLAGS - -Os SRCS roboclaw_main.cpp RoboClaw.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/sf0x/CMakeLists.txt b/src/drivers/sf0x/CMakeLists.txt index a90d1da824..7fb11814d4 100644 --- a/src/drivers/sf0x/CMakeLists.txt +++ b/src/drivers/sf0x/CMakeLists.txt @@ -34,11 +34,10 @@ px4_add_module( MODULE drivers__sf0x MAIN sf0x COMPILE_FLAGS - -Os SRCS sf0x.cpp sf0x_parser.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/sf1xx/CMakeLists.txt b/src/drivers/sf1xx/CMakeLists.txt index 098bd54171..bb53449d04 100644 --- a/src/drivers/sf1xx/CMakeLists.txt +++ b/src/drivers/sf1xx/CMakeLists.txt @@ -35,10 +35,9 @@ px4_add_module( MODULE drivers__sf1xx MAIN sf1xx COMPILE_FLAGS - -Os SRCS sf1xx.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/snapdragon_rc_pwm/CMakeLists.txt b/src/drivers/snapdragon_rc_pwm/CMakeLists.txt index 254e85d931..41645d8b80 100644 --- a/src/drivers/snapdragon_rc_pwm/CMakeLists.txt +++ b/src/drivers/snapdragon_rc_pwm/CMakeLists.txt @@ -34,11 +34,10 @@ px4_add_module( MODULE drivers__snapdragon_rc_pwm MAIN snapdragon_rc_pwm COMPILE_FLAGS - -Os -DMAVLINK_COMM_NUM_BUFFERS=1 SRCS snapdragon_rc_pwm.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : \ No newline at end of file +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/srf02/CMakeLists.txt b/src/drivers/srf02/CMakeLists.txt index da5b878696..e2f077f175 100644 --- a/src/drivers/srf02/CMakeLists.txt +++ b/src/drivers/srf02/CMakeLists.txt @@ -34,10 +34,9 @@ px4_add_module( MODULE drivers__srf02 MAIN srf02 COMPILE_FLAGS - -Os SRCS srf02.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/srf02_i2c/CMakeLists.txt b/src/drivers/srf02_i2c/CMakeLists.txt index 5be082da58..7e70191482 100644 --- a/src/drivers/srf02_i2c/CMakeLists.txt +++ b/src/drivers/srf02_i2c/CMakeLists.txt @@ -34,10 +34,9 @@ px4_add_module( MODULE drivers__srf02_i2c MAIN srf02_i2c COMPILE_FLAGS - -Os SRCS srf02_i2c.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/stm32/CMakeLists.txt b/src/drivers/stm32/CMakeLists.txt index 40bbef8ad7..fb35fab48b 100644 --- a/src/drivers/stm32/CMakeLists.txt +++ b/src/drivers/stm32/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE drivers__stm32 COMPILE_FLAGS - -Os SRCS drv_hrt.c drv_io_timer.c @@ -43,4 +42,4 @@ px4_add_module( DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/stm32/adc/CMakeLists.txt b/src/drivers/stm32/adc/CMakeLists.txt index 72205cdac7..1d1efbee43 100644 --- a/src/drivers/stm32/adc/CMakeLists.txt +++ b/src/drivers/stm32/adc/CMakeLists.txt @@ -34,10 +34,9 @@ px4_add_module( MODULE drivers__stm32__adc MAIN adc COMPILE_FLAGS - -Os SRCS adc.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/stm32/tone_alarm/CMakeLists.txt b/src/drivers/stm32/tone_alarm/CMakeLists.txt index d01a1ff59b..ba17923fca 100644 --- a/src/drivers/stm32/tone_alarm/CMakeLists.txt +++ b/src/drivers/stm32/tone_alarm/CMakeLists.txt @@ -34,10 +34,9 @@ px4_add_module( MODULE drivers__stm32__tone_alarm MAIN tone_alarm COMPILE_FLAGS - -Os SRCS tone_alarm.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/tap_esc/CMakeLists.txt b/src/drivers/tap_esc/CMakeLists.txt index 1869d3c43f..1c3f51a0eb 100644 --- a/src/drivers/tap_esc/CMakeLists.txt +++ b/src/drivers/tap_esc/CMakeLists.txt @@ -34,10 +34,9 @@ px4_add_module( MODULE drivers__tap_esc MAIN tap_esc COMPILE_FLAGS - -Os SRCS tap_esc.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/test_ppm/CMakeLists.txt b/src/drivers/test_ppm/CMakeLists.txt index b749592d34..11ce7f3d00 100644 --- a/src/drivers/test_ppm/CMakeLists.txt +++ b/src/drivers/test_ppm/CMakeLists.txt @@ -36,10 +36,9 @@ px4_add_module( STACK_MAIN 1200 COMPILE_FLAGS -Weffc++ - -Os SRCS test_ppm.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/drivers/trone/CMakeLists.txt b/src/drivers/trone/CMakeLists.txt index 692002abe8..2c208b8372 100644 --- a/src/drivers/trone/CMakeLists.txt +++ b/src/drivers/trone/CMakeLists.txt @@ -35,10 +35,9 @@ px4_add_module( MAIN trone STACK_MAIN 1200 COMPILE_FLAGS - -Os SRCS trone.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/examples/ekf_att_pos_estimator/CMakeLists.txt b/src/examples/ekf_att_pos_estimator/CMakeLists.txt index 9411b9805b..5821274d2e 100644 --- a/src/examples/ekf_att_pos_estimator/CMakeLists.txt +++ b/src/examples/ekf_att_pos_estimator/CMakeLists.txt @@ -34,7 +34,7 @@ px4_add_module( MODULE examples__ekf_att_pos_estimator MAIN ekf_att_pos_estimator - COMPILE_FLAGS -Os + COMPILE_FLAGS STACK_MAIN 3000 STACK_MAX 3400 SRCS @@ -44,4 +44,4 @@ px4_add_module( DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/lib/controllib/CMakeLists.txt b/src/lib/controllib/CMakeLists.txt index fd1fb22d8f..74fb84aa93 100644 --- a/src/lib/controllib/CMakeLists.txt +++ b/src/lib/controllib/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE lib__controllib COMPILE_FLAGS - -Os SRCS blocks.cpp block/Block.cpp @@ -42,4 +41,4 @@ px4_add_module( DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/lib/conversion/CMakeLists.txt b/src/lib/conversion/CMakeLists.txt index 78f39e99aa..f4dff925e8 100644 --- a/src/lib/conversion/CMakeLists.txt +++ b/src/lib/conversion/CMakeLists.txt @@ -33,10 +33,9 @@ px4_add_module( MODULE lib__conversion COMPILE_FLAGS - -Os SRCS rotation.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/lib/ecl b/src/lib/ecl index df0f8fed45..616aeb9ad7 160000 --- a/src/lib/ecl +++ b/src/lib/ecl @@ -1 +1 @@ -Subproject commit df0f8fed45b94b44f18595abafbd5f6fd1de4275 +Subproject commit 616aeb9ad70c6082e387de826599f715b809fac1 diff --git a/src/lib/external_lgpl/CMakeLists.txt b/src/lib/external_lgpl/CMakeLists.txt index b46af5006d..396a41ce15 100644 --- a/src/lib/external_lgpl/CMakeLists.txt +++ b/src/lib/external_lgpl/CMakeLists.txt @@ -33,10 +33,9 @@ px4_add_module( MODULE lib__external_lgpl COMPILE_FLAGS - -Os SRCS tecs/tecs.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/lib/geo_lookup/CMakeLists.txt b/src/lib/geo_lookup/CMakeLists.txt index ea13af025d..c28e724bb9 100644 --- a/src/lib/geo_lookup/CMakeLists.txt +++ b/src/lib/geo_lookup/CMakeLists.txt @@ -33,10 +33,9 @@ px4_add_module( MODULE lib__geo_lookup COMPILE_FLAGS - -Os SRCS geo_mag_declination.c DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/lib/launchdetection/CMakeLists.txt b/src/lib/launchdetection/CMakeLists.txt index b396169a45..8768485c20 100644 --- a/src/lib/launchdetection/CMakeLists.txt +++ b/src/lib/launchdetection/CMakeLists.txt @@ -33,11 +33,10 @@ px4_add_module( MODULE lib__launchdetection COMPILE_FLAGS - -Os SRCS LaunchDetector.cpp CatapultLaunchMethod.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/lib/mathlib/CMakeLists.txt b/src/lib/mathlib/CMakeLists.txt index e19201da74..9bce476309 100644 --- a/src/lib/mathlib/CMakeLists.txt +++ b/src/lib/mathlib/CMakeLists.txt @@ -33,11 +33,10 @@ px4_add_module( MODULE lib__mathlib COMPILE_FLAGS - -Os SRCS math/test/test.cpp math/Limits.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/lib/rc/CMakeLists.txt b/src/lib/rc/CMakeLists.txt index 8f9471124e..bb39f92c3f 100644 --- a/src/lib/rc/CMakeLists.txt +++ b/src/lib/rc/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE lib__rc COMPILE_FLAGS - -Os -Wno-unused-result SRCS st24.c @@ -43,4 +42,4 @@ px4_add_module( DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/lib/runway_takeoff/CMakeLists.txt b/src/lib/runway_takeoff/CMakeLists.txt index f9f51dd543..019613fef2 100644 --- a/src/lib/runway_takeoff/CMakeLists.txt +++ b/src/lib/runway_takeoff/CMakeLists.txt @@ -33,10 +33,9 @@ px4_add_module( MODULE lib__runway_takeoff COMPILE_FLAGS - -Os SRCS RunwayTakeoff.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/lib/tailsitter_recovery/CMakeLists.txt b/src/lib/tailsitter_recovery/CMakeLists.txt index 7438761b41..e1a2c5794e 100644 --- a/src/lib/tailsitter_recovery/CMakeLists.txt +++ b/src/lib/tailsitter_recovery/CMakeLists.txt @@ -34,10 +34,9 @@ px4_add_module( MODULE lib__tailsitter_recovery STACK_MAIN 400 COMPILE_FLAGS - -Os SRCS tailsitter_recovery.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/lib/terrain_estimation/CMakeLists.txt b/src/lib/terrain_estimation/CMakeLists.txt index ac967fd83b..80656bc44c 100644 --- a/src/lib/terrain_estimation/CMakeLists.txt +++ b/src/lib/terrain_estimation/CMakeLists.txt @@ -34,10 +34,9 @@ px4_add_module( MODULE lib__terrain_estimation STACK_MAIN 1024 COMPILE_FLAGS - -Os SRCS terrain_estimator.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/modules/attitude_estimator_q/CMakeLists.txt b/src/modules/attitude_estimator_q/CMakeLists.txt index 115d0820ba..22405a1d64 100644 --- a/src/modules/attitude_estimator_q/CMakeLists.txt +++ b/src/modules/attitude_estimator_q/CMakeLists.txt @@ -35,7 +35,6 @@ px4_add_module( MODULE modules__attitude_estimator_q MAIN attitude_estimator_q COMPILE_FLAGS - -Os STACK_MAIN 1200 STACK_MAX 1600 SRCS @@ -43,4 +42,4 @@ px4_add_module( DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/modules/bottle_drop/CMakeLists.txt b/src/modules/bottle_drop/CMakeLists.txt index 0d60613c27..aac56fe013 100644 --- a/src/modules/bottle_drop/CMakeLists.txt +++ b/src/modules/bottle_drop/CMakeLists.txt @@ -35,10 +35,9 @@ px4_add_module( MAIN bottle_drop STACK_MAIN 1200 COMPILE_FLAGS - -Os SRCS bottle_drop.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/modules/commander/CMakeLists.txt b/src/modules/commander/CMakeLists.txt index 8972791a41..cbe474dabe 100644 --- a/src/modules/commander/CMakeLists.txt +++ b/src/modules/commander/CMakeLists.txt @@ -36,7 +36,6 @@ px4_add_module( STACK_MAIN 4096 STACK_MAX 2450 COMPILE_FLAGS - -Os SRCS commander.cpp state_machine_helper.cpp @@ -53,4 +52,4 @@ px4_add_module( DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/modules/controllib_test/CMakeLists.txt b/src/modules/controllib_test/CMakeLists.txt index 7cb86e5f8d..defed2035f 100644 --- a/src/modules/controllib_test/CMakeLists.txt +++ b/src/modules/controllib_test/CMakeLists.txt @@ -34,11 +34,10 @@ px4_add_module( MODULE modules__controllib_test MAIN controllib_test COMPILE_FLAGS - -Os SRCS controllib_test_main.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/modules/dataman/CMakeLists.txt b/src/modules/dataman/CMakeLists.txt index a819bcfedd..f2abdee90a 100644 --- a/src/modules/dataman/CMakeLists.txt +++ b/src/modules/dataman/CMakeLists.txt @@ -35,10 +35,9 @@ px4_add_module( MAIN dataman STACK_MAIN 1200 COMPILE_FLAGS - -Os SRCS dataman.c DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/modules/dummy/CMakeLists.txt b/src/modules/dummy/CMakeLists.txt index 26b585968d..a5c80405bb 100644 --- a/src/modules/dummy/CMakeLists.txt +++ b/src/modules/dummy/CMakeLists.txt @@ -34,10 +34,9 @@ px4_add_module( MODULE modules__dummy MAIN tone_alarm COMPILE_FLAGS - -Os SRCS tone_alarm.c DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/modules/ekf2/CMakeLists.txt b/src/modules/ekf2/CMakeLists.txt index 148402e533..64a063c61d 100644 --- a/src/modules/ekf2/CMakeLists.txt +++ b/src/modules/ekf2/CMakeLists.txt @@ -33,7 +33,7 @@ px4_add_module( MODULE modules__ekf2 MAIN ekf2 - COMPILE_FLAGS -Os + COMPILE_FLAGS STACK_MAIN 2500 STACK_MAX 4000 SRCS @@ -42,4 +42,4 @@ px4_add_module( platforms__common git_ecl ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/modules/fw_att_control/CMakeLists.txt b/src/modules/fw_att_control/CMakeLists.txt index c29379a4a1..c2b70eba9d 100644 --- a/src/modules/fw_att_control/CMakeLists.txt +++ b/src/modules/fw_att_control/CMakeLists.txt @@ -35,7 +35,6 @@ px4_add_module( MAIN fw_att_control STACK_MAIN 1200 COMPILE_FLAGS - -Os SRCS fw_att_control_main.cpp DEPENDS @@ -43,4 +42,4 @@ px4_add_module( git_ecl lib__ecl ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/modules/fw_pos_control_l1/CMakeLists.txt b/src/modules/fw_pos_control_l1/CMakeLists.txt index 5a4e7fa6f1..094cc4bc80 100644 --- a/src/modules/fw_pos_control_l1/CMakeLists.txt +++ b/src/modules/fw_pos_control_l1/CMakeLists.txt @@ -35,7 +35,7 @@ px4_add_module( MAIN fw_pos_control_l1 STACK_MAIN 1200 COMPILE_FLAGS - -Os -Weffc++ + -Weffc++ SRCS fw_pos_control_l1_main.cpp landingslope.cpp @@ -45,4 +45,4 @@ px4_add_module( lib__external_lgpl lib__ecl ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/modules/gpio_led/CMakeLists.txt b/src/modules/gpio_led/CMakeLists.txt index 435d8e986a..34184020ff 100644 --- a/src/modules/gpio_led/CMakeLists.txt +++ b/src/modules/gpio_led/CMakeLists.txt @@ -34,10 +34,9 @@ px4_add_module( MODULE modules__gpio_led MAIN gpio_led COMPILE_FLAGS - -Os SRCS gpio_led.c DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/modules/land_detector/CMakeLists.txt b/src/modules/land_detector/CMakeLists.txt index f878d485dd..470e225373 100644 --- a/src/modules/land_detector/CMakeLists.txt +++ b/src/modules/land_detector/CMakeLists.txt @@ -35,7 +35,6 @@ px4_add_module( MAIN land_detector STACK_MAIN 1200 COMPILE_FLAGS - -Os SRCS land_detector_main.cpp LandDetector.cpp @@ -45,4 +44,4 @@ px4_add_module( DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/modules/load_mon/CMakeLists.txt b/src/modules/load_mon/CMakeLists.txt index bd435caf57..fcaaf65af3 100644 --- a/src/modules/load_mon/CMakeLists.txt +++ b/src/modules/load_mon/CMakeLists.txt @@ -34,7 +34,7 @@ px4_add_module( MODULE modules__load_mon MAIN load_mon STACK_MAIN 1200 - COMPILE_FLAGS -Os + COMPILE_FLAGS SRCS load_mon.cpp DEPENDS diff --git a/src/modules/local_position_estimator/CMakeLists.txt b/src/modules/local_position_estimator/CMakeLists.txt index 1421be5969..49d78b1a63 100644 --- a/src/modules/local_position_estimator/CMakeLists.txt +++ b/src/modules/local_position_estimator/CMakeLists.txt @@ -33,7 +33,7 @@ px4_add_module( MODULE modules__local_position_estimator MAIN local_position_estimator - COMPILE_FLAGS -Os + COMPILE_FLAGS STACK_MAIN 5700 STACK_MAX 13000 SRCS @@ -49,4 +49,4 @@ px4_add_module( DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/modules/logger/CMakeLists.txt b/src/modules/logger/CMakeLists.txt index c918621779..371afa9b57 100644 --- a/src/modules/logger/CMakeLists.txt +++ b/src/modules/logger/CMakeLists.txt @@ -36,7 +36,7 @@ px4_add_module( MAIN logger PRIORITY "SCHED_PRIORITY_MAX-30" STACK_MAIN 2200 - COMPILE_FLAGS -Os + COMPILE_FLAGS SRCS logger.cpp log_writer.cpp @@ -44,4 +44,4 @@ px4_add_module( platforms__common modules__uORB ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/modules/mavlink/CMakeLists.txt b/src/modules/mavlink/CMakeLists.txt index 023fddf476..cec012e92e 100644 --- a/src/modules/mavlink/CMakeLists.txt +++ b/src/modules/mavlink/CMakeLists.txt @@ -36,7 +36,6 @@ px4_add_module( STACK_MAIN 1200 STACK_MAX 1500 COMPILE_FLAGS - -Os SRCS mavlink.c mavlink_main.cpp @@ -53,4 +52,4 @@ px4_add_module( DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/modules/mavlink/mavlink_tests/CMakeLists.txt b/src/modules/mavlink/mavlink_tests/CMakeLists.txt index 26b7d0d4ba..4c5d408e7a 100644 --- a/src/modules/mavlink/mavlink_tests/CMakeLists.txt +++ b/src/modules/mavlink/mavlink_tests/CMakeLists.txt @@ -36,7 +36,6 @@ px4_add_module( STACK_MAIN 5000 COMPILE_FLAGS -DMAVLINK_FTP_UNIT_TEST - -Os SRCS mavlink_tests.cpp mavlink_ftp_test.cpp @@ -46,4 +45,4 @@ px4_add_module( DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/modules/mc_att_control/CMakeLists.txt b/src/modules/mc_att_control/CMakeLists.txt index 6071940370..f8e6b56e6c 100644 --- a/src/modules/mc_att_control/CMakeLists.txt +++ b/src/modules/mc_att_control/CMakeLists.txt @@ -35,10 +35,10 @@ px4_add_module( MAIN mc_att_control STACK_MAIN 1200 STACK_MAX 3500 - COMPILE_FLAGS -Os + COMPILE_FLAGS SRCS mc_att_control_main.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/modules/mc_pos_control/CMakeLists.txt b/src/modules/mc_pos_control/CMakeLists.txt index 0de1f49235..0f23d80f0b 100644 --- a/src/modules/mc_pos_control/CMakeLists.txt +++ b/src/modules/mc_pos_control/CMakeLists.txt @@ -33,11 +33,11 @@ px4_add_module( MODULE modules__mc_pos_control MAIN mc_pos_control - COMPILE_FLAGS -Os + COMPILE_FLAGS STACK_MAIN 1200 SRCS mc_pos_control_main.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/modules/muorb/adsp/CMakeLists.txt b/src/modules/muorb/adsp/CMakeLists.txt index 185264a85f..b64c3cd929 100644 --- a/src/modules/muorb/adsp/CMakeLists.txt +++ b/src/modules/muorb/adsp/CMakeLists.txt @@ -35,11 +35,10 @@ include_directories("../../uORB") px4_add_module( MODULE modules__muorb__adsp COMPILE_FLAGS - -Os SRCS px4muorb.cpp uORBFastRpcChannel.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/modules/navigator/CMakeLists.txt b/src/modules/navigator/CMakeLists.txt index 18d41d79ca..55307ba4e2 100644 --- a/src/modules/navigator/CMakeLists.txt +++ b/src/modules/navigator/CMakeLists.txt @@ -35,7 +35,6 @@ px4_add_module( MAIN navigator STACK_MAIN 1300 COMPILE_FLAGS - -Os SRCS navigator_main.cpp navigator_mode.cpp @@ -55,4 +54,4 @@ px4_add_module( DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/modules/param/CMakeLists.txt b/src/modules/param/CMakeLists.txt index 3f64a9826c..d5e42620c2 100644 --- a/src/modules/param/CMakeLists.txt +++ b/src/modules/param/CMakeLists.txt @@ -42,9 +42,8 @@ px4_generate_parameters_source(OUT param_files px4_add_module( MODULE modules__param COMPILE_FLAGS - -Os SRCS ${param_files} DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/modules/position_estimator_inav/CMakeLists.txt b/src/modules/position_estimator_inav/CMakeLists.txt index 10fcf57043..8c2a9222df 100644 --- a/src/modules/position_estimator_inav/CMakeLists.txt +++ b/src/modules/position_estimator_inav/CMakeLists.txt @@ -36,7 +36,7 @@ px4_add_module( MAIN position_estimator_inav STACK_MAIN 1200 STACK_MAX 4000 - COMPILE_FLAGS -Os + COMPILE_FLAGS SRCS position_estimator_inav_main.cpp position_estimator_inav_params.cpp @@ -44,4 +44,4 @@ px4_add_module( DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/modules/sdlog2/CMakeLists.txt b/src/modules/sdlog2/CMakeLists.txt index f45e2fd36c..2eb891347e 100644 --- a/src/modules/sdlog2/CMakeLists.txt +++ b/src/modules/sdlog2/CMakeLists.txt @@ -38,11 +38,10 @@ px4_add_module( STACK_MAX 1600 COMPILE_FLAGS ${MODULE_CFLAGS} - -Os SRCS sdlog2.c logbuffer.c DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/modules/sensors/CMakeLists.txt b/src/modules/sensors/CMakeLists.txt index a23f3c5341..e82df4b65a 100644 --- a/src/modules/sensors/CMakeLists.txt +++ b/src/modules/sensors/CMakeLists.txt @@ -37,7 +37,6 @@ px4_add_module( PRIORITY "SCHED_PRIORITY_MAX-5" STACK_MAIN 1300 COMPILE_FLAGS - -Os SRCS sensors.cpp sensors_init.cpp diff --git a/src/modules/systemlib/CMakeLists.txt b/src/modules/systemlib/CMakeLists.txt index 91f405d605..3ad11d593d 100644 --- a/src/modules/systemlib/CMakeLists.txt +++ b/src/modules/systemlib/CMakeLists.txt @@ -83,7 +83,6 @@ px4_add_module( MODULE modules__systemlib COMPILE_FLAGS -Wno-sign-compare - -Os SRCS ${SRCS} DEPENDS platforms__common diff --git a/src/modules/uORB/CMakeLists.txt b/src/modules/uORB/CMakeLists.txt index b58cb095e0..e3b23e94b1 100644 --- a/src/modules/uORB/CMakeLists.txt +++ b/src/modules/uORB/CMakeLists.txt @@ -53,9 +53,8 @@ px4_add_module( MAIN uorb STACK_MAIN 2100 COMPILE_FLAGS - -Os SRCS ${SRCS} DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/modules/uORB/uORB_tests/CMakeLists.txt b/src/modules/uORB/uORB_tests/CMakeLists.txt index 5f88743d3a..7ef8184919 100644 --- a/src/modules/uORB/uORB_tests/CMakeLists.txt +++ b/src/modules/uORB/uORB_tests/CMakeLists.txt @@ -45,9 +45,8 @@ px4_add_module( MAIN uorb_tests STACK_MAIN 2048 COMPILE_FLAGS - -Os SRCS ${SRCS} DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/modules/uavcan/CMakeLists.txt b/src/modules/uavcan/CMakeLists.txt index 8aea69743b..61d98221cb 100644 --- a/src/modules/uavcan/CMakeLists.txt +++ b/src/modules/uavcan/CMakeLists.txt @@ -59,7 +59,6 @@ px4_add_module( STACK_MAIN 3200 STACK_MAX 1500 COMPILE_FLAGS - -Os SRCS # Main uavcan_main.cpp @@ -81,4 +80,4 @@ px4_add_module( uavcan ) -## vim: set noet ft=cmake fenc=utf-8 ff=unix : +## vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/modules/unit_test/CMakeLists.txt b/src/modules/unit_test/CMakeLists.txt index 6fd63d931d..c3b1fbbb03 100644 --- a/src/modules/unit_test/CMakeLists.txt +++ b/src/modules/unit_test/CMakeLists.txt @@ -33,10 +33,9 @@ px4_add_module( MODULE modules__unit_test COMPILE_FLAGS - -Os SRCS unit_test.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/modules/vtol_att_control/CMakeLists.txt b/src/modules/vtol_att_control/CMakeLists.txt index 24b2b2c6f0..17d8dd242e 100644 --- a/src/modules/vtol_att_control/CMakeLists.txt +++ b/src/modules/vtol_att_control/CMakeLists.txt @@ -34,7 +34,7 @@ px4_add_module( MODULE modules__vtol_att_control MAIN vtol_att_control STACK_MAIN 1300 - COMPILE_FLAGS -Os + COMPILE_FLAGS SRCS vtol_att_control_main.cpp tiltrotor.cpp @@ -44,4 +44,4 @@ px4_add_module( DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/platforms/nuttx/CMakeLists.txt b/src/platforms/nuttx/CMakeLists.txt index 37c2ac4879..bd7e75c0aa 100644 --- a/src/platforms/nuttx/CMakeLists.txt +++ b/src/platforms/nuttx/CMakeLists.txt @@ -33,10 +33,9 @@ px4_add_module( MODULE platforms__nuttx COMPILE_FLAGS - -Os SRCS px4_nuttx_impl.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/platforms/nuttx/px4_layer/CMakeLists.txt b/src/platforms/nuttx/px4_layer/CMakeLists.txt index 86dc1ebb48..fd11e6e598 100644 --- a/src/platforms/nuttx/px4_layer/CMakeLists.txt +++ b/src/platforms/nuttx/px4_layer/CMakeLists.txt @@ -33,11 +33,10 @@ px4_add_module( MODULE platforms__nuttx__px4_layer COMPILE_FLAGS - -Os SRCS px4_nuttx_tasks.c ../../posix/px4_layer/px4_log.c DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/platforms/posix/drivers/adcsim/CMakeLists.txt b/src/platforms/posix/drivers/adcsim/CMakeLists.txt index c1c925c15c..2f69d6a726 100644 --- a/src/platforms/posix/drivers/adcsim/CMakeLists.txt +++ b/src/platforms/posix/drivers/adcsim/CMakeLists.txt @@ -34,7 +34,6 @@ px4_add_module( MODULE platforms__posix__drivers__adcsim MAIN adcsim COMPILE_FLAGS - -Os SRCS adcsim.cpp DEPENDS @@ -47,4 +46,4 @@ target_link_libraries(platforms__posix__drivers__adcsim df_driver_framework ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/platforms/posix/drivers/airspeedsim/CMakeLists.txt b/src/platforms/posix/drivers/airspeedsim/CMakeLists.txt index 8c2a410862..86aeb175cb 100644 --- a/src/platforms/posix/drivers/airspeedsim/CMakeLists.txt +++ b/src/platforms/posix/drivers/airspeedsim/CMakeLists.txt @@ -34,11 +34,10 @@ px4_add_module( MODULE platforms__posix__drivers__airspeedsim MAIN measairspeedsim COMPILE_FLAGS - -Os SRCS airspeedsim.cpp meas_airspeed_sim.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/platforms/posix/drivers/barosim/CMakeLists.txt b/src/platforms/posix/drivers/barosim/CMakeLists.txt index 6e3a105204..da3f1ac850 100644 --- a/src/platforms/posix/drivers/barosim/CMakeLists.txt +++ b/src/platforms/posix/drivers/barosim/CMakeLists.txt @@ -34,10 +34,9 @@ px4_add_module( MODULE platforms__posix__drivers__barosim MAIN barosim COMPILE_FLAGS - -Os SRCS baro.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/platforms/posix/drivers/gpssim/CMakeLists.txt b/src/platforms/posix/drivers/gpssim/CMakeLists.txt index 2c580d7757..8bff75713d 100644 --- a/src/platforms/posix/drivers/gpssim/CMakeLists.txt +++ b/src/platforms/posix/drivers/gpssim/CMakeLists.txt @@ -34,10 +34,9 @@ px4_add_module( MODULE platforms__posix__drivers__gpssim MAIN gpssim COMPILE_FLAGS - -Os SRCS gpssim.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/platforms/posix/drivers/gyrosim/CMakeLists.txt b/src/platforms/posix/drivers/gyrosim/CMakeLists.txt index bac977afbb..f6b588ffd6 100644 --- a/src/platforms/posix/drivers/gyrosim/CMakeLists.txt +++ b/src/platforms/posix/drivers/gyrosim/CMakeLists.txt @@ -35,7 +35,6 @@ px4_add_module( MAIN gyrosim STACK_MAIN 1200 COMPILE_FLAGS - -Os SRCS gyrosim.cpp DEPENDS @@ -48,4 +47,4 @@ target_link_libraries(platforms__posix__drivers__gyrosim df_driver_framework ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/platforms/posix/drivers/ledsim/CMakeLists.txt b/src/platforms/posix/drivers/ledsim/CMakeLists.txt index 0f20b87988..be7662a830 100644 --- a/src/platforms/posix/drivers/ledsim/CMakeLists.txt +++ b/src/platforms/posix/drivers/ledsim/CMakeLists.txt @@ -33,10 +33,9 @@ px4_add_module( MODULE platforms__posix__drivers__ledsim COMPILE_FLAGS - -Os SRCS led.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/platforms/posix/drivers/rgbledsim/CMakeLists.txt b/src/platforms/posix/drivers/rgbledsim/CMakeLists.txt index edb2392a3a..9e1c888997 100644 --- a/src/platforms/posix/drivers/rgbledsim/CMakeLists.txt +++ b/src/platforms/posix/drivers/rgbledsim/CMakeLists.txt @@ -34,10 +34,9 @@ px4_add_module( MODULE platforms__posix__drivers__rgbledsim MAIN rgbledsim COMPILE_FLAGS - -Os SRCS rgbled.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/platforms/posix/drivers/tonealrmsim/CMakeLists.txt b/src/platforms/posix/drivers/tonealrmsim/CMakeLists.txt index 0ac134ea9c..858c9e6f3c 100644 --- a/src/platforms/posix/drivers/tonealrmsim/CMakeLists.txt +++ b/src/platforms/posix/drivers/tonealrmsim/CMakeLists.txt @@ -34,10 +34,9 @@ px4_add_module( MODULE platforms__posix__drivers__tonealrmsim MAIN tone_alarm COMPILE_FLAGS - -Os SRCS tone_alarm.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/platforms/posix/px4_layer/CMakeLists.txt b/src/platforms/posix/px4_layer/CMakeLists.txt index fa1eed4ffc..22459e72f0 100644 --- a/src/platforms/posix/px4_layer/CMakeLists.txt +++ b/src/platforms/posix/px4_layer/CMakeLists.txt @@ -47,7 +47,6 @@ endif() px4_add_module( MODULE platforms__posix__px4_layer COMPILE_FLAGS - -Os SRCS px4_posix_impl.cpp px4_posix_tasks.cpp diff --git a/src/platforms/posix/work_queue/CMakeLists.txt b/src/platforms/posix/work_queue/CMakeLists.txt index 1ee2dec52d..76d303e4c2 100644 --- a/src/platforms/posix/work_queue/CMakeLists.txt +++ b/src/platforms/posix/work_queue/CMakeLists.txt @@ -33,7 +33,6 @@ px4_add_module( MODULE platforms__posix__work_queue COMPILE_FLAGS - -Os SRCS hrt_thread.c hrt_queue.c @@ -52,4 +51,4 @@ px4_add_module( DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/platforms/qurt/fc_addon/mpu_spi/CMakeLists.txt b/src/platforms/qurt/fc_addon/mpu_spi/CMakeLists.txt index d227c1f1cb..5dda5c759a 100644 --- a/src/platforms/qurt/fc_addon/mpu_spi/CMakeLists.txt +++ b/src/platforms/qurt/fc_addon/mpu_spi/CMakeLists.txt @@ -31,7 +31,7 @@ # ############################################################################ -set(TOOLS_ERROR_MSG +set(TOOLS_ERROR_MSG "The FC_ADDON must be installed and the environment variable FC_ADDON must be set" "(e.g. export FC_ADDON=${HOME}/Qualcomm/addon)") @@ -53,7 +53,7 @@ px4_add_module( MAIN mpu9x50 STACK_MAIN 1200 COMPILE_FLAGS - -Os -Weffc++ + -Weffc++ SRCS mpu9x50_main.cpp mpu9x50_params.c @@ -61,10 +61,10 @@ px4_add_module( platforms__common ) -set(module_external_libraries +set(module_external_libraries ${module_external_libraries} libmpu9x50 CACHE INTERNAL "module_external_libraries" ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/platforms/qurt/fc_addon/rc_receiver/CMakeLists.txt b/src/platforms/qurt/fc_addon/rc_receiver/CMakeLists.txt index 3b7399f492..98b69cab04 100644 --- a/src/platforms/qurt/fc_addon/rc_receiver/CMakeLists.txt +++ b/src/platforms/qurt/fc_addon/rc_receiver/CMakeLists.txt @@ -31,7 +31,7 @@ # ############################################################################ -set(TOOLS_ERROR_MSG +set(TOOLS_ERROR_MSG "The FC_ADDON must be installed and the environment variable FC_ADDON must be set" "(e.g. export FC_ADDON=${HOME}/Qualcomm/addon)") @@ -53,7 +53,7 @@ px4_add_module( MAIN rc_receiver STACK_MAIN 1200 COMPILE_FLAGS - -Os -Weffc++ + -Weffc++ SRCS rc_receiver_main.cpp rc_receiver_params.c @@ -62,10 +62,10 @@ px4_add_module( platforms__common ) -set(module_external_libraries +set(module_external_libraries ${module_external_libraries} librc_receiver CACHE INTERNAL "module_external_libraries" ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/platforms/qurt/fc_addon/uart_esc/CMakeLists.txt b/src/platforms/qurt/fc_addon/uart_esc/CMakeLists.txt index 0bc92f856d..b9fec0e343 100644 --- a/src/platforms/qurt/fc_addon/uart_esc/CMakeLists.txt +++ b/src/platforms/qurt/fc_addon/uart_esc/CMakeLists.txt @@ -31,7 +31,7 @@ # ############################################################################ -set(TOOLS_ERROR_MSG +set(TOOLS_ERROR_MSG "The FC_ADDON must be installed and the environment variable FC_ADDON must be set" "(e.g. export FC_ADDON=${HOME}/Qualcomm/addon)") @@ -53,7 +53,7 @@ px4_add_module( MAIN uart_esc STACK_MAIN 1200 COMPILE_FLAGS - -Os -Weffc++ + -Weffc++ SRCS uart_esc_main.cpp uart_esc_params.c @@ -62,10 +62,10 @@ px4_add_module( platforms__common ) -set(module_external_libraries +set(module_external_libraries ${module_external_libraries} - libuart_esc + libuart_esc CACHE INTERNAL "module_external_libraries" ) - -# vim: set noet ft=cmake fenc=utf-8 ff=unix : + +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/platforms/qurt/px4_layer/CMakeLists.txt b/src/platforms/qurt/px4_layer/CMakeLists.txt index ed6e56790a..2c34d35dc5 100644 --- a/src/platforms/qurt/px4_layer/CMakeLists.txt +++ b/src/platforms/qurt/px4_layer/CMakeLists.txt @@ -56,7 +56,6 @@ endif() px4_add_module( MODULE platforms__qurt__px4_layer COMPILE_FLAGS - -Os SRCS ${QURT_LAYER_SRCS} ${CONFIG_SRC} diff --git a/src/systemcmds/bl_update/CMakeLists.txt b/src/systemcmds/bl_update/CMakeLists.txt index e740def3f7..623f5da933 100644 --- a/src/systemcmds/bl_update/CMakeLists.txt +++ b/src/systemcmds/bl_update/CMakeLists.txt @@ -35,10 +35,9 @@ px4_add_module( MAIN bl_update STACK_MAIN 4096 COMPILE_FLAGS - -Os SRCS bl_update.c DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/systemcmds/config/CMakeLists.txt b/src/systemcmds/config/CMakeLists.txt index 98728311a7..5fd0edbcf5 100644 --- a/src/systemcmds/config/CMakeLists.txt +++ b/src/systemcmds/config/CMakeLists.txt @@ -35,10 +35,9 @@ px4_add_module( MAIN config STACK_MAIN 4096 COMPILE_FLAGS - -Os SRCS config.c DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/systemcmds/dumpfile/CMakeLists.txt b/src/systemcmds/dumpfile/CMakeLists.txt index 5935d7ec06..7549e08198 100644 --- a/src/systemcmds/dumpfile/CMakeLists.txt +++ b/src/systemcmds/dumpfile/CMakeLists.txt @@ -34,10 +34,9 @@ px4_add_module( MODULE systemcmds__dumpfile MAIN dumpfile COMPILE_FLAGS - -Os SRCS dumpfile.c DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/systemcmds/esc_calib/CMakeLists.txt b/src/systemcmds/esc_calib/CMakeLists.txt index efe5a0be33..8073712b54 100644 --- a/src/systemcmds/esc_calib/CMakeLists.txt +++ b/src/systemcmds/esc_calib/CMakeLists.txt @@ -35,10 +35,9 @@ px4_add_module( MAIN esc_calib STACK_MAIN 4096 COMPILE_FLAGS - -Os SRCS esc_calib.c DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/systemcmds/i2c/CMakeLists.txt b/src/systemcmds/i2c/CMakeLists.txt index 04a2b00884..ed9a4757ed 100644 --- a/src/systemcmds/i2c/CMakeLists.txt +++ b/src/systemcmds/i2c/CMakeLists.txt @@ -34,10 +34,9 @@ px4_add_module( MODULE systemcmds__i2c MAIN i2c COMPILE_FLAGS - -Os SRCS i2c.c DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/systemcmds/mixer/CMakeLists.txt b/src/systemcmds/mixer/CMakeLists.txt index 6007238e4c..afc8697744 100644 --- a/src/systemcmds/mixer/CMakeLists.txt +++ b/src/systemcmds/mixer/CMakeLists.txt @@ -30,17 +30,16 @@ # POSSIBILITY OF SUCH DAMAGE. # ############################################################################ -set(MIXER_CFLAGS -Os) px4_add_module( MODULE systemcmds__mixer MAIN mixer STACK_MAIN 4096 STACK_MAX 2100 - COMPILE_FLAGS ${MIXER_CFLAGS} + COMPILE_FLAGS SRCS mixer.cpp DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/systemcmds/motor_test/CMakeLists.txt b/src/systemcmds/motor_test/CMakeLists.txt index 0eda57e550..2e408be3dd 100644 --- a/src/systemcmds/motor_test/CMakeLists.txt +++ b/src/systemcmds/motor_test/CMakeLists.txt @@ -35,10 +35,9 @@ px4_add_module( MAIN motor_test STACK_MAIN 4096 COMPILE_FLAGS - -Os SRCS motor_test.c DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/systemcmds/mtd/CMakeLists.txt b/src/systemcmds/mtd/CMakeLists.txt index 2a1f73e401..19ef57fc3f 100644 --- a/src/systemcmds/mtd/CMakeLists.txt +++ b/src/systemcmds/mtd/CMakeLists.txt @@ -34,11 +34,10 @@ px4_add_module( MODULE systemcmds__mtd MAIN mtd COMPILE_FLAGS - -Os SRCS mtd.c 24xxxx_mtd.c DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/systemcmds/nshterm/CMakeLists.txt b/src/systemcmds/nshterm/CMakeLists.txt index 8cd8574295..1a7249ccc3 100644 --- a/src/systemcmds/nshterm/CMakeLists.txt +++ b/src/systemcmds/nshterm/CMakeLists.txt @@ -36,10 +36,9 @@ px4_add_module( PRIORITY "SCHED_PRIORITY_DEFAULT-30" STACK_MAIN 1500 COMPILE_FLAGS - -Os SRCS nshterm.c DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/systemcmds/param/CMakeLists.txt b/src/systemcmds/param/CMakeLists.txt index 951f8e957d..6e24676706 100644 --- a/src/systemcmds/param/CMakeLists.txt +++ b/src/systemcmds/param/CMakeLists.txt @@ -35,10 +35,9 @@ px4_add_module( MAIN param STACK_MAIN 2500 COMPILE_FLAGS - -Os SRCS param.c DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/systemcmds/perf/CMakeLists.txt b/src/systemcmds/perf/CMakeLists.txt index fbe202cea1..708ead93cb 100644 --- a/src/systemcmds/perf/CMakeLists.txt +++ b/src/systemcmds/perf/CMakeLists.txt @@ -35,10 +35,9 @@ px4_add_module( MAIN perf STACK_MAIN 1800 COMPILE_FLAGS - -Os SRCS perf.c DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/systemcmds/pwm/CMakeLists.txt b/src/systemcmds/pwm/CMakeLists.txt index c18cbb505c..a321b13228 100644 --- a/src/systemcmds/pwm/CMakeLists.txt +++ b/src/systemcmds/pwm/CMakeLists.txt @@ -35,10 +35,9 @@ px4_add_module( MAIN pwm STACK_MAIN 2400 COMPILE_FLAGS - -Os SRCS pwm.c DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/systemcmds/reboot/CMakeLists.txt b/src/systemcmds/reboot/CMakeLists.txt index fea17a74c8..bb8837f396 100644 --- a/src/systemcmds/reboot/CMakeLists.txt +++ b/src/systemcmds/reboot/CMakeLists.txt @@ -35,10 +35,9 @@ px4_add_module( MAIN reboot STACK_MAIN 800 COMPILE_FLAGS - -Os SRCS reboot.c DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/systemcmds/reflect/CMakeLists.txt b/src/systemcmds/reflect/CMakeLists.txt index f7fcda35cd..7045a7c2bf 100644 --- a/src/systemcmds/reflect/CMakeLists.txt +++ b/src/systemcmds/reflect/CMakeLists.txt @@ -34,10 +34,9 @@ px4_add_module( MODULE systemcmds__reflect MAIN reflect COMPILE_FLAGS - -Os SRCS reflect.c DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/systemcmds/sd_bench/CMakeLists.txt b/src/systemcmds/sd_bench/CMakeLists.txt index 1063464ee3..05c6d4eec1 100644 --- a/src/systemcmds/sd_bench/CMakeLists.txt +++ b/src/systemcmds/sd_bench/CMakeLists.txt @@ -35,10 +35,9 @@ px4_add_module( MAIN sd_bench STACK_MAIN 2500 COMPILE_FLAGS - -Os SRCS sd_bench.c DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/systemcmds/tests/CMakeLists.txt b/src/systemcmds/tests/CMakeLists.txt index a391052af3..e7f153ed9a 100644 --- a/src/systemcmds/tests/CMakeLists.txt +++ b/src/systemcmds/tests/CMakeLists.txt @@ -82,7 +82,6 @@ px4_add_module( -Wno-missing-declarations -Wno-double-promotion -Wno-unknown-warning-option - -Os SRCS ${srcs} DEPENDS platforms__common diff --git a/src/systemcmds/top/CMakeLists.txt b/src/systemcmds/top/CMakeLists.txt index 26099cee46..356ecad455 100644 --- a/src/systemcmds/top/CMakeLists.txt +++ b/src/systemcmds/top/CMakeLists.txt @@ -35,10 +35,9 @@ px4_add_module( MAIN top STACK_MAIN 1700 COMPILE_FLAGS - -Os SRCS top.c DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/systemcmds/topic_listener/CMakeLists.txt b/src/systemcmds/topic_listener/CMakeLists.txt index bb955490bc..8a54062937 100644 --- a/src/systemcmds/topic_listener/CMakeLists.txt +++ b/src/systemcmds/topic_listener/CMakeLists.txt @@ -46,11 +46,10 @@ px4_add_module( MAIN listener STACK_MAIN 1800 COMPILE_FLAGS - -Os SRCS topic_listener.cpp DEPENDS platforms__common generate_topic_listener ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/systemcmds/usb_connected/CMakeLists.txt b/src/systemcmds/usb_connected/CMakeLists.txt index 7d9966229e..ba80c9d848 100644 --- a/src/systemcmds/usb_connected/CMakeLists.txt +++ b/src/systemcmds/usb_connected/CMakeLists.txt @@ -34,10 +34,9 @@ px4_add_module( MODULE systemcmds__usb_connected MAIN usb_connected COMPILE_FLAGS - -Os SRCS usb_connected.c DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix : diff --git a/src/systemcmds/ver/CMakeLists.txt b/src/systemcmds/ver/CMakeLists.txt index c7fa6d7805..98823770e5 100644 --- a/src/systemcmds/ver/CMakeLists.txt +++ b/src/systemcmds/ver/CMakeLists.txt @@ -35,10 +35,9 @@ px4_add_module( MAIN ver STACK_MAIN 1024 COMPILE_FLAGS - -Os SRCS ver.c DEPENDS platforms__common ) -# vim: set noet ft=cmake fenc=utf-8 ff=unix : +# vim: set noet ft=cmake fenc=utf-8 ff=unix :