Versions Compared

Key

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

...

Copyright 2016 RDK Management, LLC. All rights reserved. The contents of this document are RDK Management, LLC Proprietary and Confidential and may not be distributed or otherwise disclosed without prior written permission of RDK Management, LLC.

Host Setup

The OpenEmbedded build system should be able to run on any modern distribution with the following versions for Git, tar, and Python.

  • Git 1.7.8 or greater.

  • tar 1.24 or greater.

  • Python 2.7.3 or greater excluding Python 3.x, which is not supported.

Note: You should also have about 50 Gbytes of free disk space for building images.

Ubuntu and Debian


Pre-Requisites

Requirements

Remarks

Ubuntu versions32 bit Ubuntu 12.04 OS /Ubuntu 14.04 OS /32 bit Ubuntu 16.04 OS

Free HDD Space

Minimum 50GB Free Memory

Install the following packages for setting up your host VM

The instructions provided below are meant to be executed via the command line on an Ubuntu machine:The essential packages you need for a supported Ubuntu or Debian distribution are shown in the following command

Code Block
languagebash
themeDJango
$         sudo apt-get   install  make gcc g++ diffstat texinfo chrpath gcc-multilib git build-essential gettext bison libfile-slurp-perl gawk buildlibncurses-essentialdev autoconf flex doxygen libtool libncurses-dev gettext gperf lib32z1 libc6-i386 g++-multilib python-git

Building

...

 automake   libpcre3-dev zlib1g-dev libbz2-dev subversion minicom putty libssl-dev rpm python-pexpect python-svn python-argparse vim tofrodos meld dos2unix cmake uuid-dev ruby transfig libglib2.0-dev xutils-dev lynx-cur gperf autopoint   python-dulwich   python-dev curl vim diffstat texinfo chrpath   openjdk-7-jre

Note : Please note openjdk-7-jre package is not available for Ubuntu-16.04 anymore. Presumably openjdk-8-jre should be used instead.

Configure bash as default command interpreter for shell scripts

sudo dpkg-reconfigure dash

Select “No”
To choose bash, when the prompt asks if you want to use dash as the default system shell - select “No”

Configure Git

Upgrade your Git version to 1.8.x or higher

On Ubuntu 16.04 LTS, if you are unable to upgrade your git version using apt-get, then follow the below steps in order to upgrade  

$       sudo apt-get install python-software-properties

$       sudo add-apt-repository   ppa:git-core/ppa

$       sudo apt-get update

$       sudo apt-get install git

  Once git is installed, configure your name and email using the below commands

$ git config --global user.email " you@example.com "

$  git config --global user.name "Your Name"

Repo setup

In order to install Repo make sure you have a /bin directory in your home directory and that it is included in your path

...

languagebash
themeDJango

...

Repo Setup Steps

$ mkdir ~/bin

...


$ PATH=~/bin:$PATH
Download the repo tool and ensure that it is executable

...

languagebash
themeDJango

$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo

...

 >

...

~/bin/repo

...


$ chmod

...

 a+x

...

~/bin/repo

Note: it is also recommended to put credentials in .netrc when interacting with repo.

A sample .netrc file is illustrated below



.netrc

...

machine code.rdkcentral.com
login YOUR_USERNAME
password YOUR_PASSWORD

...

Initilaizing the Build Environment

Note: Cloning the code before login once to code.rdkcentral.com, user would get the Authentication error, even though the account is in good standing and has all the required access. Please login to code.rdkcentral.com before attempting to clone.

To build, follow below instructions

Create workspace directory

Code Block
languagebash
themeDJango
mkdir <workspace dir>
cd <workspace dir>

Follow below instructions to create build with external sources

Code Block
languagebash
themeDJango
repo init -u https://code.rdkcentral.com/r/manifests -m rdkb-turris-pod-nosrc.xml -b rdk-next
repo sync -j4 --no-clone-bundle
MACHINE=turris-extender source meta-turris/setup-environment build-turris-ext
bitbake rdk-generic-extender-image

Else, follow below instructions to create build with no external source

Code Block
languagebash
themeDJango
repo init -u https://code.rdkcentral.com/r/manifests -m rdkb-turris-pod-extsrc.xml -b rdk-next
repo sync -j4 --no-clone-bundle
MACHINE=turris-extender source meta-turris/setup-environment build-turris-ext
bitbake rdk-generic-extender-image

...