Comments (7)
@kmitchel: Building SITL in the docker VM is not supported - since the SITL target needs a linux environment to run in anyway, the best approach is to build it on the machine it will be run on.
from docker-betaflight-build.
Would it be acceptable to move SITL into UNSUPPORTED_TARGETS, so it's not caught up in ALL?
from docker-betaflight-build.
Not really, as UNSUPPORTED_TARGETS
isn't specific to the docker build.
The docker build environment was created to give users not running linux a way (amongst others) to build individual targets, and specifically to allow them to do so without having to install a lot of different tools.
From the sound of it, what you are trying to do is different from this, so there might be a better way for you to get there. Can you please describe what you are trying to do?
from docker-betaflight-build.
Out of curiosity, I was trying to compare compile times between the docker container, and a XUbuntu-Core 18.04 VM. I have no real need of the SITL target, just noticed that it killed off the docker build.
I played with adding a docker-all target
in dockerfile
41:make ARM_SDK_DIR=${ARM_SDK_DIR} all_docker ${EXTRA_OPTIONS}; \
in Makefile
331:all_docker: $(DOCKER_TARGETS)
in targets.mk
DOCKER_TARGETS :=
It doesn't work. if I replace
from docker-betaflight-build.
Ah, interesting. What were your findings?
The one thing that I think might be of interest for users would be to compare these build times to the build times of builds done in WSL (https://github.com/betaflight/betaflight/wiki/Building-Betaflight-on-Windows,-the-Linux-subsystem-way).
It would probably be relatively easy to add gcc and any other tools / libraries required to build SITL to the list of packages that is installed through the Dockerfile - if you do so please open a pull request to add this to the official Dockerfile.
from docker-betaflight-build.
dockerfile 17:RUN DEBIAN_FRONTEND=noninteractive apt-get -y install gcc
Kind of surprised it was that simple. SITL compiles with a warninlib/main/dyad/dyad.c: In function 'dyad_update':
lib/main/dyad/dyad.c:738:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
if (select_has(&dyad_selectSet, SELECT_READ, stream->sockfd)) {
^
lib/main/dyad/dyad.c:746:7: note: here
case DYAD_STATE_CLOSING:
^~~~g
I'll continue to test tomorrow, TY.
from docker-betaflight-build.
I assumed it would be - SITL is a native linux build. The warning is probably just a switch
statement that needs an explicit FALLTHROUGH
- these warnings got added to gcc
after the SITL target was introduced.
from docker-betaflight-build.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-betaflight-build.