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
d798869f
Commit
d798869f
authored
9 years ago
by
Mark Charlebois
Browse files
Options
Downloads
Plain Diff
Merge branch 'cmake-2' of
https://github.com/jgoppert/Firmware
into cmake2
parents
4764a624
852c72fd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
CMakeLists.txt
+0
-1
0 additions, 1 deletion
CMakeLists.txt
cmake/px4_nuttx_utils.cmake
+8
-8
8 additions, 8 deletions
cmake/px4_nuttx_utils.cmake
cmake/px4_utils.cmake
+1
-1
1 addition, 1 deletion
cmake/px4_utils.cmake
src/CMakeLists.txt
+1
-1
1 addition, 1 deletion
src/CMakeLists.txt
with
10 additions
and
11 deletions
CMakeLists.txt
+
0
−
1
View file @
d798869f
...
...
@@ -112,7 +112,6 @@ set(package-contact "px4users@googlegroups.com")
list
(
APPEND CMAKE_MODULE_PATH
${
CMAKE_SOURCE_DIR
}
/cmake
)
include
(
px4_
${
OS
}
_utils
)
set
(
px4_required_functions
px4_os_add_firmware
px4_os_prebuild_targets
px4_os_add_flags
)
...
...
This diff is collapsed.
Click to expand it.
cmake/px4_nuttx_utils.cmake
+
8
−
8
View file @
d798869f
...
...
@@ -278,12 +278,12 @@ endfunction()
#=============================================================================
#
# px4_add_flags
# px4_
os_
add_flags
#
# Set ths nuttx build flags.
#
# Usage:
# px4_add_flags(
# px4_
os_
add_flags(
# C_FLAGS <inout-variable>
# CXX_FLAGS <inout-variable>
# EXE_LINKER_FLAGS <inout-variable>
...
...
@@ -303,13 +303,13 @@ endfunction()
# DEFINITIONS : definitions
#
# Example:
# px4_add_flags(
# px4_
os_
add_flags(
# C_FLAGS CMAKE_C_FLAGS
# CXX_FLAGS CMAKE_CXX_FLAGS
# EXE_LINKER_FLAG CMAKE_EXE_LINKER_FLAGS
# INCLUDES <list>)
#
function
(
px4_add_flags
)
function
(
px4_
os_
add_flags
)
set
(
inout_vars
C_FLAGS CXX_FLAGS EXE_LINKER_FLAGS INCLUDE_DIRS LINK_DIRS DEFINITIONS
)
...
...
@@ -369,14 +369,14 @@ function(px4_add_flags)
foreach
(
var
${
inout_vars
}
)
string
(
TOLOWER
${
var
}
lower_var
)
set
(
${${
var
}}
${${${
var
}}}
${
added_
${
lower_var
}}
PARENT_SCOPE
)
message
(
STATUS
"nuttx: set(
${${
var
}}
${${${
var
}}}
${
added_
${
lower_var
}}
PARENT_SCOPE)"
)
#
message(STATUS "nuttx: set(${${var}} ${${${var}}} ${added_${lower_var}} PARENT_SCOPE)")
endforeach
()
endfunction
()
#=============================================================================
#
# px4_prebuild_targets
# px4_
os_
prebuild_targets
#
# This function generates os dependent targets
...
...
@@ -396,9 +396,9 @@ endfunction()
# Example:
# px4_os_prebuild_targets(OUT target_list BOARD px4fmu-v2)
#
function
(
px4_prebuild_targets
)
function
(
px4_
os_
prebuild_targets
)
px4_parse_function_args
(
NAME px4_
add_os_librarie
s
NAME px4_
os_prebuild_target
s
ONE_VALUE OUT BOARD THREADS
REQUIRED OUT BOARD
ARGN
${
ARGN
}
)
...
...
This diff is collapsed.
Click to expand it.
cmake/px4_utils.cmake
+
1
−
1
View file @
d798869f
...
...
@@ -605,7 +605,7 @@ function(px4_add_common_flags)
foreach
(
var
${
inout_vars
}
)
string
(
TOLOWER
${
var
}
lower_var
)
set
(
${${
var
}}
${${${
var
}}}
${
added_
${
lower_var
}}
PARENT_SCOPE
)
message
(
STATUS
"set(
${${
var
}}
${${${
var
}}}
${
added_
${
lower_var
}}
PARENT_SCOPE)"
)
#
message(STATUS "set(${${var}} ${${${var}}} ${added_${lower_var}} PARENT_SCOPE)")
endforeach
()
endfunction
()
...
...
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
1
−
1
View file @
d798869f
...
...
@@ -64,7 +64,7 @@ if (${OS} STREQUAL "nuttx")
px4_nuttx_add_firmware
(
OUT fw_main.px4 EXE main
)
px4_add_upload
(
OUT upload OS
${
OS
}
BOARD
${
BOARD
}
BUNDLE fw_main.px4
)
px4_generate_romfs
(
OUT romfs.img ROOT ROMFS/px4fmu_common
)
px4_
nuttx_
generate_romfs
(
OUT romfs.img ROOT ROMFS/px4fmu_common
)
endif
()
...
...
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