mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 07:43:33 +08:00
NuttX cmake support optional compressed defconfigs
This commit is contained in:
@@ -39,12 +39,17 @@ if (NOT "${PX4_PLATFORM}" MATCHES "qurt" AND NOT "${PX4_BOARD}" MATCHES "io-v2")
|
||||
)
|
||||
endif()
|
||||
|
||||
px4_add_library(px4_platform
|
||||
add_library(px4_platform
|
||||
module.cpp
|
||||
px4_getopt.c
|
||||
px4_cli.cpp
|
||||
shutdown.cpp
|
||||
${SRCS}
|
||||
)
|
||||
add_dependencies(px4_platform prebuild_targets)
|
||||
|
||||
if (NOT "${PX4_PLATFORM}" MATCHES "qurt" AND NOT "${PX4_BOARD}" MATCHES "io-v2")
|
||||
target_link_libraries(px4_platform PRIVATE modules__uORB) # px4_log awkward dependency with uORB, TODO: orb should part of the platform layer
|
||||
endif()
|
||||
|
||||
add_subdirectory(work_queue)
|
||||
|
||||
@@ -36,6 +36,10 @@
|
||||
* Implementation of the API declared in px4_module.h.
|
||||
*/
|
||||
|
||||
#ifndef MODULE_NAME
|
||||
#define MODULE_NAME "module"
|
||||
#endif
|
||||
|
||||
#include <px4_module.h>
|
||||
#include <px4_log.h>
|
||||
|
||||
|
||||
@@ -33,6 +33,11 @@
|
||||
|
||||
#include <parameters/param.h>
|
||||
#include <px4_cli.h>
|
||||
|
||||
#ifndef MODULE_NAME
|
||||
#define MODULE_NAME "cli"
|
||||
#endif
|
||||
|
||||
#include <px4_log.h>
|
||||
|
||||
#include <cstring>
|
||||
|
||||
@@ -36,6 +36,10 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifndef MODULE_NAME
|
||||
#define MODULE_NAME "log"
|
||||
#endif
|
||||
|
||||
#include <px4_log.h>
|
||||
#if defined(__PX4_POSIX)
|
||||
#if !defined(__PX4_CYGWIN)
|
||||
|
||||
@@ -37,10 +37,17 @@
|
||||
*/
|
||||
|
||||
#include <board_config.h>
|
||||
#include <px4_log.h>
|
||||
|
||||
#include <px4_workqueue.h>
|
||||
#include <px4_shutdown.h>
|
||||
#include <px4_tasks.h>
|
||||
|
||||
#ifndef MODULE_NAME
|
||||
#define MODULE_NAME "shutdown"
|
||||
#endif
|
||||
|
||||
#include <px4_log.h>
|
||||
|
||||
#include <stdint.h>
|
||||
#include <errno.h>
|
||||
#include <pthread.h>
|
||||
|
||||
Reference in New Issue
Block a user