Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Ruiz Garcia
Firmware
Commits
bbf043e3
Commit
bbf043e3
authored
9 years ago
by
James Goppert
Browse files
Options
Downloads
Patches
Plain Diff
More work on romfs.
parent
b7850fc3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+5
-0
5 additions, 0 deletions
CMakeLists.txt
cmake/px4_impl_nuttx.cmake
+18
-2
18 additions, 2 deletions
cmake/px4_impl_nuttx.cmake
src/CMakeLists.txt
+1
-1
1 addition, 1 deletion
src/CMakeLists.txt
with
24 additions
and
3 deletions
CMakeLists.txt
+
5
−
0
View file @
bbf043e3
...
...
@@ -136,6 +136,11 @@ endforeach()
# other modules
enable_testing
()
#=============================================================================
# programs
#
find_package
(
PythonInterp REQUIRED
)
#=============================================================================
# parameters
#
...
...
This diff is collapsed.
Click to expand it.
cmake/px4_impl_nuttx.cmake
+
18
−
2
View file @
bbf043e3
...
...
@@ -324,14 +324,30 @@ function(px4_nuttx_generate_romfs)
set
(
romfs_temp_dir
${
CMAKE_BINARY_DIR
}
/
${
ROOT
}
)
set
(
romfs_src_dir
${
CMAKE_SOURCE_DIR
}
/
${
ROOT
}
)
set
(
romfs_autostart
${
CMAKE_SOURCE_DIR
}
/Tools/px_process_airframes.py
)
set
(
romfs_pruner
${
CMAKE_SOURCE_DIR
}
/Tools/px_romfs_pruner.py
)
#message(STATUS "temp_dir: ${romfs_temp_dir}")
#message(STATUS "src_dir: ${romfs_src_dir}")
add_custom_command
(
OUTPUT rc.autostart
COMMAND
${
PYTHON_EXECUTABLE
}
${
romfs_autostart
}
-a
${
ROMFS_ROOT
}
/init.d
-s rc.autostart
)
add_custom_command
(
OUTPUT romfs.bin
COMMAND cmake -E remove_directory
${
romfs_temp_dir
}
COMMAND cmake -E copy_directory
${
romfs_src_dir
}
${
romfs_temp_dir
}
COMMAND cmake -E copy rc.autostart
${
romfs_temp_dir
}
/init.d
#TODO add romfs cleanup and pruning
COMMAND
${
PYTHON_EXECUTABLE
}
${
romfs_pruner
}
--folder
${
romfs_temp_dir
}
COMMAND
${
GENROMFS
}
-f
${
CMAKE_CURRENT_BINARY_DIR
}
/romfs.bin
-d
${
romfs_temp_dir
}
-V
"NSHInitVol"
DEPENDS
${
romfs_files
}
WORKING_DIRECTORY
${
CMAKE_BINARY_DIR
}
DEPENDS
${
romfs_files
}
rc.autostart
WORKING_DIRECTORY
${
CMAKE_
CURRENT_
BINARY_DIR
}
)
px4_bin_to_obj
(
OBJ
${
OUT
}
...
...
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
1
−
1
View file @
bbf043e3
...
...
@@ -46,7 +46,7 @@ if (${OS} STREQUAL "nuttx")
MODULE_LIST
${
module_list
}
)
px4_nuttx_generate_romfs
(
OUT romfs.o
ROOT
${
CMAKE_SOURCE_DIR
}
/
ROMFS/px4fmu_common
)
ROOT ROMFS/px4fmu_common
)
# add executable
add_executable
(
main builtin_commands.c romfs.o
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment