config/kernel/linux.in
author Darcy Watkins <dwatkins@tranzeo.com>
Thu Aug 05 18:19:07 2010 +0200 (2010-08-05)
branch1.8
changeset 2073 a3b7a63dce01
parent 1990 c12158f27395
child 2062 11348ef5f0ac
permissions -rw-r--r--
cc/gcc: with static ppl, correctly link with libm

On some Fedora boxen (at least FC13), it is also required
to link with libm when static ppl is used.
(transplanted from bcd33fce4db9c18223b59ecdc96f10bf6dd574de)
yann@1345
     1
# Linux kernel options
yann@1345
     2
yann@448
     3
# Linux kernel options
yann@448
     4
yann@861
     5
config KERNEL_linux
yann@1500
     6
    select KERNEL_SUPPORTS_SHARED_LIBS
yann@861
     7
    help
yann@861
     8
      Build a toolchain targeting systems running Linux as a kernel.
yann@861
     9
yann@1345
    10
choice
yann@1345
    11
    bool
yann@1345
    12
    prompt "Get kernel headers from:"
yann@1345
    13
yann@1345
    14
config KERNEL_LINUX_INSTALL
yann@1345
    15
    bool
yann@1345
    16
    prompt "kernel's 'headers_install'"
yann@1345
    17
    help
yann@1345
    18
      This will make use of the new headers_install rule in recent kernels.
yann@1345
    19
      This is most probably what you want to use.
yann@1345
    20
yann@1345
    21
if KERNEL_LINUX_INSTALL
yann@1345
    22
yann@1345
    23
choice
yann@1345
    24
    bool
yann@1345
    25
    prompt "Linux kernel version"
yann@1535
    26
# Don't remove next line
yann@1535
    27
# CT_INSERT_VERSION_BELOW
yann@1345
    28
js@2011
    29
config KERNEL_V_2_6_34_1
js@2011
    30
    bool
js@2011
    31
    prompt "2.6.34.1"
js@2011
    32
yann@1952
    33
config KERNEL_V_2_6_34
yann@1952
    34
    bool
yann@1952
    35
    prompt "2.6.34"
yann@1952
    36
js@2011
    37
config KERNEL_V_2_6_33_6
js@2011
    38
    bool
js@2011
    39
    prompt "2.6.33.6"
js@2011
    40
yann@1974
    41
config KERNEL_V_2_6_33_5
yann@1974
    42
    bool
yann@1974
    43
    prompt "2.6.33.5"
yann@1974
    44
yann@1952
    45
config KERNEL_V_2_6_33_4
yann@1952
    46
    bool
yann@1952
    47
    prompt "2.6.33.4"
yann@1952
    48
yann@1952
    49
config KERNEL_V_2_6_33_3
yann@1952
    50
    bool
yann@1952
    51
    prompt "2.6.33.3"
yann@1952
    52
yann@1875
    53
config KERNEL_V_2_6_33_2
yann@1875
    54
    bool
yann@1875
    55
    prompt "2.6.33.2"
yann@1875
    56
yann@1840
    57
config KERNEL_V_2_6_33_1
yann@1840
    58
    bool
yann@1840
    59
    prompt "2.6.33.1"
yann@1840
    60
yann@1818
    61
config KERNEL_V_2_6_33
yann@1802
    62
    bool
yann@1818
    63
    prompt "2.6.33"
yann@1802
    64
js@2011
    65
config KERNEL_V_2_6_32_16
yann@1790
    66
    bool
js@2011
    67
    prompt "2.6.32.16"
yann@1665
    68
js@2011
    69
config KERNEL_V_2_6_31_14
jocke@1702
    70
    bool
js@2011
    71
    prompt "2.6.31.14"
yann@1534
    72
yann@1665
    73
config KERNEL_V_2_6_30_10
yann@1665
    74
    bool
yann@1665
    75
    prompt "2.6.30.10"
yann@1665
    76
js@2011
    77
config KERNEL_V_2_6_27_48
yann@1534
    78
    bool
js@2011
    79
    prompt "2.6.27.48 (long-term stable)"
jocke@1702
    80
    help
jocke@1702
    81
      The Linux 2.6.27 tree is the current "long-term stable" maintenance branch.
jocke@1702
    82
      It is intended to fill the niche for users who are not using distribution
jocke@1702
    83
      kernels but want to use a regression-free kernel for a longer time.
jocke@1702
    84
      
jocke@1702
    85
      Critical bug fixes to later 2.6 releases are often ported to this branch
jocke@1702
    86
      which makes 2.6.27 a very useful base for many embedded developers seeking
jocke@1702
    87
      stable APIs or those who do not need the latest bleeding edge features.
jocke@1702
    88
      
jocke@1702
    89
      ... and no, this kernel has not undergone any specific QA testing.
jocke@1702
    90
      
jocke@1702
    91
      See the original announcement by Adrian Bunk in the following mailing list
jocke@1702
    92
      entry: http://marc.info/?l=linux-kernel&m=122375909403298&w=2
yann@1534
    93
yann@1990
    94
config KERNEL_LINUX_CUSTOM
yann@1990
    95
    bool
yann@1990
    96
    prompt "custom tarball"
yann@1990
    97
    help
yann@1990
    98
      Use a local tarball of a complete kernel source tree.
yann@1990
    99
yann@1990
   100
config KERNEL_LINUX_CUSTOM_TARBALL
yann@1990
   101
    string
yann@1990
   102
    prompt "Path to custom tarball"
yann@1990
   103
    depends on KERNEL_LINUX_CUSTOM
yann@1990
   104
    help
yann@1990
   105
      Enter here the path to the tarball of your full kernel tree.
yann@1990
   106
yann@1345
   107
endchoice
yann@1345
   108
yann@1345
   109
config KERNEL_VERSION
yann@1345
   110
    string
yann@1535
   111
# Don't remove next line
yann@1535
   112
# CT_INSERT_VERSION_STRING_BELOW
js@2011
   113
    default "2.6.34.1" if KERNEL_V_2_6_34_1
yann@1952
   114
    default "2.6.34" if KERNEL_V_2_6_34
js@2011
   115
    default "2.6.33.6" if KERNEL_V_2_6_33_6
yann@1974
   116
    default "2.6.33.5" if KERNEL_V_2_6_33_5
yann@1952
   117
    default "2.6.33.4" if KERNEL_V_2_6_33_4
yann@1952
   118
    default "2.6.33.3" if KERNEL_V_2_6_33_3
yann@1875
   119
    default "2.6.33.2" if KERNEL_V_2_6_33_2
yann@1840
   120
    default "2.6.33.1" if KERNEL_V_2_6_33_1
yann@1818
   121
    default "2.6.33" if KERNEL_V_2_6_33
js@2011
   122
    default "2.6.32.16" if KERNEL_V_2_6_32_16
js@2011
   123
    default "2.6.31.14" if KERNEL_V_2_6_31_14
yann@1665
   124
    default "2.6.30.10" if KERNEL_V_2_6_30_10
js@2011
   125
    default "2.6.27.48" if KERNEL_V_2_6_27_48
yann@1345
   126
yann@1345
   127
choice
yann@1345
   128
    bool
yann@1345
   129
    prompt "Kernel verbosity:"
yann@1345
   130
    default KERNEL_LINUX_VERBOSITY_0
yann@1345
   131
yann@1345
   132
config KERNEL_LINUX_VERBOSITY_0
yann@1345
   133
    bool
yann@1345
   134
    prompt "Simplified"
yann@1345
   135
    help
yann@1345
   136
      Print simplified command lines.
yann@1345
   137
yann@1345
   138
config KERNEL_LINUX_VERBOSITY_1
yann@1345
   139
    bool
