mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 15:33:35 +08:00
cmake remove circular linking and reorganize
- px4_add_module now requires MAIN - px4_add_library doesn't automatically link
This commit is contained in:
@@ -38,6 +38,5 @@ px4_add_module(
|
||||
SRCS
|
||||
bst.cpp
|
||||
DEPENDS
|
||||
platforms__common
|
||||
)
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
|
||||
|
||||
@@ -40,6 +40,5 @@ px4_add_module(
|
||||
sPort_data.cpp
|
||||
frsky_telemetry.cpp
|
||||
DEPENDS
|
||||
platforms__common
|
||||
)
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
|
||||
|
||||
@@ -30,16 +30,11 @@
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
############################################################################
|
||||
list(APPEND MODULE_CFLAGS -Wframe-larger-than=1100)
|
||||
px4_add_module(
|
||||
MODULE drivers__hott
|
||||
COMPILE_FLAGS
|
||||
SRCS
|
||||
messages.cpp
|
||||
comms.cpp
|
||||
DEPENDS
|
||||
platforms__common
|
||||
)
|
||||
|
||||
px4_add_library(drivers__hott
|
||||
messages.cpp
|
||||
comms.cpp
|
||||
)
|
||||
|
||||
add_subdirectory(hott_sensors)
|
||||
add_subdirectory(hott_telemetry)
|
||||
|
||||
@@ -37,6 +37,5 @@ px4_add_module(
|
||||
SRCS
|
||||
hott_sensors.cpp
|
||||
DEPENDS
|
||||
platforms__common
|
||||
)
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
|
||||
|
||||
@@ -37,6 +37,5 @@ px4_add_module(
|
||||
SRCS
|
||||
hott_telemetry.cpp
|
||||
DEPENDS
|
||||
platforms__common
|
||||
drivers__hott
|
||||
)
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
#include <sys/ioctl.h>
|
||||
#include <unistd.h>
|
||||
#include <systemlib/err.h>
|
||||
#include <systemlib/perf_counter.h>
|
||||
#include <perf/perf_counter.h>
|
||||
#include <systemlib/systemlib.h>
|
||||
|
||||
#include "../comms.h"
|
||||
|
||||
@@ -40,5 +40,4 @@ px4_add_module(
|
||||
IridiumSBD.cpp
|
||||
iridiumsbd_params.c
|
||||
DEPENDS
|
||||
platforms__common
|
||||
)
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
|
||||
#include <systemlib/err.h>
|
||||
#include <systemlib/systemlib.h>
|
||||
#include <systemlib/param/param.h>
|
||||
#include <parameters/param.h>
|
||||
|
||||
#include "drivers/drv_iridiumsbd.h"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include <systemlib/param/param.h>
|
||||
#include <parameters/param.h>
|
||||
|
||||
/**
|
||||
* Satellite radio read interval. Only required to be nonzero if data is not sent using a ring call.
|
||||
|
||||
Reference in New Issue
Block a user