Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Building and testing on Tizen 2.1

Raphael Kubo da Costa edited this page Oct 3, 2013 · 8 revisions

The main reason for this repository to exist is to have the extensions actually running on a Tizen device. This article explains how to build and test your changes on a device running Tizen 2.1.

Prerequisites

You should have a Crosswalk RPM in a location that gbs can reach. A working RPM can be found in https://github.com/otcshare/crosswalk/releases. Extract the ZIP file and put the generated RPM in a directory found by gbs. By default, this would be ~/GBS-ROOT/local/repos/<repository name>/i586/RPMS.

sdb

The sdb utility is used for logging into the device and pushing files to it. You should be familiar with at least sdb root, sdb push and sdb shell.

gbs

Familiarity with Tizen's build process is always useful, particularly with gbs. For more information about it, see https://source.tizen.org/documentation/reference/git-build-system.

You should have a gbs configuration file that fetches packages for Tizen 2.1 mobile.

[general]
profile = profile.mobile_public
buildroot = ~/gbsroot/

[profile.mobile_public]
repos = repo.mobile_public_2.1

[repo.mobile_public_2.1]
url = http://download.tizen.org/releases/2.1/tizen-2.1/

Building

With the prerequisites in place, building the project and producing an RPM should be straightforward.

In the top-level source directory, run gbs build -A i586. The RPMs will be placed in your gbs build root, which, by default, is ~/GBS-ROOT/local/repos/<repository name>/i586/RPMS.

The resulting packages are(besides debuginfo, debugsource and devel packages):

  • tizen-extensions-crosswalk-${version}-${release}.${arch}.rpm
  • tizen-extensions-crosswalk-bluetooth-demo-${version}-${release}.${arch}.rpm
  • tizen-extensions-crosswalk-examples-${version}-${release}.${arch}.rp

Testing

  1. Log into the device as root by default: sdb root on.
  2. Push the generated RPM' package to the device: sdb push ~/GBS-ROOT/local/repos/<repository name>/i586/RPMS/tizen-extensions-crosswalk-0.2-0.i586.rpm /tmp sdb push ~/GBS-ROOT/local/repos/<repository name>/i586/RPMS/tizen-extensions-crosswalk-bluetooth-demo-0.2-0.i586.rpm /tmp sdb push ~/GBS-ROOT/local/repos/<repository name>/i586/RPMS/tizen-extensions-crosswalk-examples-0.2-0.i586.rpm /tmp.
  3. Install the extensions RPM into the device: sdb shell and, in the device, rpm -Uvh --force /tmp/tizen-extensions-crosswalk-examples-0.2-0.i586.rpm.
  4. Install demo and examples packages into device: sdb shell in the device, pkgcmd -i -t rpm -p tizen-extensions-crosswalk-bluetooth-demo-0.2-0.i586.rpm -q pkgcmd -i -t rpm -p tizen-extensions-crosswalk-examples-0.2-0.i586.rpm -q.
  5. From there, you can launch:
  • examples page with: tizen-extensions-crosswalk /usr/share/tizen-extensions-crosswalk/examples/index.html.
  • bluetooth demo page with: tizen-extensions-crosswalk /usr/share/tizen-extensions-crosswalk/demo/tizen/bluetooth.html
  • or use the launcher icons on menu-screen.
Clone this wiki locally