The following procedure assumes that the ChorusOS product has already been correctly installed on the host workstation. See Part I, Installing on the Host, for instructions.
Create and change to a build directory where you will build system images:
$ mkdir build_dir $ cd build_dir |
Set an environment variable to use with the configure(1CC) command as a shortcut to the base directory:
$ export DIR=/opt/SUNWconn/SEW/5.0-PowerPC/chorus-powerpc |
The PATH must be set correctly to include the directory:
install_dir/chorus-powerpc/tools/host/bin
where the default install_dir is /opt/SUNWconn/SEW/5.0-PowerPC.
The PATH environment variable must include /usr/openwin/bin, which contains the imake utility.
Configure the build directory, using the configure(1CC) command:
If you are building from a binary distribution:
$ configure -b $DIR/kernel \ $DIR/os \ $DIR/tools \ -s $DIR/src/nucleus/bsp \ $DIR/src/nucleus/bsp/powerpc/mcp7xx |
The above command configures the build directory to include components installed during the "Default Install". This command does not include optional components, such as the X library or code examples, that you decide to install separately on Solaris host workstations. For example, to include everything in your build environment:
$ configure -b $DIR/kernel \ $DIR/os \ $DIR/opt/X11 \ $DIR/tools \ -s $DIR/src/nucleus/bsp \ $DIR/src/nucleus/bsp/powerpc/mcp7xx \ $DIR/src/opt/examples |
If you are building from the source distribution, see the ChorusOS 5.0 Source Delivery Guide.
As a result of configuration, build_dir contains the Makefile, which generates the build environment, and the Paths file, which specifies paths to files required by and created in the build environment.
Generate the build environment:
$ make |
Build a system image:
$ make chorus |
The resulting system image file is located in the build directory, build_dir, and is called chorus.RAM.
You can also make a smaller system image that includes only the operating system microkernel:
$ make kernonly |