config/global/build-behave.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Aug 25 19:44:39 2008 +0000 (2008-08-25)
changeset 805 ae730f907bed
parent 446 d205527c5e01
child 1444 8f6a793dc5b5
permissions -rw-r--r--
Allow using ash as the shell for ./configure and make.
After an idea by "Martin Guy" <martinwguy@yahoo.it>:
http://sourceware.org/ml/crossgcc/2008-08/msg00037.html

/trunk/scripts/crosstool.sh | 4 4 0 0 ++++
/trunk/config/global/build-behave.in | 14 14 0 0 ++++++++++++++
2 files changed, 18 insertions(+)
     1 # Options related to how the build behaves
     2 
     3 comment "Build behavior"
     4 
     5 config PARALLEL_JOBS
     6     int
     7     prompt "Number of parallel jobs"
     8     default 1
     9     help
    10       Number of jobs make will be allowed to run concurently.
    11       Set this higher than the number of processors you have, but not too high.
    12       A good rule of thumb is twice the number of processors you have.
    13       
    14       Enter 1 (or 0) to have only one job at a time.
    15 
    16 config LOAD
    17     int
    18     prompt "Maximum allowed load"
    19     default 0
    20     help
    21       Specifies that no new jobs should be started if there are others jobs
    22       running and the load average is at least this value.
    23       
    24       Makes sense on SMP machines only.
    25       
    26       Enter 0 to have no limit on the load average.
    27       
    28       Note: only the integer part of the load is allowed here (you can't enter
    29             0.75 for example).
    30 
    31 config NICE
    32     int
    33     prompt "Nice level"
    34     default 0
    35     range 0 19
    36     help
    37       Renices the build process up.
    38 
    39 config USE_PIPES
    40     bool
    41     prompt "Use -pipe"
    42     default y
    43     help
    44       Use gcc's option -pipe to use pipes rather than temp files when building
    45       the toolchain.
    46 
    47 config CONFIG_SHELL_ASH
    48     bool
    49     prompt "Use 'ash' as CONFIG_SHELL"
    50     default n
    51     help
    52       Use /bin/ash as the shell used by ./configure scripts.
    53       
    54       ./configure scripts make intensive use of calling a sub-shell, and the
    55       traditional bash is slow, whereas ash is faster.
    56       
    57       Saying 'y' here should be safe enough, but some components may not
    58       accept using a shell other than bash (this is most probably true for
    59       old versions). If you have trouble, say 'n' here and see if it fixes it.