config/kernel/linux.in
author Ray Donnelly <mingw.android@gmail.com>
Sat Sep 14 02:45:23 2013 +0100 (2013-09-14)
changeset 3231 69f5dc1ff327
parent 3211 c8e430a30696
child 3241 9bcbfe402be0
permissions -rw-r--r--
configure: Add --with-gperf option

On OS X, Apple supply an old gperf (3.0.3) with xcode and
xcode commandline tools which causes build failures:

./zconf.hash.c:183:17: error: expected expression
{offsetof(struct kconf_id_strings_t, kconf_id_strings_str2),

.. upgrading to gperf 3.0.4 was sufficient to fix this,
so this option allows the user to specify the gperf
program that they wish to use.

To install gperf 3.0.4 from homebrew, I did:

brew tap homebrew/dupes
brew install homebrew/dupes/gperf

.. then passed --with-gperf=$BREWFIX/Cellar/gperf/3.0.4/bin/gperf
to configure

Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
Message-Id: <CAOYw7dtCmcJ9WiqmQ81MmZeRPcV-tDOqe9=kRDW4uQGuZNd2Ng@mail.gmail.com>
Patchwork-Id: 274892
yann@448
     1
# Linux kernel options
yann@448
     2
yann@2444
     3
## select KERNEL_SUPPORTS_SHARED_LIBS
yann@2444
     4
##
yann@2444
     5
## help Build a toolchain targeting systems running Linux as a kernel.
yann@2446
     6
yann@2446
     7
config KERNEL_LINUX_USE_CUSTOM_HEADERS
yann@2446
     8
    bool
yann@2602
     9
    prompt "Use pre-installed headers tree (OBSOLETE)"
yann@2602
    10
    depends on OBSOLETE
yann@2446
    11
    help
yann@2446
    12
      If you have some pre-installed kernel headers lying around, you can
yann@2446
    13
      enter the path to these headers, below, they will be copied from
yann@2446
    14
      there, and into the toolchain's sysroot.
yann@2446
    15
      
yann@2446
    16
      Note:
yann@2446
    17
      This will *not* let you use a complete kernel tree!
yann@2602
    18
      If you want to use your own full kernel tree, then you want to say 'N'
yann@2602
    19
      here, and select KERNEL_LINUX_CUSTOM, in the versions list, below.
yann@2446
    20
yann@2603
    21
if ! KERNEL_LINUX_USE_CUSTOM_HEADERS
yann@2446
    22
yann@2446
    23
choice
yann@2446
    24
    bool
yann@2446
    25
    prompt "Linux kernel version"
yann@2446
    26
# Don't remove next line
yann@2446
    27
# CT_INSERT_VERSION_BELOW
yann@2446
    28
yann@3227
    29
config KERNEL_V_3_10
yann@3227
    30
    bool
yann@3227
    31
    prompt "3.10.2"
yann@3227
    32
yann@3211
    33
config KERNEL_V_3_9
benoit@3202
    34
    bool
yann@3227
    35
    prompt "3.9.11"
benoit@3197
    36
benoit@3184
    37
config KERNEL_V_3_8
benoit@3166
    38
    bool
yann@3227
    39
    prompt "3.8.13"
yann@3155
    40
benoit@3136
    41
config KERNEL_V_3_7
benoit@3114
    42
    bool
benoit@3197
    43
    prompt "3.7.10"
benoit@3114
    44
yann@3175
    45
config KERNEL_V_3_6
benoit@3114
    46
    bool
yann@3155
    47
    prompt "3.6.11"
benoit@3056
    48
yann@3175
    49
config KERNEL_V_3_5
benoit@3038
    50
    bool
yann@3086
    51
    prompt "3.5.7"
benoit@3038
    52
yann@3175
    53
config KERNEL_V_3_4
benoit@3038
    54
    bool
yann@3227
    55
    prompt "3.4.54"
benoit@2940
    56
yann@3175
    57
config KERNEL_V_3_3
benoit@2940
    58
    bool
yann@2993
    59
    prompt "3.3.8"
benoit@2940
    60
yann@3175
    61
config KERNEL_V_3_2
benoit@2940
    62
    bool
yann@3227
    63
    prompt "3.2.48"
yann@2812
    64
yann@3175
    65
config KERNEL_V_3_1
yann@2799
    66
    bool
yann@2852
    67
    prompt "3.1.10"
yann@2799
    68
yann@3175
    69
config KERNEL_V_3_0
yann@2799
    70
    bool
yann@3227
    71
    prompt "3.0.87"
yann@2568
    72
yann@3175
    73
config KERNEL_V_2_6_39
yann@2566
    74
    bool
yann@2596
    75
    prompt "2.6.39.4"
yann@2473
    76
yann@3175
    77
config KERNEL_V_2_6_38
yann@2473
    78
    bool
bryanhundven@2513
    79
    prompt "2.6.38.8"
yann@2446
    80
yann@3175
    81
config KERNEL_V_2_6_37
yann@2446
    82
    bool
yann@2446
    83
    prompt "2.6.37.6"
yann@2446
    84
yann@3175
    85
config KERNEL_V_2_6_36
yann@2446
    86
    bool
yann@2446
    87
    prompt "2.6.36.4"
yann@2446
    88
yann@3175
    89
config KERNEL_V_2_6_33
yann@2446
    90
    bool
yann@2741
    91
    prompt "2.6.33.20"
yann@2596
    92
    help
yann@2596
    93
      This is primarily for the use of those people who are stuck using the
yann@2596
    94
      .33-rt kernel.  Anyone else who really wants to use the .33 kernel tree
yann@2596
    95
      is welcome to use this one as well.
yann@2446
    96
yann@3175
    97
config KERNEL_V_2_6_32
yann@2446
    98
    bool
yann@3227
    99
    prompt "2.6.32.61 (longterm)"
yann@2446
   100
    help
yann@2446
   101
      The Linux 2.6.32 tree is a "longterm" maintenance branch.
yann@2446
   102
      
yann@2446
   103
      It is intended to fill the niche for users who are not using distribution
yann@2446
   104
      kernels but want to use a regression-free kernel for a longer time.
yann@2446
   105
      
yann@2446
   106
      Critical bug fixes to later 2.6 releases are often ported to this branch
yann@2446
   107
      which makes 2.6.32 a very useful base for many embedded developers seeking
yann@2446
   108
      stable APIs or those who do not need the latest bleeding edge features.
yann@2446
   109
      
yann@2446
   110
      ... and no, this kernel has not undergone any specific QA testing.
yann@2446
   111
      
yann@2446
   112
      See the original announcement by Greg Kroah-Hartman in the following
yann@2446
   113
      mailing list entry:
yann@2446
   114
        http://marc.info/?l=linux-kernel&m=126384198403392&w=4
yann@2446
   115
yann@3175
   116
config KERNEL_V_2_6_31
yann@2446
   117
    bool
yann@2446
   118
    prompt "2.6.31.14"
yann@2446
   119
yann@3175
   120
config KERNEL_V_2_6_27
yann@2446
   121
    bool
yann@2921
   122
    prompt "2.6.27.62 (longterm)"
yann@2446
   123
    help
yann@2446
   124
      The Linux 2.6.27 tree is a "longterm" maintenance branch.
yann@2446
   125
      
yann@2446
   126
      It is intended to fill the niche for users who are not using distribution
yann@2446
   127
      kernels but want to use a regression-free kernel for a longer time.
yann@2446
   128
      
yann@2446
   129
      Critical bug fixes to later 2.6 releases are often ported to this branch
yann@2446
   130
      which makes 2.6.27 a very useful base for many embedded developers seeking
yann@2446
   131
      stable APIs or those who do not need the latest bleeding edge features.
yann@2446
   132
      
yann@2446
   133
      ... and no, this kernel has not undergone any specific QA testing.
yann@2446
   134
      
yann@2446
   135
      See the original announcement by Adrian Bunk in the following mailing list
yann@2446
   136
      entry:
yann@2446
   137
        http://marc.info/?l=linux-kernel&m=122375909403298&w=4
yann@2446
   138
      
yann@2446
   139
      It is now maintained by Greg Kroah-Hartman, see this mailing list entry:
yann@2446
   140
        http://marc.info/?l=linux-kernel&m=129133701916793&w=4
yann@2446
   141
yann@2446
   142
config KERNEL_LINUX_CUSTOM
yann@2446
   143
    bool
sinseman44@2680
   144
    prompt "custom tarball or directory"
yann@2446
   145
    help
sinseman44@2680
   146
      Use a local tarball or local kernel directory of a complete kernel source tree.
yann@2446
   147
sinseman44@2680
   148
config KERNEL_LINUX_CUSTOM_LOCATION
yann@2446
   149
    string
sinseman44@2680
   150
    prompt "Path to custom source, tarball or directory"
yann@2446
   151
    depends on KERNEL_LINUX_CUSTOM
yann@2446
   152
    help
sinseman44@2680
   153
      Enter here the path to the tarball of your full kernel tree or
sinseman44@2680
   154
      kernel directory
yann@2446
   155
yann@2446
   156
endchoice
yann@2446
   157
yann@2446
   158
config KERNEL_VERSION
yann@2446
   159
    string
yann@2446
   160
# Don't remove next line
yann@2446
   161
# CT_INSERT_VERSION_STRING_BELOW
yann@3227
   162
    default "3.10.2" if KERNEL_V_3_10
yann@3227
   163
    default "3.9.11" if KERNEL_V_3_9
yann@3227
   164
    default "3.8.13" if KERNEL_V_3_8
benoit@3197
   165
    default "3.7.10" if KERNEL_V_3_7
yann@3175
   166
    default "3.6.11" if KERNEL_V_3_6
yann@3175
   167
    default "3.5.7" if KERNEL_V_3_5
yann@3227
   168
    default "3.4.54" if KERNEL_V_3_4
yann@3175
   169
    default "3.3.8" if KERNEL_V_3_3
yann@3227
   170
    default "3.2.48" if KERNEL_V_3_2
yann@3175
   171
    default "3.1.10" if KERNEL_V_3_1
yann@3227
   172
    default "3.0.87" if KERNEL_V_3_0
yann@3175
   173
    default "2.6.39.4" if KERNEL_V_2_6_39
yann@3175
   174
    default "2.6.38.8" if KERNEL_V_2_6_38
yann@3175
   175
    default "2.6.37.6" if KERNEL_V_2_6_37
yann@3175
   176
    default "2.6.36.4" if KERNEL_V_2_6_36
yann@3175
   177
    default "2.6.33.20" if KERNEL_V_2_6_33
yann@3227
   178
    default "2.6.32.61" if KERNEL_V_2_6_32
yann@3175
   179
    default "2.6.31.14" if KERNEL_V_2_6_31
yann@3175
   180
    default "2.6.27.62" if KERNEL_V_2_6_27
yann@2603
   181
    default "custom" if KERNEL_LINUX_CUSTOM
yann@2446
   182
yann@2603
   183
endif # ! KERNEL_LINUX_USE_CUSTOM_HEADERS
yann@2446
   184
yann@2446
   185
if KERNEL_LINUX_USE_CUSTOM_HEADERS
yann@2446
   186
yann@2446
   187
config KERNEL_LINUX_CUSTOM_PATH
yann@2446
   188
    string
yann@2446
   189
    prompt "Path to custom headers directory/tarball"
yann@2446
   190
    help
yann@2446
   191
      See KERNEL_LINUX_CUSTOM_IS_TARBALL, below.
yann@2446
   192
yann@2446
   193
config KERNEL_LINUX_CUSTOM_IS_TARBALL
yann@2446
   194
    bool
yann@2446
   195
    prompt "This is a tarball"
yann@2446
   196
    help
yann@2446
   197
      If you say 'n' here, the path above is expected to point to a directory
yann@2446
   198
      containing readily prepared headers
yann@2446
   199
      
yann@2446
   200
      If you say 'y' here, then the path above is expected to point to a
yann@2446
   201
      tarball of such a directory.
yann@2446
   202
      
yann@2446
   203
      Eg., if your headers are available in: /foo/bar/buz/my_hdrs/include,
yann@2446
   204
      say 'n' here, and enter: /foo/bar/buz/my_hdrs below.
yann@2446
   205
      
yann@2446
   206
      Now, passing a tarball around is easier than passing a directory, so
yann@2446
   207
      if you want to, you can make a tarball of /foo/bar/buz/my_hdrs/include,
yann@2446
   208
      say 'y' here, and enter the path to this tarball below.
yann@2446
   209
yann@2446
   210
endif # KERNEL_LINUX_USE_CUSTOM_HEADERS