yann@1345
   140
    prompt "Full commands"
yann@1345
   141
    help
yann@1345
   142
      Print full command lines.
yann@1345
   143
yann@1345
   144
config KERNEL_LINUX_VERBOSITY_2
yann@1345
   145
    bool
yann@1345
   146
    prompt "Exec reasons"
yann@1345
   147
    help
yann@1345
   148
      Print the reasons why a make target is rebuild.
yann@1345
   149
yann@1345
   150
endchoice
yann@1345
   151
yann@1345
   152
config KERNEL_LINUX_VERBOSE_LEVEL
yann@1345
   153
    int
yann@1345
   154
    default 0 if KERNEL_LINUX_VERBOSITY_0
yann@1345
   155
    default 1 if KERNEL_LINUX_VERBOSITY_1
yann@1345
   156
    default 2 if KERNEL_LINUX_VERBOSITY_2
yann@1345
   157
yann@1989
   158
config KERNEL_LINUX_INSTALL_CHECK
yann@1989
   159
    bool
yann@1989
   160
    prompt "Check installed headers"
yann@1989
   161
    default y
yann@1989
   162
    help
yann@1989
   163
      If you are in doubt that installed headers are buggy, say 'Y'
yann@1989
   164
      here to have an extra check passed onto the headers.
yann@1989
   165
yann@1989
   166
endif # KERNEL_LINUX_INSTALL
yann@1345
   167
yann@1345
   168
config KERNEL_LINUX_USE_CUSTOM_HEADERS
yann@1345
   169
    bool
yann@1990
   170
    prompt "pre-installed headers tree"
yann@1345
   171
    help
yann@1990
   172
      If you have some pre-installed kernel headers lying around, you can
yann@1990
   173
      enter the path to these headers, below, they will be copied from
yann@1990
   174
      there, and into the toolchain's sysroot.
yann@1990
   175
      
yann@1990
   176
      Note:
yann@1990
   177
      This will *not* let you use a complete kernel tree!
yann@1990
   178
      If you want to use your own full kernel tree, then you want to
yann@1990
   179
      say 'Y' to KERNEL_LINUX_INSTALL, above, and select KERNEL_LINUX_CUSTOM.
yann@1345
   180
yann@1345
   181
if KERNEL_LINUX_USE_CUSTOM_HEADERS
yann@1345
   182
yann@1345
   183
config KERNEL_LINUX_CUSTOM_IS_TARBALL
yann@1345
   184
    bool
yann@1345
   185
    prompt "This is a tarball"
yann@1345
   186
    default n
yann@1345
   187
    help
yann@1345
   188
      If you say 'n' here, the path below is expected to point to a directory
yann@1345
   189
      containing readily prepared headers
yann@1345
   190
      
yann@1345
   191
      If you say 'y' here, then the path below is expected to point to a
yann@1345
   192
      tarball of such a directory.
yann@1345
   193
      
yann@1345
   194
      Eg., if your headers are available in: /foo/bar/buz/my_hdrs/include,
yann@1345
   195
      say 'n' here, and enter: /foo/bar/buz/my_hdrs below.
yann@1345
   196
      
yann@1345
   197
      Now, passing a tarball around is easier than passing a directory, so
yann@1345
   198
      if you want to, you can make a tarball of /foo/bar/buz/my_hdrs/include,
yann@1345
   199
      say 'y' here, and enter the path to this tarball below.
yann@1345
   200
yann@1345
   201
config KERNEL_LINUX_CUSTOM_PATH
yann@1345
   202
    string
yann@1345
   203
    prompt "Path to custom headers directory/tarball"
yann@1345
   204
    help
yann@1345
   205
      See KERNEL_LINUX_CUSTOM_IS_TARBALL, above.
yann@1345
   206
yann@1989
   207
endif # KERNEL_LINUX_USE_CUSTOM_HEADERS
yann@1345
   208
yann@1345
   209
endchoice