diff options
-rw-r--r-- | index.html | 46 |
1 files changed, 45 insertions, 1 deletions
@@ -380,8 +380,52 @@ make modules | |||
380 | depends on the LITMUS<sup>RT</sup> kernel kernel and provides its own build system (based on <a href="http://www.scons.org/">scons</a>). | 380 | depends on the LITMUS<sup>RT</sup> kernel kernel and provides its own build system (based on <a href="http://www.scons.org/">scons</a>). |
381 | In order to compile <span class="src">liblitmus</span>, you need to adjust the | 381 | In order to compile <span class="src">liblitmus</span>, you need to adjust the |
382 | variable <span class="src">LITMUS_KERNEL</span> in the <span class="src">SConstruct</span> file to point to your | 382 | variable <span class="src">LITMUS_KERNEL</span> in the <span class="src">SConstruct</span> file to point to your |
383 | copy of the kernel. | 383 | copy of the kernel. Users should not update the <span class="src">SConstruct</span> file manually anymore. Instead, a <span class="src">.config</span> file can be created with appropriate variables. The required variables can be listed using <span class="src"> scons -h </span> command. This command lists the variables required for building the <span class="src"> liblitmus2010 </span> library. <br> |
384 | Sample output of <span class="src"> scons -h </span> is as shown below. | ||
384 | </p> | 385 | </p> |
386 | <p> | ||
387 | <pre class="shell"> | ||
388 | scons -h | ||
389 | scons: Reading SConscript files ... | ||
390 | scons: done reading SConscript files. | ||
391 | |||
392 | ============================================= | ||
393 | liblitmus --- The LITMUS^RT Userspace Library | ||
394 | |||
395 | There are a number of user-configurable build | ||
396 | variables. These can either be set on the | ||
397 | command line (e.g., scons ARCH=x86) or read | ||
398 | from a local configuration file (.config). | ||
399 | |||
400 | Run 'scons --dump-config' to see the final | ||
401 | build configuration. | ||
402 | |||
403 | Build Variables | ||
404 | --------------- | ||
405 | |||
406 | LITMUS_KERNEL: Where to find the LITMUS^RT kernel. ( /path/to/LITMUS_KERNEL ) | ||
407 | default: ../litmus2010 | ||
408 | actual: ../litmus2010 | ||
409 | |||
410 | PYTHON_HEADERS: Where to find Python headers. ( /path/to/PYTHON_HEADERS ) | ||
411 | default: /usr/include/python2.5 | ||
412 | actual: /usr/include/python2.5 | ||
413 | |||
414 | ARCH: Target architecture. (x86_64|sparc64|x86|i686) | ||
415 | default: x86_64 | ||
416 | actual: x86_64 | ||
417 | |||
418 | WSS: Working set size for pm analysis | ||
419 | default: 3072 | ||
420 | actual: 3072 | ||
421 | |||
422 | Use scons -H for help about command-line options. | ||
423 | </pre> | ||
424 | </p> | ||
425 | <p class="notopmargin"> | ||
426 | To summarize, the <span class="src"> liblitmus </span> can be obtained and | ||
427 | compiled with the following commands: | ||
428 | </p> | ||
385 | <pre class="shell"> | 429 | <pre class="shell"> |
386 | cd $DIR | 430 | cd $DIR |
387 | wget http://www.cs.unc.edu/~anderson/litmus-rt/download/2010.1/liblitmus-2010.1.tgz | 431 | wget http://www.cs.unc.edu/~anderson/litmus-rt/download/2010.1/liblitmus-2010.1.tgz |