Nothing Special   »   [go: up one dir, main page]

Skip to content

ArduPilot/dema-rc

Repository files navigation

Gitlab pipeline status (branch)

dema-rc

Linux Drone Remote Controller

Binaries

The latest binaries for master branch can be downloaded directly from CI for SkyController 2: dema-rc bundle. This includes all dependencies and configuration files

GIT

ssh: git@github.com:lucasdemarchi/dema-rc.git

https/gitweb: https://github.com/lucasdemarchi/dema-rc.git

Requeriments

Build:

  • meson >= 0.57
  • ninja
  • gcc

Runtime:

  • libc: glibc, musl or uClibc
  • linux kernel >= 3.10 with config: *

Build instructions

Make sure to have all the submodules in place:

$ git submodule update --init --recursive

Native

$ mkdir build
$ meson setup build
$ ninja -C build

Cross-compile

We maintain a Dockerfile that has all the required dependencies for building for Parrot Disco drone. It basically it sets up a toolchain under /opt in the container. To build using a container you can use the commands below. Create toolchain:

$ docker build -t disco-builder -f ci/Dockerfile.debian ci/
$ mkdir build-armv7
$ docker run -it -v .:/src disco-builder meson setup --cross-file /opt/arm-buildroot-linux-gnueabihf_sdk-buildroot/etc/meson/cross-compilation.conf build-armv7
$ docker run -it -v .:/src disco-builder ninja -C build-armv7

If you prefer, you can also copy the toolchain off the container and just use it in your own host. Then you don't have to ever use the container again and can delete it.

$ docker create --name dummy -t disco-builder bash
$ docker cp dummy:/opt/arm-buildroot-linux-gnueabihf_sdk-buildroot /opt/
$ docker rm -f dummy

And then just build as you would on native, but passing the additional --cross-file to the setup:

$ mkdir build-armv7
$ meson setup --cross-file /opt/arm-buildroot-linux-gnueabihf_sdk-buildroot/etc/meson/cross-compilation.conf build-armv7
$ ninja -C build-armv7

License

LGPL v2.1+

About

Linux Drone Remote Controller

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •