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