config/kernel/linux.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Thu Jun 17 18:30:09 2010 +0200 (2010-06-17)
changeset 1990 c12158f27395
parent 1989 f357bc3abfa6
child 2011 ab0543fc0ef0
permissions -rw-r--r--
kernel/linux: allow headers from full custom source tree

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