-
Notifications
You must be signed in to change notification settings - Fork 72
Building and testing on Tizen 2.1
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.
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
.
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
.
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/
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
- Log into the device as root by default:
sdb root on
. - 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
. - 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
. - 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
. - 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.