OpenEmbedded development

From Navit's Wiki
Revision as of 17:58, 23 February 2009 by Udo (talk | contribs) (Nokia on n810 using OE)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Notes

First read the info from http://wiki.openembedded.net/index.php/Getting_Started
Then set up the build environment with the info from http://www.angstrom-distribution.org/building-angstrom
Do get bitbake 1.8.12. Do get the OE develpment branch:

 cd /OE 
 git clone git://git.openembedded.net/openembedded.git org.openembedded.stable 
 cd org.openembedded.stable 
 git checkout -b org.openembedded.stable origin/org.openembedded.stable

See my build/conf/local.conf at the bottom.

Edit org.openembedded.dev/conf/distro/chinook-compat.conf and change:

 PREFERRED_VERSION_expat            = "1.95.7"

into

 PREFERRED_VERSION_expat            = "2.0.0"

Then edit conf/distro/include/sane-srcrevs.inc to say:

 SRCREV_pn-navit ?= "2067"

(or the svn number you want to build, see http://navit.svn.sourceforge.net/viewvc/navit/trunk/?view=log )


In /packages/navit/navit.inc remove the EXTRA_OECONF line.

My navit_svn.bb at the bottom.


Then in navit.inc, comment out the RRECOMMENDS:

 DESCRIPTION = "Navit is a car navigation system with routing engine."
 LICENSE = "GPL"
 DEPENDS = "glib-2.0 gtk+"
 #RRECOMMENDS = "gpsd speechd flite"   <---
 ....

Then go to the main dir of the build environment (/stuff) and type:

 bitbake navit

The system will be busy for some time.
Drink some coffee...

When the bitbake build is ready, go to the chinook-compat--tmp/deploy directory to find your packages. Install and configure as described elsewhere.

Usefull reading: bitbake manual.

build/conf/local.conf:

 # Where to store sources 
 DL_DIR = "/home/udo/downloads" 
 # Which files do we want to parse: 
 BBFILES := "/usr/src/OE/org.openembedded.dev/packages/*/*.bb" 
 BBMASK = "" 
 # ccache always overfill $HOME.... 
 CCACHE="" 
 # What kind of images do we want? 
 IMAGE_FSTYPES = "jffs2 tar.gz " 
 # Set TMPDIR instead of defaulting it to $pwd/tmp 
 TMPDIR = "/usr/src/OE/${DISTRO}-tmp/" 
 # Make use of my SMP box 
 PARALLEL_MAKE="-j1" 
 BB_NUMBER_THREADS = "1" 
 # Set the Distro 
 DISTRO = "chinook-compat" 
 MACHINE = "nokia800" 
 ENABLE_BINARY_LOCALE_GENERATION=0
 PREFERRED_VERSION_navit="svn"
 PREFERRED_VERSION_avahi="0.6.23"
 PREFERRED_VERSION_udev="124"
 INHERIT += "insane"
 QA_LOG=1

org.openembedded.dev/packages/navit/navit_svn.bb:

 require navit.inc
 PV = "0.1.0+svn${SRCREV}"
 PR = "r1"
 DEFAULT_PREFERENCE = "10"
 S = "${WORKDIR}/navit"
 SRC_URI = "svn://anonymous@navit.svn.sourceforge.net/svnroot/navit/trunk;module=navit;proto=https"
 EXTRA_AUTORECONF = " -I m4"
 EXTRA_OECONF = "--disable-binding-python --disable-gui-sdl --disable-samplemap --enable-avoid-float --enable-avoid-unaligned --enable-gui-gtk --disable-postgresql --disable-graphics-sdl --enable-svg2png-scaling-flag=32,48 --enable-svg2png-scaling-nav=8,16,32,48"
 DEPENDS = "gtk+ libglade libosso libhildon"