config/kernel/linux.in
author Titus von Boxberg <titus@v9g.de>
Sat May 22 22:01:18 2010 +0200 (2010-05-22)
changeset 1970 cdd761ad2d1a
parent 1875 5b5fa5df819b
child 1974 444d434c658f
permissions -rw-r--r--
scripts/build/internals.sh: compile wrapper with portable options.

static linking is not possible on MacOS, and unnessecary on other systems.
The old optimization and warning flags crash the gcc on MacOS
and (imho) are a bit overdone for this software.
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
config KERNEL_LINUX_INSTALL_CHECK
yann@1345
    24
    bool
yann@1345
    25
    prompt "Check installed headers"
yann@1345
    26
    default y
yann@1345
    27
    help
yann@1345
    28
      If you are in doubt that installed headers are buggy, say 'Y'
yann@1345
    29
      here to have an extra check passed onto the headers.
yann@1345
    30
yann@1345
    31
choice
yann@1345
    32
    bool
yann@1345
    33
    prompt "Linux kernel version"
yann@1535
    34
# Don't remove next line
yann@1535
    35
# CT_INSERT_VERSION_BELOW
yann@1345
    36
yann@1952
    37
config KERNEL_V_2_6_34
yann@1952
    38
    bool
yann@1952
    39
    prompt "2.6.34"
yann@1952
    40
yann@1952
    41
config KERNEL_V_2_6_33_4
yann@1952
    42
    bool
yann@1952
    43
    prompt "2.6.33.4"
yann@1952
    44
yann@1952
    45
config KERNEL_V_2_6_33_3
yann@1952
    46
    bool
yann@1952
    47
    prompt "2.6.33.3"
yann@1952
    48
yann@1875
    49
config KERNEL_V_2_6_33_2
yann@1875
    50
    bool
yann@1875
    51
    prompt "2.6.33.2"
yann@1875
    52
yann@1840
    53
config KERNEL_V_2_6_33_1
yann@1840
    54
    bool
yann@1840
    55
    prompt "2.6.33.1"
yann@1840
    56
yann@1818
    57
config KERNEL_V_2_6_33
yann@1802
    58
    bool
yann@1818
    59
    prompt "2.6.33"
yann@1802
    60
yann@1952
    61
config KERNEL_V_2_6_32_13
yann@1790
    62
    bool
yann@1952
    63
    prompt "2.6.32.13"
yann@1665
    64
yann@1875
    65
config KERNEL_V_2_6_31_13
jocke@1702
    66
    bool
yann@1875
    67
    prompt "2.6.31.13"
yann@1534
    68
yann@1665
    69
config KERNEL_V_2_6_30_10
yann@1665
    70
    bool
yann@1665
    71
    prompt "2.6.30.10"
yann@1665
    72
yann@1875
    73
config KERNEL_V_2_6_27_46
yann@1534
    74
    bool
yann@1875
    75
    prompt "2.6.27.46 (long-term stable)"
jocke@1702
    76
    help
jocke@1702
    77
      The Linux 2.6.27 tree is the current "long-term stable" maintenance branch.
jocke@1702
    78
      It is intended to fill the niche for users who are not using distribution
jocke@1702
    79
      kernels but want to use a regression-free kernel for a longer time.
jocke@1702
    80
      
jocke@1702
    81
      Critical bug fixes to later 2.6 releases are often ported to this branch
jocke@1702
    82
      which makes 2.6.27 a very useful base for many embedded developers seeking
jocke@1702
    83
      stable APIs or those who do not need the latest bleeding edge features.
jocke@1702
    84
      
jocke@1702
    85
      ... and no, this kernel has not undergone any specific QA testing.
jocke@1702
    86
      
jocke@1702
    87
      See the original announcement by Adrian Bunk in the following mailing list
jocke@1702
    88
      entry: http://marc.info/?l=linux-kernel&m=122375909403298&w=2
yann@1534
    89
yann@1345
    90
endchoice
yann@1345
    91
yann@1345
    92
config KERNEL_VERSION
yann@1345
    93
    string
yann@1535
    94
# Don't remove next line
yann@1535
    95
# CT_INSERT_VERSION_STRING_BELOW
yann@1952
    96
    default "2.6.34" if KERNEL_V_2_6_34
yann@1952
    97
    default "2.6.33.4" if KERNEL_V_2_6_33_4
yann@1952
    98
    default "2.6.33.3" if KERNEL_V_2_6_33_3
yann@1875
    99
    default "2.6.33.2" if KERNEL_V_2_6_33_2
yann@1840
   100
    default "2.6.33.1" if KERNEL_V_2_6_33_1
yann@1818
   101
    default "2.6.33" if KERNEL_V_2_6_33
yann@1952
   102
    default "2.6.32.13" if KERNEL_V_2_6_32_13
yann@1875
   103
    default "2.6.31.13" if KERNEL_V_2_6_31_13
yann@1665
   104
    default "2.6.30.10" if KERNEL_V_2_6_30_10
yann@1875
   105
    default "2.6.27.46" if KERNEL_V_2_6_27_46
yann@1345
   106
yann@1345
   107
choice
yann@1345
   108
    bool
yann@1345
   109
    prompt "Kernel verbosity:"
yann@1345
   110
    default KERNEL_LINUX_VERBOSITY_0
yann@1345
   111
yann@1345
   112
config KERNEL_LINUX_VERBOSITY_0
yann@1345
   113
    bool
yann@1345
   114
    prompt "Simplified"
yann@1345
   115
    help
yann@1345
   116
      Print simplified command lines.
yann@1345
   117
yann@1345
   118
config KERNEL_LINUX_VERBOSITY_1
yann@1345
   119
    bool
yann@1345
   120
    prompt "Full commands"
yann@1345
   121
    help
yann@1345
   122
      Print full command lines.
yann@1345
   123
yann@1345
   124
config KERNEL_LINUX_VERBOSITY_2
yann@1345
   125
    bool
yann@1345
   126
    prompt "Exec reasons"
yann@1345
   127
    help
yann@1345
   128
      Print the reasons why a make target is rebuild.
yann@1345
   129
yann@1345
   130
endchoice
yann@1345
   131
yann@1345
   132
config KERNEL_LINUX_VERBOSE_LEVEL
yann@1345
   133
    int
yann@1345
   134
    default 0 if KERNEL_LINUX_VERBOSITY_0
yann@1345
   135
    default 1 if KERNEL_LINUX_VERBOSITY_1
yann@1345
   136
    default 2 if KERNEL_LINUX_VERBOSITY_2
yann@1345
   137
yann@1345
   138
endif
yann@1345
   139
yann@1345
   140
config KERNEL_LINUX_USE_CUSTOM_HEADERS
yann@1345
   141
    bool
yann@1345
   142
    prompt "Use custom headers"
yann@1345
   143
    help
yann@1345
   144
      If you have some kernel headers lying around, you can enter the path
yann@1345
   145
      below.
yann@1345
   146
yann@1345
   147
if KERNEL_LINUX_USE_CUSTOM_HEADERS
yann@1345
   148
yann@1345
   149
config KERNEL_LINUX_CUSTOM_IS_TARBALL
yann@1345
   150
    bool
yann@1345
   151
    prompt "This is a tarball"
yann@1345
   152
    default n
yann@1345
   153
    help
yann@1345
   154
      If you say 'n' here, the path below is expected to point to a directory
yann@1345
   155
      containing readily prepared headers
yann@1345
   156
      
yann@1345
   157
      If you say 'y' here, then the path below is expected to point to a
yann@1345
   158
      tarball of such a directory.
yann@1345
   159
      
yann@1345
   160
      Eg., if your headers are available in: /foo/bar/buz/my_hdrs/include,
yann@1345
   161
      say 'n' here, and enter: /foo/bar/buz/my_hdrs below.
yann@1345
   162
      
yann@1345
   163
      Now, passing a tarball around is easier than passing a directory, so
yann@1345
   164
      if you want to, you can make a tarball of /foo/bar/buz/my_hdrs/include,
yann@1345
   165
      say 'y' here, and enter the path to this tarball below.
yann@1345
   166
yann@1345
   167
config KERNEL_LINUX_CUSTOM_PATH
yann@1345
   168
    string
yann@1345
   169
    prompt "Path to custom headers directory/tarball"
yann@1345
   170
    help
yann@1345
   171
      See KERNEL_LINUX_CUSTOM_IS_TARBALL, above.
yann@1345
   172
yann@1345
   173
endif # KERNEL_LINUX_USE_CUSTOM_DIR
yann@1345
   174
yann@1345
   175
endchoice