mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 18:47:21 +08:00
POSIX config: param shem define was lost
This commit is contained in:
@@ -4,8 +4,6 @@ set(CMAKE_TOOLCHAIN_FILE ${CMAKE_SOURCE_DIR}/cmake/toolchains/Toolchain-arm-linu
|
||||
|
||||
set(CONFIG_SHMEM "1")
|
||||
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DENABLE_SHMEM")
|
||||
|
||||
include(${CMAKE_SOURCE_DIR}/cmake/cmake_hexagon/qurt_app.cmake)
|
||||
|
||||
set(config_module_list
|
||||
|
||||
@@ -35,6 +35,8 @@ if("${CONFIG_SHMEM}" STREQUAL "1")
|
||||
list(APPEND SHMEM_SRCS
|
||||
shmem_posix.c
|
||||
)
|
||||
# TODO: This didn't seem to be tracked correctly from posix_eagle_release.cmake
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DCONFIG_SHMEM")
|
||||
endif()
|
||||
|
||||
px4_add_module(
|
||||
@@ -52,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 :
|
||||
|
||||
@@ -58,7 +58,7 @@ __BEGIN_DECLS
|
||||
|
||||
long PX4_TICKS_PER_SEC = sysconf(_SC_CLK_TCK);
|
||||
|
||||
#ifdef ENABLE_SHMEM
|
||||
#ifdef CONFIG_SHMEM
|
||||
extern void init_params(void);
|
||||
#endif
|
||||
|
||||
@@ -77,7 +77,7 @@ void init_once(void)
|
||||
hrt_work_queue_init();
|
||||
hrt_init();
|
||||
|
||||
#ifdef ENABLE_SHMEM
|
||||
#ifdef CONFIG_SHMEM
|
||||
PX4_INFO("Syncing params to shared memory\n");
|
||||
init_params();
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user