-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* NuttX cmake * px4_macros:Pass the stringified predicate as second arg to static assert CC_ASSERT mapes to the c++ static_assert or provides the same funtionality for c via the other macros. The c++ static assert takes 2 argumants the prdicate and a message. This fixes the lacking second argument. * Updated nuttx and apps submodule to upstream nuttx 7.21+==master This is the latest uptake of upstream nuttx and apps. * ROMFS generate with xxd instead of objcopy * delete nuttx-patches * NuttX update submodules to latest px4_nuttx-master * fix nuttx apps and board dependency * docker_run update to latest container 2017-08-29 * cmake ROMFS portable sed usage * NuttX update submodules to latest px4_nuttx-master
- Loading branch information
Showing
162 changed files
with
3,218 additions
and
4,290 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule NuttX
deleted from
ba1850
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
|
||
message(STATUS "ROMFS: ${config_romfs_root}") | ||
|
||
set(romfs_temp_dir ${PX4_BINARY_DIR}/ROMFS/${config_romfs_root}) | ||
set(romfs_src_dir ${PX4_SOURCE_DIR}/ROMFS/${config_romfs_root}) | ||
|
||
# directory setup | ||
# copy all romfs files, process airframes, prune comments | ||
file(GLOB_RECURSE init_airframes ${PX4_SOURCE_DIR}/ROMFS/${config_romfs_root}/*/[1-9]*) | ||
add_custom_command(OUTPUT ${romfs_temp_dir}/init.d/rcS ${romfs_temp_dir}/init.d/rc.autostart | ||
COMMAND cmake -E copy_directory ${romfs_src_dir} ${romfs_temp_dir} | ||
COMMAND ${PYTHON_EXECUTABLE} ${PX4_SOURCE_DIR}/Tools/px_process_airframes.py | ||
-a ${romfs_temp_dir}/init.d | ||
-s ${romfs_temp_dir}/init.d/rc.autostart | ||
--board ${BOARD} | ||
COMMAND ${PYTHON_EXECUTABLE} ${PX4_SOURCE_DIR}/Tools/px_romfs_pruner.py | ||
--folder ${romfs_temp_dir} --board ${BOARD} | ||
DEPENDS | ||
${romfs_src_files} | ||
${init_airframes} | ||
${PX4_SOURCE_DIR}/ROMFS/${config_romfs_root}/init.d/rcS | ||
${PX4_SOURCE_DIR}/Tools/px_process_airframes.py | ||
) | ||
|
||
set(romfs_dependencies) | ||
list(APPEND romfs_dependencies | ||
${romfs_temp_dir}/init.d/rcS | ||
${romfs_temp_dir}/init.d/rc.autostart | ||
) | ||
|
||
# create romfs.bin | ||
add_custom_command(OUTPUT romfs.img | ||
COMMAND ${GENROMFS} -f romfs.img -d ${romfs_temp_dir} -V "NSHInitVol" -v > romfs.txt 2>&1 | ||
DEPENDS ${romfs_dependencies} | ||
) | ||
|
||
# create romfs.o | ||
add_custom_command(OUTPUT nsh_romfsimg.c | ||
COMMAND xxd -i romfs.img nsh_romfsimg.c | ||
COMMAND sed 's/unsigned/const unsigned/g' nsh_romfsimg.c > nsh_romfsimg.c.tmp && mv nsh_romfsimg.c.tmp nsh_romfsimg.c | ||
DEPENDS romfs.img | ||
) | ||
|
||
add_library(romfs STATIC nsh_romfsimg.c) | ||
set_target_properties(romfs PROPERTIES LINKER_LANGUAGE C) |
Oops, something went wrong.