cmake don't build param "c" files and remove param defines

- these aren't actual source code
This commit is contained in:
Daniel Agar
2019-11-11 10:25:42 -05:00
parent f984c4e450
commit 1c4e854f93
42 changed files with 34 additions and 68 deletions
+2
View File
@@ -43,6 +43,8 @@
#include "batt_smbus.h"
#include <lib/parameters/param.h>
extern "C" __EXPORT int batt_smbus_main(int argc, char *argv[]);
BATT_SMBUS::BATT_SMBUS(SMBus *interface, const char *path) :
@@ -63,6 +63,7 @@
#include <drivers/drv_range_finder.h>
#include <drivers/device/device.h>
#include <drivers/device/ringbuffer.h>
#include <lib/parameters/param.h>
#include <uORB/uORB.h>
#include <uORB/topics/distance_sensor.h>
@@ -61,6 +61,7 @@
#include <math.h>
#include <unistd.h>
#include <lib/parameters/param.h>
#include <perf/perf_counter.h>
#include <drivers/drv_hrt.h>
@@ -39,6 +39,7 @@
*/
#include <drivers/device/i2c.h>
#include <lib/parameters/param.h>
#include <perf/perf_counter.h>
#include <px4_platform_common/px4_config.h>
#include <px4_platform_common/defines.h>
@@ -48,7 +48,7 @@
#include <unistd.h>
#include <px4_platform_common/getopt.h>
#include <errno.h>
#include <lib/parameters/param.h>
#include <perf/perf_counter.h>
#include <systemlib/err.h>
@@ -50,7 +50,7 @@
#include <unistd.h>
#include <px4_platform_common/getopt.h>
#include <errno.h>
#include <lib/parameters/param.h>
#include <perf/perf_counter.h>
#include <systemlib/err.h>
@@ -52,7 +52,7 @@
#include <errno.h>
#include <systemlib/err.h>
#include <lib/parameters/param.h>
#include <perf/perf_counter.h>
#include <systemlib/mavlink_log.h>
@@ -50,6 +50,7 @@
#include <errno.h>
#include <systemlib/err.h>
#include <lib/parameters/param.h>
#include <perf/perf_counter.h>
#include <systemlib/mavlink_log.h>
@@ -50,7 +50,7 @@
#include <unistd.h>
#include <px4_platform_common/getopt.h>
#include <errno.h>
#include <lib/parameters/param.h>
#include <systemlib/err.h>
#include <perf/perf_counter.h>
#include <systemlib/mavlink_log.h>
+1
View File
@@ -47,6 +47,7 @@
#include <termios.h>
#include <lib/parameters/param.h>
#include <mathlib/mathlib.h>
#include <matrix/math.hpp>
#include <px4_platform_common/cli.h>
+1
View File
@@ -44,6 +44,7 @@
#include <drivers/device/i2c.h>
#include <lib/led/led.h>
#include <lib/parameters/param.h>
#include <px4_platform_common/getopt.h>
#include <px4_platform_common/px4_work_queue/ScheduledWorkItem.hpp>
#include <uORB/Subscription.hpp>
@@ -43,6 +43,7 @@
#include <drivers/device/i2c.h>
#include <lib/led/led.h>
#include <lib/parameters/param.h>
#include <px4_platform_common/getopt.h>
#include <px4_platform_common/px4_work_queue/ScheduledWorkItem.hpp>
#include <uORB/Subscription.hpp>
-1
View File
@@ -36,7 +36,6 @@ px4_add_module(
COMPILE_FLAGS
SRCS
mkblctrl.cpp
mkblctrl_params.c
DEPENDS
mixer
)
@@ -44,6 +44,7 @@
#include <px4_platform_common/px4_config.h>
#include <px4_platform_common/getopt.h>
#include <drivers/device/i2c.h>
#include <lib/parameters/param.h>
#include <lib/perf/perf_counter.h>
#include <drivers/drv_hrt.h>
#include <uORB/uORB.h>
@@ -51,7 +51,6 @@ px4_add_module(
${FC_ADDON}/flight_controller/hexagon/inc
SRCS
mpu9x50_main.cpp
mpu9x50_params.c
DEPENDS
)
target_link_libraries(platforms__qurt__fc_addon__mpu_spi PRIVATE mpu9x50)
@@ -51,6 +51,5 @@ px4_add_module(
${FC_ADDON}/flight_controller/hexagon/inc
SRCS
rc_receiver_main.cpp
rc_receiver_params.c
)
target_link_libraries(platforms__qurt__fc_addon__rc_receiver PRIVATE rc_receiver)
@@ -51,7 +51,6 @@ px4_add_module(
${FC_ADDON}/flight_controller/hexagon/inc
SRCS
uart_esc_main.cpp
uart_esc_params.c
DEPENDS
)
target_link_libraries(platforms__qurt__fc_addon__uart_esc PRIVATE uart_esc)
+1
View File
@@ -46,6 +46,7 @@
#include <poll.h>
#include <stdio.h>
#include <termios.h>
#include <lib/parameters/param.h>
#include <uORB/SubscriptionPollable.hpp>
#include <uORB/topics/actuator_controls.h>
#include <uORB/topics/wheel_encoders.h>
@@ -37,7 +37,6 @@ px4_add_module(
COMPILE_FLAGS
SRCS
IridiumSBD.cpp
iridiumsbd_params.c
MODULE_CONFIG
module.yaml
DEPENDS
@@ -1,4 +1,3 @@
#include <parameters/param.h>
/**
* Satellite radio read interval. Only required to be nonzero if data is not sent using a ring call.
-1
View File
@@ -111,7 +111,6 @@ px4_add_module(
# Main
uavcan_main.cpp
uavcan_servers.cpp
uavcan_params.c
# Actuators
actuators/esc.cpp
-3
View File
@@ -35,9 +35,6 @@
* @author Pavel Kirienko <pavel.kirienko@gmail.com>
*/
#include <px4_platform_common/px4_config.h>
#include <parameters/param.h>
/**
* UAVCAN mode
*
-1
View File
@@ -81,7 +81,6 @@ px4_add_module(
uavcanesc_main.cpp
indication_controller.cpp
led.cpp
uavcanesc_params.c
DEPENDS
drivers_bootloaders
git_uavcan
-1
View File
@@ -81,7 +81,6 @@ px4_add_module(
sim_controller.cpp
led.cpp
resources.cpp
uavcannode_params.c
DEPENDS
drivers_bootloaders
git_uavcan