config/global/build-behave.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Oct 18 18:37:28 2008 +0000 (2008-10-18)
changeset 945 d0e5f04d2e06
parent 446 d205527c5e01
child 1444 8f6a793dc5b5
permissions -rw-r--r--
Extract the config files related stuff from the kconfig stuff
- create config/config.mk, with all the config.gen/ rules
- the only common points between config files and configurators:
- the top-level config file to include, stored in KCONFIG_TOP
- the config_file rules, which makes config files available to configurators
- dependency-files are renamed from %.d to %.dep (.d is reserved for directories)
- a few eye-candy here and there

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