Tizen | Tizen 코드 설치 및 빌드 방법

  1. GBS, MICS 설치

    1
    2
    3
    $ deb http://download.tizen.org/tools/latest-relase/Ubuntu_14.04 /
    $ sudo apt-get update
    $ sudo apt-get install gbs
  2. Tizen code repo (Tizen 3.0 기준)

  • mobile 버전

    1
    $ repo init -u ssh://<username>@review.tizen.org:29418/scm/manifest -b tizen -m mobile.xml
  • ivi나 common버전을 받으려면 mobile.xml 대신 ivi.xml/common.xml로 받으면 된다.

  • username은 Gerrit에 등록된 이름
1
$ repo sync -j8
  1. Build
  • i586 아키텍처로 빌드
    1
    $ gbs build -A i586 --threads=4 --clean-once --exclude=gcc,cmake,filesystem,aul,libmm-sound,libtool

-armv7l 아키텍처로 빌드

1
2
3
$ skip_pkgs="bash,bzip2-libs,c-ares,cmake,coreutils,diffutils,eglibc,elfutils-libelf,elfutilslibs,elfutils,fdupes,file,findutils,gawk,gmp,libacl,libattr,libcap,libcurl,libfile,libgcc,liblua,libstdc ++,make,mpc,mpfr,ncurses-libs,nodejs,nspr,nss-softokn-freebl,nss,openssl,patch,popt,rpmlibs,rpm-build,sed,sqlite,tar,xz-libs,binutils,gcc,filesystem,aul,libmm- sound,libtool,syspopup,notification,libva,libzypp-bindings,rpm"
$ gbs build -A armv7l --threads=4 --clean-once --exclude=${skip_pkgs},filesystem, aul, libmm-sound, libtool

  • build완료하고 난 후에 error: some packages failed to be built 와 같은 에러가 발생하는데 이 에러는 무시해도 영향을 미치지 않는것 같다.

    왜 이런 에러가 발생하는지는 모르겠다ㅠ

ㅠㅠ

Build가 완료되면 RPM파일이 생성되는데 이 파일은 ~/GBS-ROOT/local/repos/tizen3.0_mobile(자신이 받은 버전)/i586(빌드한 아키텍처처)/RPMS 디렉토리에서 확인 가능하다.

Share