Skip to content

FAQ: RDK Docker Toolchain

Ulrond edited this page Oct 22, 2024 · 2 revisions

Launching the Toolchain Docker Container

This manual guides you through the process of using the RDK Docker Toolchain to build projects targeted for ARM architecture, using Docker.

Note: At the time of writing this has yet to be published opensource, but will be soon

To start the Docker container and open a bash shell within it, use the following command:

sc docker run <docker> /bin/bash

Expected Dockers

  • rdk-dunfell
  • rdk-kirkstone

Setting Up the Environment

Once inside the Docker container, follow these steps to set up the environment:

  1. Navigate to the toolchain directory:
cd /opt/toolchains/rdk-glibc-x86_64-arm-toolchain/
  1. Source & Activate the environment setup for ARMv7:
. environment-setup-armv7at2hf-neon-oe-linux-gnueabi
  1. To verify that the compiler (CC) is set correctly in the environment, execute:
echo $CC

The output should start with arm-oe-linux-gnueabi-gcc followed by various compiler switches.

Building the Project

To build your project using the ARM toolchain, follow these steps:

  • Change to your project directory (replace with your actual project directory name):
cd <project>
  • Start the build process by specifying the target:
make TARGET=arm

Optional Single Command Execution

Alternatively, you can combine all the steps into a single command to set up the environment and build your project directly. Here’s how:

e.g.

sc docker run rdk-dunfell "/bin/bash -c '. /opt/toolchains/rdk-glibc-x86_64-arm-toolchain/environment-setup-armv7at2hf-neon-oe-linux-gnueabi; cd <project>; make TARGET=arm'"

Make sure to replace with your actual project directory. This command facilitates running everything in one go inside the Docker container.

Clone this wiki locally