Skip to content

ajjjjjjjj/opentx-docker-build

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

opentx-docker-build

Updated to support FlySky i6X and recent GCC version.

A Docker container for building firmware OpenTX,

The container contains a Debian Linux image pre-configured with the tools required to build OpenTX.
Running the container will compile the firmware from a local source tree and produce a compiled firmware image.

Instructions

Setup

  1. Install Docker

    • If installing on Windows choose Linux Containers when prompted
  2. Pull the container:

    docker pull ajjjjjjjj/opentx-docker-i6x

  3. Clone the OpenI6X repository:

    git clone --recursive -b master https://github.com/OpenI6X/opentx.git

Modify the Firmware

Use your tool of choice to make changes to the OpenTX source.

Board target name

You have to specify a board name as first env variable (BOARD_NAME), it is lowercase name like x10, t12, etc

Build the Firmware

  1. Run the container, specifying the path to the OpenTX source as a mount volume:

    docker run --rm -it -e "BOARD_NAME=i6x" -v [OpenTX Source Path]:/opentx ajjjjjjjj/opentx-docker-i6x

The compiled firmware image will be placed in the root of the source directory when the build has finished.

The default output name is opentx-boardname-2.3.3ver.bin but this will vary depending on any optional flags that may have been passed.

Changing the Build Flags

Build flags can be changed by passing a switch to the Docker container when it is run.

Default flags will be replaced by the new value, additional flags will be appended.

Examples

  1. Build from the source in /home/vitas/opentx.git and disable HELI:

    docker run --rm -it -v "/home/vitas/opentx.git/:/opentx" -e "BOARD_NAME=i6x" -e "CMAKE_FLAGS=HELI=NO" ajjjjjjjj/opentx-docker-i6x

About

docker to build opentx/jumper firmware

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 85.8%
  • Dockerfile 11.2%
  • Shell 3.0%