config/debug/gdb.in.native
author Michael Hope <michael.hope@linaro.org>
Thu Sep 29 12:40:42 2011 +1300 (2011-09-29)
changeset 2695 f2495884ca3e
parent 2098 9a8f0e3fe605
child 2717 13df2720b374
permissions -rw-r--r--
config: add a 'auto' value for the number of parallel jobs

When CT_PARALLEL_JOBS is -1, set the number of parallel jobs to the
number of online CPUs + 1. Update documentation to match.

I find this useful when building in the cloud. You can use the same
.config file and have the build adapt to the number of processors
available. Limited testing shows that NCPUS+1 is faster than NCPUS+0
or NCPUS+2.

Signed-off-by: Michael Hope <michael.hope@linaro.org>
     1 # Menu for the native GDB
     2 
     3 config GDB_NATIVE
     4     bool
     5     prompt "Native gdb"
     6     depends on ! BARE_METAL
     7     depends on ! BACKEND
     8     help
     9       Build and install a native gdb for the target, to run on the target.
    10 
    11 if GDB_NATIVE
    12 
    13 config GDB_NATIVE_NO_STATIC
    14     bool
    15 
    16 config GDB_NATIVE_STATIC
    17     bool
    18     prompt "Build a static native gdb"
    19     depends on ! GDB_NATIVE_NO_STATIC
    20     help
    21       In case you have trouble with dynamic loading of shared libraries,
    22       you will find that a static gdb comes in handy.
    23 
    24 endif # GDB_NATIVE