2.1. Roll Development Environment

In this section, we'll build an example roll (the Valgrind Roll) from the ground up.

First, we need to create a development environment that can be used to build the Valgrind Roll. On a Rocks frontend, execute:

# mkdir -p /export/src/roll
# cd /export/src/roll
# rocks create new roll name=valgrind

There are several more options you can supply to "rocks create new roll" (execute "rocks create new roll help" to see all the options).

The command "rocks create new roll name=valgrind" creates the following file system:


└── valgrind
    ├── graphs
    │   └── default
    ├── nodes
    └── src
        ├── usersguide
        │   └── images
        └── valgrind
            └── Makefile
            └── test-1.0.tgz
            ├── version.mk

Note

At this point, the roll is "buildable". It doesn't actually do much, but the structure is functional. Type make roll to build the roll. When the build completes, a valgrind-1.0-0.<arch>.disk1.iso file should be in the build directory. This is the complete roll image.

Now we are ready to add packages to the Valgrind Roll.