mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 20:43:33 +08:00
Hack to get posix build partially working
Created a dummy build_git_version.h so I did not have to figure out how to generate it. Commented out topic_listener.cpp from src/systemcmds/CMakeLists.txt because it depends on a generated cpp file. Link doesn't work mut many modules build Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
+1
-1
@@ -4,6 +4,6 @@ add_subdirectory(./platforms)
|
||||
add_subdirectory(./systemcmds)
|
||||
add_subdirectory(./examples)
|
||||
add_subdirectory(./modules)
|
||||
add_subdirectory(./firmware)
|
||||
add_subdirectory(./firmware/${OS})
|
||||
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
|
||||
@@ -1,3 +1,24 @@
|
||||
#TODO
|
||||
include(px4_base)
|
||||
|
||||
set(module_dir_list)
|
||||
set(module_list)
|
||||
px4_posix_add_modules(module_dir_list ${BOARD})
|
||||
message(STATUS "module list: ${module_dir_list}")
|
||||
|
||||
foreach(directory ${module_dir_list})
|
||||
message(STATUS "directory: ${directory}")
|
||||
px4_mangle_name(${directory} mangled_name)
|
||||
list(APPEND module_list
|
||||
${mangled_name})
|
||||
endforeach()
|
||||
px4_posix_generate_builtin_commands(
|
||||
OUT builtin_commands.cpp
|
||||
MODULE_LIST ${module_list})
|
||||
|
||||
add_executable(mainapp builtin_commands.cpp)
|
||||
target_link_libraries(mainapp
|
||||
${module_list}
|
||||
pthread m
|
||||
)
|
||||
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
#define PX4_GIT_VERSION_STR "1234567890123456789012345678901234567890"
|
||||
#define PX4_GIT_VERSION_BINARY 0x1234567890123456
|
||||
@@ -589,7 +589,7 @@ measairspeedsim_main(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
int ret;
|
||||
int ret = 0;
|
||||
|
||||
/*
|
||||
* Start/load the driver.
|
||||
|
||||
@@ -16,7 +16,7 @@ set(directories
|
||||
./motor_test
|
||||
./esc_calib
|
||||
./perf
|
||||
./topic_listener
|
||||
# ./topic_listener
|
||||
./dumpfile
|
||||
./pwm
|
||||
)
|
||||
|
||||
@@ -30,15 +30,15 @@
|
||||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
############################################################################
|
||||
#px4_add_module(
|
||||
#MODULE systemcmds__topic_listener
|
||||
#MAIN listener
|
||||
#STACK 1800
|
||||
#COMPILE_FLAGS
|
||||
#-Os
|
||||
#SRCS
|
||||
#topic_listener.cpp
|
||||
#DEPENDS
|
||||
#platforms__common
|
||||
#)
|
||||
px4_add_module(
|
||||
MODULE systemcmds__topic_listener
|
||||
MAIN listener
|
||||
STACK 1800
|
||||
COMPILE_FLAGS
|
||||
-Os
|
||||
SRCS
|
||||
topic_listener.cpp
|
||||
DEPENDS
|
||||
platforms__common
|
||||
)
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
|
||||
Reference in New Issue
Block a user