config/kernel/linux.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Jun 27 21:03:40 2011 +0200 (2011-06-27)
changeset 2526 e5fb003a354c
parent 2514 8bb5151c5b01
child 2566 4d898ff53231
permissions -rw-r--r--
configure: disable static linking on Darwin

Static liunking is not supported on Darwin, so hide the corresponding
options when the build machine is Darwin.

Reported-by: Andrea Franceschini <therealmorpheu5@gmail.com>
Reported-by: Bryan Hundven <bryanhundven@gmail.com>
Reported-by: "Titus von Boxberg" <titus@v9g.de>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
     1 # Linux kernel options
     2 
     3 ## select KERNEL_SUPPORTS_SHARED_LIBS
     4 ##
     5 ## help Build a toolchain targeting systems running Linux as a kernel.
     6 
     7 choice
     8     bool
     9     prompt "Get kernel headers from:"
    10 
    11 config KERNEL_LINUX_INSTALL
    12     bool
    13     prompt "kernel's 'headers_install'"
    14     help
    15       This will make use of the new headers_install rule in recent kernels.
    16       This is most probably what you want to use.
    17 
    18 config KERNEL_LINUX_USE_CUSTOM_HEADERS
    19     bool
    20     prompt "pre-installed headers tree"
    21     help
    22       If you have some pre-installed kernel headers lying around, you can
    23       enter the path to these headers, below, they will be copied from
    24       there, and into the toolchain's sysroot.
    25       
    26       Note:
    27       This will *not* let you use a complete kernel tree!
    28       If you want to use your own full kernel tree, then you want to
    29       say 'Y' to KERNEL_LINUX_INSTALL, above, and select KERNEL_LINUX_CUSTOM.
    30 
    31 endchoice
    32 
    33 if KERNEL_LINUX_INSTALL
    34 
    35 choice
    36     bool
    37     prompt "Linux kernel version"
    38 # Don't remove next line
    39 # CT_INSERT_VERSION_BELOW
    40 
    41 config KERNEL_V_2_6_39_2
    42     bool
    43     prompt "2.6.39.2"
    44 
    45 config KERNEL_V_2_6_39_1
    46     bool
    47     prompt "2.6.39.1"
    48 
    49 config KERNEL_V_2_6_39
    50     bool
    51     prompt "2.6.39"
    52 
    53 config KERNEL_V_2_6_38_8
    54     bool
    55     prompt "2.6.38.8"
    56 
    57 config KERNEL_V_2_6_37_6
    58     bool
    59     prompt "2.6.37.6"
    60 
    61 config KERNEL_V_2_6_36_4
    62     bool
    63     prompt "2.6.36.4"
    64 
    65 config KERNEL_V_2_6_35_13
    66     bool
    67     prompt "2.6.35.13 (longterm)"
    68     help
    69       The Linux 2.6.35 tree is a "longterm" maintenance branch.
    70       
    71       It is intended to fill the niche for users who are not using distribution
    72       kernels but want to use a regression-free kernel for a longer time.
    73       
    74       Critical bug fixes to later 2.6 releases are often ported to this branch
    75       which makes 2.6.35 a very useful base for many embedded developers seeking
    76       stable APIs or those who do not need the latest bleeding edge features.
    77       
    78       ... and no, this kernel has not undergone any specific QA testing.
    79       
    80       See the original announcement by Andi Kleen in the following mailing
    81       list entry:
    82         http://marc.info/?l=linux-kernel&m=129136895415202&w=4
    83 
    84 config KERNEL_V_2_6_34_10
    85     bool
    86     prompt "2.6.34.10"
    87 
    88 config KERNEL_V_2_6_33_15
    89     bool
    90     prompt "2.6.33.15"
    91 
    92 config KERNEL_V_2_6_32_42
    93     bool
    94     prompt "2.6.32.42 (longterm)"
    95     help
    96       The Linux 2.6.32 tree is a "longterm" maintenance branch.
    97       
    98       It is intended to fill the niche for users who are not using distribution
    99       kernels but want to use a regression-free kernel for a longer time.
   100       
   101       Critical bug fixes to later 2.6 releases are often ported to this branch
   102       which makes 2.6.32 a very useful base for many embedded developers seeking
   103       stable APIs or those who do not need the latest bleeding edge features.
   104       
   105       ... and no, this kernel has not undergone any specific QA testing.
   106       
   107       See the original announcement by Greg Kroah-Hartman in the following
   108       mailing list entry:
   109         http://marc.info/?l=linux-kernel&m=126384198403392&w=4
   110 
   111 config KERNEL_V_2_6_31_14
   112     bool
   113     prompt "2.6.31.14"
   114 
   115 config KERNEL_V_2_6_27_59
   116     bool
   117     prompt "2.6.27.59 (longterm)"
   118     help
   119       The Linux 2.6.27 tree is a "longterm" maintenance branch.
   120       
   121       It is intended to fill the niche for users who are not using distribution
   122       kernels but want to use a regression-free kernel for a longer time.
   123       
   124       Critical bug fixes to later 2.6 releases are often ported to this branch
   125       which makes 2.6.27 a very useful base for many embedded developers seeking
   126       stable APIs or those who do not need the latest bleeding edge features.
   127       
   128       ... and no, this kernel has not undergone any specific QA testing.
   129       
   130       See the original announcement by Adrian Bunk in the following mailing list
   131       entry:
   132         http://marc.info/?l=linux-kernel&m=122375909403298&w=4
   133       
   134       It is now maintained by Greg Kroah-Hartman, see this mailing list entry:
   135         http://marc.info/?l=linux-kernel&m=129133701916793&w=4
   136 
   137 config KERNEL_LINUX_CUSTOM
   138     bool
   139     prompt "custom tarball"
   140     help
   141       Use a local tarball of a complete kernel source tree.
   142 
   143 config KERNEL_LINUX_CUSTOM_TARBALL
   144     string
   145     prompt "Path to custom tarball"
   146     depends on KERNEL_LINUX_CUSTOM
   147     help
   148       Enter here the path to the tarball of your full kernel tree.
   149 
   150 endchoice
   151 
   152 config KERNEL_VERSION
   153     string
   154 # Don't remove next line
   155 # CT_INSERT_VERSION_STRING_BELOW
   156     default "2.6.39.2" if KERNEL_V_2_6_39_2
   157     default "2.6.39.1" if KERNEL_V_2_6_39_1
   158     default "2.6.39" if KERNEL_V_2_6_39
   159     default "2.6.38.8" if KERNEL_V_2_6_38_8
   160     default "2.6.37.6" if KERNEL_V_2_6_37_6
   161     default "2.6.36.4" if KERNEL_V_2_6_36_4
   162     default "2.6.35.13" if KERNEL_V_2_6_35_13
   163     default "2.6.34.10" if KERNEL_V_2_6_34_10
   164     default "2.6.33.15" if KERNEL_V_2_6_33_15
   165     default "2.6.32.42" if KERNEL_V_2_6_32_42
   166     default "2.6.31.14" if KERNEL_V_2_6_31_14
   167     default "2.6.27.59" if KERNEL_V_2_6_27_59
   168 
   169 endif # KERNEL_LINUX_INSTALL
   170 
   171 if KERNEL_LINUX_USE_CUSTOM_HEADERS
   172 
   173 config KERNEL_LINUX_CUSTOM_PATH
   174     string
   175     prompt "Path to custom headers directory/tarball"
   176     help
   177       See KERNEL_LINUX_CUSTOM_IS_TARBALL, below.
   178 
   179 config KERNEL_LINUX_CUSTOM_IS_TARBALL
   180     bool
   181     prompt "This is a tarball"
   182     help
   183       If you say 'n' here, the path above is expected to point to a directory
   184       containing readily prepared headers
   185       
   186       If you say 'y' here, then the path above is expected to point to a
   187       tarball of such a directory.
   188       
   189       Eg., if your headers are available in: /foo/bar/buz/my_hdrs/include,
   190       say 'n' here, and enter: /foo/bar/buz/my_hdrs below.
   191       
   192       Now, passing a tarball around is easier than passing a directory, so
   193       if you want to, you can make a tarball of /foo/bar/buz/my_hdrs/include,
   194       say 'y' here, and enter the path to this tarball below.
   195 
   196 endif # KERNEL_LINUX_USE_CUSTOM_HEADERS