Skip to content
Snippets Groups Projects
Commit 3e964ef8 authored by Julian Oes's avatar Julian Oes
Browse files

POSIX config: param shem define was lost

parent 4f29c7c4
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment