config/global/build-behave.in
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Wed Jun 25 23:33:01 2014 +0200 (2014-06-25)
changeset 3325 069f43a215cc
parent 3119 1c56c03b7ed5
permissions -rw-r--r--
all: fix wildcard to work with make-4.x

In make-3.8x, the $(wildacrd) function would sort the entries,
while in make-4.x, it would just return the entries in any
unpredictable order [*]

Use the $(sort) function to get reproducible behaviour.

[*] Well, most probably the roder the entries appear when read
from readdir()

Reported-by: Andrew Ruder <andrew.ruder@elecsyscorp.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Tested-by: Andrew Ruder <andrew.ruder@elecsyscorp.com>
     1 # Options related to how the build behaves
     2 
     3 comment "Build behavior"
     4 
     5 comment "Build options hiden"
     6     depends on BACKEND
     7 
     8 config PARALLEL_JOBS
     9     int
    10     prompt "Number of parallel jobs" if ! BACKEND
    11     default 0
    12     help
    13       Number of jobs make will be allowed to run concurently.
    14       Set this higher than the number of processors you have, but not too high.
    15       A good rule of thumb is twice the number of processors you have.
    16       
    17       Enter 1 to have only one job at a time.
    18 
    19       Enter 0 to set automatically based on how many processors the host has.
    20 
    21 config LOAD
    22     string
    23     prompt "Maximum allowed load" if ! BACKEND
    24     default ""
    25     help
    26       Specifies that no new jobs should be started if there are others jobs
    27       running and the load average is at least this value.
    28 
    29       Leave to empty for no load limit.
    30 
    31       Note: any float value is allowed and will be passed to the '-l' option
    32             of make (for further details, refer to the make manpage).
    33 
    34 config USE_PIPES
    35     bool
    36     prompt "Use -pipe" if ! BACKEND
    37     default y
    38     help
    39       Use gcc's option -pipe to use pipes rather than temp files when building
    40       the toolchain.
    41 
    42 config EXTRA_CFLAGS_FOR_BUILD
    43     string
    44     prompt "Extra build compiler flags"
    45     default ""
    46     help
    47       Extra flags to pass to the build C and C++ compiler.
    48 
    49       May be used to change the default features of the build
    50       compiler such as turning off the stack protector or fortify.
    51       
    52 config EXTRA_LDFLAGS_FOR_BUILD
    53     string
    54     prompt "Extra build linker flags"
    55     default ""
    56     help
    57       Extra flags to pass to the build linker.
    58 
    59       May be used to change the default features of the build
    60       linker.
    61       
    62 config EXTRA_CFLAGS_FOR_HOST
    63     string
    64     prompt "Extra host compiler flags"
    65     default ""
    66     help
    67       Extra flags to pass to the host C and C++ compiler.
    68 
    69       May be used to change the default features of the host
    70       compiler such as turning off the stack protector or fortify.
    71       
    72 config EXTRA_LDFLAGS_FOR_HOST
    73     string
    74     prompt "Extra host linker flags"
    75     default ""
    76     help
    77       Extra flags to pass to the host linker.
    78 
    79       May be used to change the default features of the host
    80       linker.
    81 
    82 choice
    83     bool
    84     prompt "Shell to use as CONFIG_SHELL"
    85     default CONFIG_SHELL_BASH
    86     depends on ! BACKEND
    87 
    88 config CONFIG_SHELL_SH
    89     bool
    90     prompt "sh (the system shell)"
    91     help
    92       Use 'sh' as CONFIG_SHELL.
    93       
    94       ./configure scripts and Makefiles make intensive use of calling
    95       sub-shells. This is usually done by calling /bin/sh. /bin/sh ought
    96       to be an at-least-POSIX-conformant shell (that is, able to interpret
    97       POSIX shell scripts).
    98       
    99       On many (most?) systems, /bin/sh is a symlink to bash. On some other
   100       systems (eg. Ubuntu, latest Debian), /bin/sh points to dash (or ash).
   101       bash is a full-featured shell, with many extension to POSIX, but is
   102       quite slow (see ection BUGS in the bash man page), while dash is
   103       faster, with very few extensions to POSIX.  On the other hand, some
   104       ./configure scripts, although written to use /bin/sh, may really
   105       require to be run by bash.
   106       
   107       The default is to use bash, as some components (eg. GMP) will fail
   108       to build with anything else than bash.
   109       
   110       Unless you have a very strong reason not to (eg. you are debugging
   111       the bashisms in a ./configure script), you should use the default,
   112       and use bash.
   113 
   114 config CONFIG_SHELL_ASH
   115     bool
   116     prompt "ash (READ HELP!)"
   117     help
   118       Use 'ash' as CONFIG_SHELL.
   119       
   120       See help for CONFIG_SHELL_SH, above, for more explanations.
   121       
   122       NOTE: It is advised that you do NOT use ash as CONFIG_SHELL, as some
   123       components are broken. If you decide to use ash, and the build breaks,
   124       don't come moaning and set the CONFIG_SHELL to bash, below.
   125 
   126 config CONFIG_SHELL_BASH
   127     bool
   128     prompt "bash"
   129     help
   130       Use 'bash' as CONFIG_SHELL.
   131       
   132       See help for CONFIG_SHELL_SH, above, for more explanations.
   133 
   134 config CONFIG_SHELL_CUSTOM
   135     bool
   136     prompt "custom shell"
   137     help
   138       Enter full path to the custom shell below.
   139       
   140       See help for CONFIG_SHELL_SH, above, for more explanations.
   141 
   142 endchoice
   143 
   144 # Do not put this into the choice above, because the choice
   145 # is not available in BACKEND-mode, while we do want this to
   146 # be set even in BACKEND-mode.
   147 config CONFIG_SHELL_CUSTOM_PATH
   148     string
   149     prompt "Path to custom shell" if ! BACKEND
   150     depends on CONFIG_SHELL_CUSTOM || BACKEND
   151     default "/bin/sh"
   152 
   153 # Ditto.
   154 # And we must use the ./configured bash...
   155 config CONFIG_SHELL
   156     string
   157     default "/bin/sh"                   if CONFIG_SHELL_SH
   158     default "/bin/ash"                  if CONFIG_SHELL_ASH
   159     default "${bash}"                   if CONFIG_SHELL_BASH
   160     default CONFIG_SHELL_CUSTOM_PATH    if CONFIG_SHELL_CUSTOM || BACKEND