| 1 |
<html> |
| 2 |
<head> |
| 3 |
<title>Running</title> |
| 4 |
</head> |
| 5 |
<body> |
| 6 |
<h1>Running</h1> |
| 7 |
|
| 8 |
<p>The build.sh and build_all.sh wrapper scripts are the easiest way |
| 9 |
to make CDs, but they're not very complicated.</p> |
| 10 |
|
| 11 |
<h2>build.sh</h2> |
| 12 |
|
| 13 |
<p>This loads the configuration from CONF.sh, set some more default |
| 14 |
configuration (in case it's not already set in CONF.sh), then |
| 15 |
runs:</p> |
| 16 |
|
| 17 |
<ul> |
| 18 |
|
| 19 |
<li><code>make distclean</code> - clean up after a previous run |
| 20 |
|
| 21 |
<li><code>make ${CODENAME}_status</code> - initialise the temp trees |
| 22 |
and seed the default set of base packages needed for the specified |
| 23 |
arch(es) |
| 24 |
|
| 25 |
<li><code>make mirrorcheck</code> - grab metadata from the mirror, |
| 26 |
used in generating jigdo files |
| 27 |
|
| 28 |
<li><code>make $IMAGETARGET</code> - will be the same as <code>make |
| 29 |
official_images</code> unless you've configured things |
| 30 |
differently. This is the step that actually builds images; more |
| 31 |
details later. |
| 32 |
|
| 33 |
<li><code>make imagesums</code> - generate md5sums of the completed |
| 34 |
images |
| 35 |
|
| 36 |
</ul> |
| 37 |
|
| 38 |
<h3>build.sh parameters</h3> |
| 39 |
|
| 40 |
<p>the <strong>single</strong> argument that build.sh takes is the |
| 41 |
architecture (or architectures) to build for. It will |
| 42 |
<strong>only</strong> build one set of CDs; if you specify more than |
| 43 |
one architecture as the parameter, the set will be multi-arch. Be |
| 44 |
aware, that to pass multiple arches as one parameter you need to |
| 45 |
specify them in quotes so the shell does not split them up, e.g.</p> |
| 46 |
|
| 47 |
<p><code>build.sh "i386 amd64 powerpc"</code></p> |
| 48 |
|
| 49 |
<h2>build_all.sh</h2> |
| 50 |
|
| 51 |
<p>build_all.sh is <strong>very</strong> similar to build_all.sh |
| 52 |
(deliberately). The only difference is that it will loop through a |
| 53 |
list of architectures, running each in turn and outputting them to a |
| 54 |
per-arch subdirectory in your output tree. That's all.</p> |
| 55 |
|
| 56 |
<hr> |
| 57 |
(c) Steve McIntyre <[email protected]>, December 2006. GPL v2<br> |
| 58 |
<a href="setup.html">Prev - Setup</a><br> |
| 59 |
<a href="makefile.html">Next - The Makefile, core control</a> |
| 60 |
</body> |
| 61 |
</html> |