next up previous
Next: 4 Running LD Up: The Logical Disk Previous: 2 Setting up LD

3 Compiling LD


The following steps describe how to compile the new version of LLD. Since the mk_lld command links in some of the object files also used in the old version of LLD, the old version must also be compiled (using the VERSION_MERGER flag).

  1. Set up the source distribution of the Logical Disk

  2. Make sure that L_DISK_NAME is defined correctly (in the file disk.h in both LLD source directories).

  3. Depending on which way you want to run MinixLLD, define (or undefine) EXPLICIT_WORK. If you use the EXPLICIT_WORK flag, also define your do_experiment() function and the corresponding flag of the form [ name]_EXPERIMENT. The EXPLICIT_WORK and the [ name]_EXPERIMENT flags are defined in the Makefile of both the Minix and the LLD directories.

  4. Make sure that the VERSION_MERGER flag is defined in the Makefile of the LLD source directories and the command directory.

  5. Compile the Minix file system by issuing make fs in the fs directory. Ignore the linker error messages.

  6. Compile the MinixLLD system by issuing make lld in either of the two LLD source directories. You will need to make the old version of LLD for the next step.

  7. Make the mk_lld command by issuing make mk_lld in the command directory.

  8. You are all set to run MinixLLD by itself now. If you want to use the interactive shell, go on with the next two points.

  9. Make the startup command by issuing make startup in the unix directory.

  10. Make the rfs command by issuing make rfs in the unix directory.

next up previous
Next: 4 Running LD Up: The Logical Disk Previous: 2 Setting up LD

Last changed on 28 November 1995 by Robert Grimm