Openmoko build / R&D vs Integration

John Lee john_lee at openmoko.com
Thu Apr 17 11:52:09 CEST 2008


On Thu, Apr 17, 2008 at 10:22:13AM +0100, Andy Green wrote:
> | Hi Andy,
> |
> | Again, could you PLEASE tell me what you're trying to do here?  You
> | just want to compile dm2, or you want to modify the code?
>
> Modify it and repackage.  What I really want to do is actually host it
> on git so I can work on it, and point the bb file to build against a
> stable branch of it from git.  But before I can even put it in git or do
> any work on it, I have to be able to even build it.

Great.  Once you finished the build I will give you a template of dm2
from git recipe.  Just fill in the git URI.

> | First of all the easiest way to setup the environment is MokoMakefile.
> |
> | http://wiki.openmoko.org/wiki/Mokomakefile
>
> And this did seem like it was the start of something.  But I was unsure
> if I build do the whole 12G / 5 hour odessy or what.

For dm2 you don't need that long.  I have this setting in my
local.conf (the one under moko/build/conf once you finished `make setup')
and it's a big time saver.

GLIBC_GENERATE_LOCALES = "en_US.UTF-8"

OE downloads everything and builds the toolchain by itself so the
first time will be slow.  It will be easier after that.

>
> | For the impatient:
> |
> | basically you just need to
>
> | mkdir ~/moko
> | cd ~/moko
> | wget http://svn.projects.openmoko.org/svnroot/mokomakefile/trunk/Makefile
> ...
>
> OK now this is the kind of thing I can use, I will give it a go: thanks
> for taking the time to write it up -- either you or me should write it
> up in the public Wiki if it works out.

It's basically the same thing on the mokomakefile wiki page.  Maybe we
can enhance that page.

> How I capture the built tree or decide what to put in git I dunno but it
> seems I can try to move on.

Check ~/moko/build/packages/openmoko/openmoko-dm2_svn.bb
(or https://svn.internal.openmoko.org/trunk/OE-overlay/packages/openmoko/openmoko-dm2_svn.bb)
You will see
SRC_URI = "svn://svn.internal.openmoko.org/trunk/production_testing;module=dm2;proto=https"

It actually means

https://svn.internal.openmoko.org/trunk/production_testing/dm2

> | Since it's a public list here I would like to add:
> |
> | The internal OE overlay is for NDA stuff such as production testing
> | software.  Now we decided to open that up as well.  This dm2 and tslib
> | fuss is part of it.
>
> Yep for me it means I get to spectate on what it is like to approach
> this build system from cold, as would a new developer: since I never
> used it before.
>
> - -Andy




More information about the distro-devel mailing list