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
aff78e0f
Commit
aff78e0f
authored
9 years ago
by
Lorenz Meier
Browse files
Options
Downloads
Patches
Plain Diff
CMake / Ninja: Use console flag so upload targets can print their normal output and receive input.
parent
94bef4e1
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile
+3
-2
3 additions, 2 deletions
Makefile
cmake/common/px4_base.cmake
+1
-0
1 addition, 0 deletions
cmake/common/px4_base.cmake
src/firmware/posix/CMakeLists.txt
+1
-0
1 addition, 0 deletions
src/firmware/posix/CMakeLists.txt
with
5 additions
and
2 deletions
Makefile
+
3
−
2
View file @
aff78e0f
...
...
@@ -68,11 +68,11 @@ ARGS := $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS))
j
?=
4
# disable ninja by default for now because it hides upload progress
#
NINJA_BUILD := $(shell ninja --version 2>/dev/null)
NINJA_BUILD
:=
$(
shell ninja
--version
2>/dev/null
)
ifdef
NINJA_BUILD
PX4_CMAKE_GENERATOR
?=
"Ninja"
PX4_MAKE
=
ninja
PX4_MAKE_ARGS
=
PX4_MAKE_ARGS
=
else
ifdef
SYSTEMROOT
...
...
@@ -89,6 +89,7 @@ endif
# --------------------------------------------------------------------
# describe how to build a cmake config
define
cmake-build
+@if
[
$(PX4_CMAKE_GENERATOR)
==
"Ninja"
]
&&
[
-e
$(
PWD
)
/build_
$@
/Makefile
]
;
then
rm
-rf
$(
PWD
)
/build_
$@
;
fi
+@if
[
!
-e
$(PWD)/build_$@/CMakeCache.txt
];
then
git
submodule
update
--init
--recursive
--force
&&
mkdir
-p
$(PWD)/build_$@
&&
cd
$(PWD)/build_$@
&&
cmake
..
-G$(PX4_CMAKE_GENERATOR)
-DCONFIG
=
$(
1
);
fi
+$(PX4_MAKE)
-C
$(PWD)/build_$@
$(PX4_MAKE_ARGS)
$(ARGS)
endef
...
...
This diff is collapsed.
Click to expand it.
cmake/common/px4_base.cmake
+
1
−
0
View file @
aff78e0f
...
...
@@ -433,6 +433,7 @@ function(px4_add_upload)
WORKING_DIRECTORY
${
CMAKE_BINARY_DIR
}
COMMENT
"uploading
${
BUNDLE
}
"
VERBATIM
USES_TERMINAL
)
endfunction
()
...
...
This diff is collapsed.
Click to expand it.
src/firmware/posix/CMakeLists.txt
+
1
−
0
View file @
aff78e0f
...
...
@@ -28,6 +28,7 @@ add_custom_target(run_sitl
COMMAND Tools/sitl_run.sh
"
${
config_sitl_rcS
}
"
"
${
config_sitl_debugger
}
"
"
${
config_sitl_viewer
}
"
"
${
CMAKE_BINARY_DIR
}
"
WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
USES_TERMINAL
)
add_dependencies
(
run_sitl mainapp
)
...
...
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