This page has moved to: http://shr-project.org/trac/wiki/Building%20SHR

−

= New way (using FSO/SHR Makefile) =

+

−

+

−

There is a new (much simpler) way to build SHR that is under construction right now.

+

−

+

−

=== Before beginning ===

+

−

+

−

* Download the FSO/SHR ''Makefile'' and ''common'' directory from [http://shr.bearstech.com/ Bearstech] (see README for details). In the future, the necessary files will be automatically downloaded by the ''Makefile'', by now, you can use this simple [http://hacks-galore.org/aleix/files/scripts/get-shr.sh script] to download all files (including the ''Makefile''. ''wget'' is required, edit it to fulfill your needs), type:

Before building the image, you might want to update ''conf/local.conf'' (under ''shr-unstable'' in the top directory) to speed up the building process with:

+

−

+

−

PARALLEL_MAKE = "-j 4"

+

−

BB_NUMBER_THREADS = "4"

+

−

+

−

To avoid multiple locales generation, add:

+

−

+

−

GLIBC_GENERATE_LOCALES = "en_US.UTF-8"

+

−

+

−

this will also speed up the whole build.

+

−

+

−

=== First build ===

+

−

+

−

* You are now ready to build the SHR image:

+

−

+

−

$ make setup

+

−

$ cd shr-unstable

+

−

$ make image

+

−

+

−

''make setup'' will download FSO, bitbake and SHR in the ''shr'' directory (SHR root directory from now on).

+

−

+

−

By default, this will build the image for OM-GTA02. If you want to build the image for OM-GTA01:

+

−

+

−

$ cd shr-unstable

+

−

$ make setup-machine-om-gta01

+

−

+

−

you can change it back to OM-GTA02 with ''make setup-machine-om-gta02''.

+

−

+

−

=== Making changes ===

+

−

+

−

Make changes to an SHR project (e.g. openmoko-dialer3, under the SHR root directory), then under the top directory:

+

−

+

−

$ cd shr-unstable

+

−

$ . setup-env (only once per session)

+

−

$ bitbake -c clean openmoko-dialer3

+

−

$ bitbake -c build openmoko-dialer3

+

−

+

−

There is no need to check-in the changes to the repo as the system now looks for SHR packages in the local filesystem. The problem is that it is necessary to '''always''' clean the packages so bitbake gets the new changes next time you compile.

+

−

+

−

Also, note that we are using ''bitbake -c build'', this is because bitbake needs to do all the necessary steps before compiling (i.e. fetch, unpack, configure...).

+

−

+

−

When you are satisfied with your changes and want to create a new SHR image:

+

−

+

−

$ make image

+

−

+

−

=== Updating from other people's changes ===

+

−

+

−

Under the top directory:

+

−

+

−

$ make update-shr

+

−

+

−

Or under the SHR root directory:

+

−

+

−

$ svn update

+

−

+

−

If you want to update everything (FSO, bitbake and SHR), from the top directory:

+

−

+

−

$ make update

+

−

+

−

= Old way =

+

−

== Building openmoko-dialer3 ==

+

−

Currently this is the only package of any size being developed for SHR, and it's the only one with any instructions. If you start another SHR project (please check with [[User:Wurp|Bobby]] before starting one), put instructions for working on the project here!

+

−

+

−

=== Before beginning ===

+

−

You must build openembedded before you can build SHR packages. The easiest way is to go to http://wiki.openmoko.org/wiki/Mokomakefile and build using the instructions for FSO.

+

−

+

−

* Note: if building FSO fails using MokoMakefile (zhone! or no dbus show up on the top of the newly booted image), try using this

+

−

method: http://wiki.openmoko.org/wiki/FSO

+

−

+

−

The rest of these instructions are written assuming that you used Mokomakefile and that the directory you downloaded the base Makefile into (using wget) is $MOKO.

+

−

+

−

You must also download the SHR code using subversion. See http://projects.openmoko.org/projects/shr. We will refer to the directory to which you downloaded the project as $SHRSVN. (This directory should contain $SHRSVN/packages/openmoko-dialer3.bb)

Views

Personal tools

New way (using FSO/SHR Makefile)

There is a new (much simpler) way to build SHR that is under construction right now.

Before beginning

Download the FSO/SHR Makefile and common directory from Bearstech (see README for details). In the future, the necessary files will be automatically downloaded by the Makefile, by now, you can use this simple script to download all files (including the Makefile. wget is required, edit it to fulfill your needs), type:

There is no need to check-in the changes to the repo as the system now looks for SHR packages in the local filesystem. The problem is that it is necessary to always clean the packages so bitbake gets the new changes next time you compile.

Also, note that we are using bitbake -c build, this is because bitbake needs to do all the necessary steps before compiling (i.e. fetch, unpack, configure...).

When you are satisfied with your changes and want to create a new SHR image:

$ make image

Updating from other people's changes

Under the top directory:

$ make update-shr

Or under the SHR root directory:

$ svn update

If you want to update everything (FSO, bitbake and SHR), from the top directory:

$ make update

Old way

Building openmoko-dialer3

Currently this is the only package of any size being developed for SHR, and it's the only one with any instructions. If you start another SHR project (please check with Bobby before starting one), put instructions for working on the project here!

Before beginning

* Note: if building FSO fails using MokoMakefile (zhone! or no dbus show up on the top of the newly booted image), try using this
method: http://wiki.openmoko.org/wiki/FSO

The rest of these instructions are written assuming that you used Mokomakefile and that the directory you downloaded the base Makefile into (using wget) is $MOKO.

You must also download the SHR code using subversion. See http://projects.openmoko.org/projects/shr. We will refer to the directory to which you downloaded the project as $SHRSVN. (This directory should contain $SHRSVN/packages/openmoko-dialer3.bb)