Dextrose/Building: Difference between revisions
No edit summary |
No edit summary |
||
| Line 5: | Line 5: | ||
== Build host requirements == | == Build host requirements == | ||
The Dextrose build system runs on '''Fedora 11 i386''' through '''Fedora | The Dextrose build system runs on '''Fedora 11 i386''' through '''Fedora 14 x86_64'''. What the host system runs '''shouldn't''' matter, because the build runs in a chroot environment. olpc-os-builder does not yet run on Ubuntu due to a missing dependency (bitfrost). | ||
The initial build requires about '''700MB''' of rpm packages and Sugar activity bundles. The packages and bundles are cached for futures builds. | The initial build requires about '''700MB''' of rpm packages and Sugar activity bundles. The packages and bundles are cached for futures builds. | ||
| Line 25: | Line 25: | ||
make | make | ||
* Generate initial sequence number for the builds (42 is just | * Generate initial sequence number for the builds (42 is just an example) | ||
echo 42 >buildnr-dx | echo 42 >buildnr-dx | ||
| Line 31: | Line 31: | ||
== Creating a build == | == Creating a build == | ||
* Run the | * Run the build system as root: | ||
time ./osbuilder.py examples/dextrose2-xo1.ini | time sudo ./osbuilder.py examples/dextrose2-xo1.ini | ||
(if <code>sudo</code> isn't configured for your user, become root beforehand) | |||
The initial build may take several hours, depending on available bandwith. | |||
Subsequent builds will take about 15-20 minutes on average machines. | |||
Upon completion the new image will be available in <tt>build/output</tt>. | |||
Because several build tools (olpc-os-builder, imgcreate and yum) run chrooted | |||
and nested into each other, error output could be misleading or obscure. | |||
Because several build tools | Before digging into code, you can ask on IRC in case someone has already seen the same problem. | ||
== Publishing the images == | == Publishing the images == | ||