Languages

Menu
Sites
Language
Tizen offline build

Hi,

I'm building tizen 2.2 from as per the instructions https://source.tizen.org/documentation/articles/creating-tizen-platform-image-scratch-through-local-build

First time build was successful by connecting to internet.

Next time i'm trying to build from local repository without connecting to internet(I removed already built SRPMS and RPMS) .

 

But i'm getting error to build certatin packages without connecting to internet which were successful in the first iteration. Why this is happening? I need to have a successful build with local sources without connecting to net.

 

Regards,

Sai

 

Responses

2 Replies
muditha murthy

How did you build tizen 2.2 without coneecting to internet at first iteration.

tizendevteam T

dear developers,

GBS support local offline build, but need some manually work. gbs build need build config and repo, which will be used remote generally, but you can download them to local, let's take repo http://download.tizen.org/releases/2.2/tizen-2.2/ as an example, and assume you have already build some packages locally, do the following steps to prepare local offline build env:

   $ wget -o ~/tizen_2.2.conf http://download.tizen.org/snapshots/tizen/common/latest/builddata/979bdb3c452624c6e7ed15c8323b2eaba0d2a31d27c03227eae26dadf6130d37-build.conf
   $ mkdir ~/tizen-2.2-localrepo
   $ cp `find ~/GBS-ROOT/local/cache/ -name "*.rpm"` ~/tizen-2.2-localrepo  # ~/GBS-ROOT/local/cache/ contains rpms downloaded when you build packages.
   $ createrepo ~/tizen-2.2-localrepo

Next step is updating ~/.gbs.conf by adding a new profile for it:

 $ cat ~/.gbs.conf

[profile.tz2.2]
repos=tizen_2.2_local
buildconf = ~/tizen_2.2.conf
[repo.tizen_2.2_local]
url=~/tizen-2.2-localrepo

Now, you can build you packages offline

 $ cd path/to/pkg
 $ gbs build -A (i586|armv7l) -P tz2.2

Thanks