User talk:Emreturkay

From Openmoko

(Difference between revisions)
Jump to: navigation, search
 
Line 1: Line 1:
 
== Developing Applications for OpenMoko Platform ==
 
== Developing Applications for OpenMoko Platform ==
 +
 +
=== Setting up the environment ===
  
 
The OMDIR environment variable should be set to the path in which you downloaded the Moko Makefile. All the relative paths in this tutorial are given relative to the OMDIR. Therefore the first command should be
 
The OMDIR environment variable should be set to the path in which you downloaded the Moko Makefile. All the relative paths in this tutorial are given relative to the OMDIR. Therefore the first command should be

Revision as of 14:44, 21 September 2007

Developing Applications for OpenMoko Platform

Setting up the environment

The OMDIR environment variable should be set to the path in which you downloaded the Moko Makefile. All the relative paths in this tutorial are given relative to the OMDIR. Therefore the first command should be

 cd $OMDIR 

First we should create a local tree within our openmoko layout.

mkdir local local/classes local/conf local/packages
cp openmoko/trunk/oe/conf/site.conf local/conf

Then change the following two lines in the local/conf/site.conf file to

BBFILES := "${OMDIR}/openembedded/packages/*/*.bb ${OMDIR}/local/packages/*/*.bb"
BBFILE_COLLECTIONS = "upstream local overlay"

and add these lines

BBFILE_PATTERN_overlay = "^${OMDIR}/local/"
BBFILE_PRIORITY_overlay = "20"

Then update setup-env as below

export BBPATH="${OMDIR}/build:${OMDIR}/local:${OMDIR}/openembedded"

Then change the line below in /home/emre/moko/openmoko/trunk/src/host/openembedded/site.conf

BBFILES := "${OMDIR}/openembedded/packages/*/*.bb ${OMDIR}/local/packages/*/*.bb"
Personal tools

Developing Applications for OpenMoko Platform

Setting up the environment

The OMDIR environment variable should be set to the path in which you downloaded the Moko Makefile. All the relative paths in this tutorial are given relative to the OMDIR. Therefore the first command should be

 cd $OMDIR 

First we should create a local tree within our openmoko layout.

mkdir local local/classes local/conf local/packages
cp openmoko/trunk/oe/conf/site.conf local/conf

Then change the following two lines in the local/conf/site.conf file to

BBFILES := "${OMDIR}/openembedded/packages/*/*.bb ${OMDIR}/local/packages/*/*.bb"
BBFILE_COLLECTIONS = "upstream local overlay"

and add these lines

BBFILE_PATTERN_overlay = "^${OMDIR}/local/"
BBFILE_PRIORITY_overlay = "20"

Then update setup-env as below

export BBPATH="${OMDIR}/build:${OMDIR}/local:${OMDIR}/openembedded"

Then change the line below in /home/emre/moko/openmoko/trunk/src/host/openembedded/site.conf

BBFILES := "${OMDIR}/openembedded/packages/*/*.bb ${OMDIR}/local/packages/*/*.bb"