Dextrose/Building: Difference between revisions

No edit summary
No edit summary
Line 13: Line 13:
== How to create a build ==
== How to create a build ==


* Checkout our top-level build system:
=== First time preparation ===
 
* Checkout our top-level build system


   cd src/olpc
   cd src/olpc
   git clone git://git.sugarlabs.org/dextrose/mainline.git dextrose
   git clone git://git.sugarlabs.org/dextrose/mainline.git dextrose


* One time preparation:
* Install dependencies


   yum upgrade
   yum upgrade
   yum install libtomcrypt-devel bitfrost make gcc mtd-utils python-imgcreate zip unzip
   yum install libtomcrypt-devel bitfrost make gcc mtd-utils python-imgcreate zip unzip
* Compile C programs
   make
   make


* Build:
* Generate initial sequence number for the builds
 
  echo 42 >buildnr-dx
 
=== Daily routine ===
 
* Build (have a look at the available configuration files):


   time sudo ./osbuilder.py examples/dextrose2-xo1.ini
   time sudo ./osbuilder.py examples/dextrose2-xo1.ini


* Wait 15 minutes
* Wait 15-20 minutes


* Serve hot
* Serve hot


== Publishing the images ==
== Publishing the images ==