Sign inSign up

wifx/lorix-os-sdk

By wifx

Updated 5 months ago

Contains the LORIX OS toolchain and Golang. Use this to build your applications for LORIX OS.

Image
0

2.5K

wifx/lorix-os-sdk repository overview

LORIX OS SDK Docker image

Dockerfile for a LORIX OS SDK Docker image. This images allows anyone to easily build software targettting the Wifx LORIX products.

Image description

The image is based on Ubuntu 18.04 LTS and contains:

  • Build essentials
  • The LORIX OS toolchain
    • C compiler
    • Included libraries and their headers
  • The GO 1.13 compiler

Versions

The tag name corresponds to the version of LORIX OS the toolchain is from.

The version of the GO compiler corresponds to the version used in the corresponding LORIX OS version.

Use

Start a container in interactive mode:

docker run -it -v <project-path>:/root wifx/lorix-os-sdk

The -v argument mounts a volume between the host filesystem and the system running in the container, so you can access your files from the container

The environemnt is automatically prepared for the 'arm-lorixos-linux-gnueabi' toolchain.

Build your project:

arm-lorixos-linux-gnueabi-gcc
make
...

Build

To create a new version of the SDK, edit the docker file and edit the following variables:

LORIXOS_TOOLCHAIN_VERSION=<version of LORIX OS the toolchain targets>
GO_VERSION=<the version of the GO compiler that will be installed>

The assets are downloaded from the Internet (Wifx downloads and GO binary repository).

Build the image with:

docker build -t wifx/lorix-os-sdk:LORIXOS_TOOLCHAIN_VERSION .

Replace LORIXOS_TOOLCHAIN_VERSION with what you defined in the Dockerfile.

Tag summary

Content type

Image

Digest

sha256:73169d832

Size

1.5 GB

Last updated

5 months ago

docker pull wifx/lorix-os-sdk