-
Notifications
You must be signed in to change notification settings - Fork 0
FAQ: RDK Docker Toolchain
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
- rdk-dunfell
- rdk-kirkstone
Once inside the Docker container, follow these steps to set up the environment:
- Navigate to the toolchain directory:
cd /opt/toolchains/rdk-glibc-x86_64-arm-toolchain/
- Source & Activate the environment setup for ARMv7:
. environment-setup-armv7at2hf-neon-oe-linux-gnueabi
- 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.
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
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.