RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
This document describes how to add a new configuration in yocto.
Adding a new machine to the Yocto Project involves following steps:
Use the yocto-layer create sub-command to create a new general layer.
There shall be separate device (machine) configuration file (.conf) for each device for the particular chip family for which the layer is intended for
The device (machine) configuration file shall include corresponding include (.inc) file to get machine configuration details.
To add a machine configuration, you need to add a .conf file with details of the device being added to the conf/machine/ file.
The most important variables to set in this file are as follows:
You might also need these variables:
The default configuration are defined in meta-rdk/conf/distro/rdk.conf and it should be overwritten by the machine specific conf file.
For example, meta-rdk-oem-<>/meta-<>/conf/machine/include/<>.inc
The OpenEmbedded build system needs to be able to build a kernel for the machine. We need to either create a new kernel recipe for this machine, or extend an existing recipe. There are several kernel examples in the Source Directory at meta/recipes-kernel/linux that can be used as references.
If you are creating a new recipe, following steps need to be done:
If you are extending an existing kernel, it is usually a matter of adding a suitable defconfig file. The file needs to be added into a location similar to defconfig files used for other machines in a given kernel.
A possible way to do this is by listing the file in the SRC_URI and adding the machine to the expression in COMPATIBLE_MACHINE:
The following kind of recipes can be added to SoC/OEM layer.
Create a custom package-group for the SoC/OEM which shall list all the recipes that are required for this image. For example, for the hybrid box the following recipe can be appended to the mediaserver package group.
Create a custom image for generating RFS for required SoC/OEM. For example,