Home of Toobo

The open source embedded web companion.

Toobo Build System gets a decent start.

build_verifiedFinally I got some time to setup and clean the non-existant build system for toobo. The build system for toobo contains multiple parts and so it isn’t wasn’t fast setting it up. Anyways, if you are interested in testing this out, all you need is a few commands (and a few tools at this point) to get the job done.

Previously there was no coherent mechanism to build all the stuff from scratch. The kernel was in some place, the toolchain was somewhere else, and the source code for toobo was in a different location on my PC. But the new build system I have setup tries to simplify all this. Of course there are quite a number of places where this can be improved but this should be a good starting point.

Before you start, you need to have the following tools installed in your system -

  • svn – This is required to download the directory structure and the source code.
  • cmake 2.6 – This is our may ‘out of source’ build system.
  • patch – Needed to patch the kernel and other source files later.
  • wget – Needed to download the toolchain and the kernel source.

If you do not have any of the above, toobo build may complain at various stages. If you are using an ubuntu based system use apt-get to get these packages.

So, after you have all the above, all you need to type is -

  1. mkdir toobo
  2. cd toobo
  3. svn checkout http://toobo.googlecode.com/svn/trunk/ toobo-read-only
  4. cd toobo-read-only
  5. cd downloads
  6. ./host_setup.sh ## Make sure this step completes without issues.
  7. cd .. ## go back to the top level toobo source directory.
  8. mkdir build
  9. cd build
  10. cmake .. ## This should build the kernel image for toobo.

Currently this is how far the build system takes you. I will try to keep it up to date as and when new code gets added. Since I am learning CMake, you will notice that I may have done something crazy in there…

This was tested only on a ubuntu 9.04 based system. So, let me know if you find other issues with this build process.

Later…

Tags: ,

Leave a Reply

Linux Podcasts