Cloning Tizen Source

1 Introduction

This document provides information about how to clone Tizen source, including the following:

  • Cloning over HTTPS

This document assumes that the instructions in the following documents have been read, well understood, and correctly followed:

 

Quick Start Guide: If you want to accustom yourself to the basic operations of the Tizen build procedure quickly, the quick start guide gets you started on Tizen build basics along with Tizen3.0 build procedure. It is written by bash shell script to support portability and compatibility among a lot of Linux distributions even though it has been tested on Ubuntu LTS. See  https://wiki.tizen.org/wiki/Tizen_3.0_GBS_Local_Fullbuild_Guide_for_TM1#Full_build 

2 Cloning over HTTPS

This section describes how to clone Tizen source over HTTPS, including the following:

  • Cloning specific project over HTTPS
  • Cloning all projects over HTTPS

2.1 Cloning Specific Project over HTTPS

This section describes how to clone specific project over HTTPS.

To clone specific project over HTTPS, perform the following procedure:

  1. Clone the required package by executing the following command:

    $ git clone [-b <Branch>] https://git.tizen.org/cgit/<Gerrit_Project> [<Local_Project>]
    

    An example is shown below:

    $ git clone https://git.tizen.org/cgit/platform/core/multimedia/avsystem
    

2.2 Cloning All projects over HTTPS

This section describes how to clone source of all projects over HTTPS, including the following:

  • Cloning the latest source of all projects over HTTPS

  • Cloning the snapshot source of all projects over HTTPS

     

To prepare for cloning, perform the following procedure:

  1. Create ~/bin/ subdirectory, include it in PATH, and then switch to it by executing the following commands:

    $ mkdir ~/bin/
    $ PATH=~/bin:$PATH
    
  2. Download the repo script by executing the following command:

    $ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
    
  3. Change the attribute of repo to make it executable by executing the command:

    $ sudo chmod a+x ~/bin/repo
    
  4. Create a new directory for Tizen and then switch to it by executing the following commands:

    $ mkdir ~/<Tizen_Project>
    $ cd ~/<Tizen_Project>
    

2.2.1 Cloning the Latest Source of All Projects over HTTPS

To clone the latest source of all projects over HTTPS, perform the following procedure:

  1. Initialize the repository by executing one of the following commands, as appropriate:

  2. Replace latest manifest with snapshot manifest and make proper modification by executing one of the following two sets of commands, as appropriate:

    • Tizen Common

      <Snapshot_Manifest_URL>  files are available at the snapshot manifest webpage.

      $ curl <Snapshot_Manifest_URL> > .repo/manifests/common/projects.xml

      The below example  is to change a project path correctly from 'framework/base/tizen-locale' to 'core/base/tizen-locale' after checking a correct path  of 'tizen-locale' package at https://review.tizen.org/gerrit/#/admin/projects/.

      $ sed -i -e 's/framework\/base\/tizen-locale/core\/base\/tizen-locale/g' .repo/manifests/common/projects.xml 
  3. Synchronize the repository by executing the following command:
    $ repo sync