config/global/ct-behave.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Mar 29 12:06:58 2010 +0200 (2010-03-29)
changeset 1868 89f16f038b92
parent 1867 dc39960ecfd2
child 1869 619a87a01562
permissions -rw-r--r--
config: hide arch and kernel selection when used as a backend

When used as a backend, it is the responsibility of the upper-layer build
system to set the target architecture and kernel.
     1 # Options specific to crosstool-NG overall behavior
     2 
     3 comment "crosstool-NG behavior"
     4 
     5 config IS_A_BACKEND
     6     string
     7     option env="CT_IS_A_BACKEND"
     8 
     9 config BACKEND
    10     bool
    11     default y if IS_A_BACKEND =  "y" || IS_A_BACKEND =  "Y"
    12     default n if IS_A_BACKEND != "y" && IS_A_BACKEND != "Y"
    13 
    14 config BACKEND_ARCH
    15     string
    16     option env="CT_BACKEND_ARCH"
    17 
    18 if BACKEND && BACKEND_ARCH = ""
    19 comment "ERROR !!! Backend architecture is NOT set !"
    20 endif
    21 
    22 config BACKEND_KERNEL
    23     string
    24     option env="CT_BACKEND_KERNEL"
    25 
    26 if BACKEND && BACKEND_KERNEL = ""
    27 comment "ERROR !!! Backend kernel is NOT set !"
    28 endif
    29 
    30 config OBSOLETE
    31     bool
    32     prompt "Use obsolete features"
    33     default n
    34     help
    35       If you set this to Y, you will be able to select obsolete features.
    36       
    37       Such obsolete features are the use of old kernel headers, old gcc
    38       versions, etc... for which maintaining support in crosstool-NG
    39       would be very costly.
    40       
    41       It does not however mean that the specific feature or version has been
    42       marked obsolete by the upstream team.
    43 
    44 config EXPERIMENTAL
    45     bool
    46     prompt "Try features marked as EXPERIMENTAL"
    47     default n
    48     help
    49       If you set this to Y, then you will be able to try very experimental
    50       features.
    51       
    52       Experimental features can be one of:
    53         - working, in which case you should tell me it is!
    54         - buggy, in which case you could try patching and send me the result
    55         - unfinished, in which case you could try hacking it and send me the result
    56         - non-existant, in which case you could also try hacking it in and send me
    57           the result
    58 
    59 config DEBUG_CT
    60     bool
    61     prompt "Debug crosstool-NG"
    62     default n
    63     depends on ! BACKEND
    64     help
    65       Say 'y' here to get some options regarding debugging crosstool-NG.
    66 
    67 if DEBUG_CT
    68 
    69 config DEBUG_PAUSE_STEPS
    70     bool
    71     prompt "Pause between every steps"
    72     default n
    73     help
    74       Say 'y' if you intend to attend the build, and want to investigate
    75       the result of each steps before running the next one.
    76 
    77 config DEBUG_CT_SAVE_STEPS
    78     bool
    79     prompt "Save intermediate steps"
    80     default n
    81     help
    82       If you say 'y' here, then you will be able to restart crosstool-NG at
    83       any step.
    84       
    85       It is not currently possible to restart at any of the debug facilities.
    86       They are treated as a whole.
    87       
    88       See docs/overview.txt for the list of steps.
    89 
    90 config DEBUG_CT_SAVE_STEPS_GZIP
    91     bool
    92     prompt "gzip saved states"
    93     default y
    94     depends on DEBUG_CT_SAVE_STEPS
    95     help
    96       If you are tight on space, then you can ask to gzip the saved states
    97       tarballs. On the other hand, this takes some longer time...
    98       
    99       To lose as less time as possible, the gzip process is done with a low
   100       compression ratio (-3), which gives roughly 70% gain in size. Going
   101       further doesn't gain much, and takes far more time (believe me, I've
   102       got figures here! :-) ).
   103 
   104 config NO_OVERIDE_LC_MESSAGES
   105     bool
   106     prompt "Do *not* overide LC_MESSAGES (EXPERIMENTAL)"
   107     depends on EXPERIMENTAL
   108     default n
   109     help
   110       By default, crosstool-NG sets and exports LC_ALL=C so that the
   111       build.log file contains english messages, that can be read by
   112       people most likely to help interpret the logs. If you say N here,
   113       and your locale is not an english language, then dissecting your
   114       log file will be difficult for most people but you.
   115       
   116       If you say Y here, then your current locale settings will be used
   117       to print messages, instead of plain english.
   118       
   119       Say N, please.
   120 
   121 endif