NuttX cmake support optional compressed defconfigs

This commit is contained in:
Daniel Agar
2019-01-30 10:54:53 -05:00
committed by GitHub
parent 2f4f4c6623
commit 40e42a677b
15 changed files with 249 additions and 145 deletions
+6 -1
View File
@@ -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)
+4
View File
@@ -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>
+5
View File
@@ -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>
+4
View File
@@ -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)
+8 -1
View File
@@ -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>