Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Host Environment


Requirement

Yocto 4.0 (Kirkstone)

Linux

64 bit Ubuntu 20.04 LTS

...

...


LayerGB
RDKE OSS 75GB
RDKE Vendor50GB
RDKE Middleware 120GB
RDKE Application 50GB
RDKE Image Assembler 30GB
Host Tools

...

Versions
  • Git 1.8.3.1 or greater

  • tar 1.28 or greater

  • Python 3.9.0 or greater.

  • gcc 10.1 or greater.

  • GNU make 4.0 or greater


Ensure that python exists in /usr/bin/python. If not, create a softlink for /usr/bin/python to python executable.

Code Block
languagebash
themeDJango
$ which python

(should give)
/usr/bin/python



Packages 

Code Block
languagebash
themeDJango
sudo apt install ant build-essential chrpath 

...

cmake 

...

curl diffstat 

...

fd g++ g++-multilib gcc gcc-multilib \
git git-flow git-man jq libbz2-dev libffi-dev libglib2.0-dev libldap2-dev liblzma-dev libncurses5-dev \
libreadline-dev libsasl2-dev libsqlite3-dev libslang2-dev libssl-dev libxml2-dev libxmlsec1-dev \
llvm make nnn python3.8 ripgrep sysstat texinfo tk-dev tree wget \
xz-utils zip zlib1g-dev zstd

You also need to ensure you have the en_US.UTF-8 locale enabled:

Code Block
languagebash
themeDJango
locale --all-locales | grep en_US.utf8



Configure repo

In order to use Yocto build system, you need to ensure that repo is installed on the machine:

Code Block
languagebash
themeRDark
# create a bin directory
mkdir ~/bin
export PATH=~/bin:$PATH

# Download the repo tool and ensure that it is executable
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo



Configure Credentials

It is recommended to put credentials in a ~/.netrc

Code Block
languagebash
themeRDark
# RDK Central 

...

Gerrit
machine 

...

code.rdkcentral.com
    login <RDK 

...

Central SSO 

...

email 

...

address>
    password <PAT> 

# RDK Central 

...

Github
machine 

...

github.

...

com
    login 

...

<Public 

...

GitHub UserID>
    password <PAT>

...


Creating

...

Div
classoc-documentation-card

Image Removed

 

your Personal Access Tokens - PAT


Image Added

Set your Gerrit PAT here:  https://code.rdkcentral.com/r/settings/#HTTPCredentials

Image Modified

...

Image Added

For GitHub to create a PAT navigate

...

to Settings - Developer Settings - Personal access tokens - Tokens (classic)

Note: for git actions (clone/push/pr) you need to select at least the following scopes:

repo write:packages

Image Modified


Code Access

Div
classoc-documentation-card


Column
width

...

...

Image Removed

...

width5%

...

70%

Source Code

Access RDK source code via Github or Gerrit


Button Hyperlink
custom-iconGerrit.png
iconcustom
titleRDK Gerrit
typesubtle
urlhttps://code.rdkcentral.com/r/q/status:open+-is:wip
Button Hyperlink
titleRDK Github
typesubtle
urlhttps://github.com/rdkcentral

Div
dirlrt
classui-card
Column
width100%

Code Contribution Process

Please refer to the "How to Contribute" guide to explore different ways that you can contribute to the RDK community.

CSS Stylesheet
.wiki-content p{  font-family: 'Helvetica', cursive;font-size: 15px;}
.oc-documentation-card{
display: flex;
align-items: center;
border: 0.1px solid #d7d7d7;
box-shadow: 4px 2px 2px 0 rgba(128, 128, 128, 30); 
margin-bottom: 0.5rem;
box-shadow: 2px 2px 6px 0 rgba(0, 0, 0, 0.1);
}
.oc-documentation-card:hover{border: 3px solid #d7d7d7;}
.ui-card{  text-align:left;
display: flex!important;
margin-block-end:1rem!important; display: flex;
border: 0.1px solid #d7d7d7;
box-shadow: 4px 2px 2px 0 rgba(128, 128, 128, 30); 
margin-bottom: 0.5rem;
box-shadow: 2px 2px 6px 0 rgba(0, 0, 0, 0.1);
background-color:#ddf0e4;
  padding-top: 15px;
  padding-right: 15px;
  padding-left: 15px;
  }