config/kernel/linux.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Mar 07 13:17:27 2010 +0100 (2010-03-07)
changeset 1822 7893174d0fe8
parent 1802 cb9e664f758b
child 1840 2abad517a563
permissions -rw-r--r--
scripts: add script to make a release
     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 config KERNEL_LINUX_INSTALL_CHECK
    24     bool
    25     prompt "Check installed headers"
    26     default y
    27     help
    28       If you are in doubt that installed headers are buggy, say 'Y'
    29       here to have an extra check passed onto the headers.
    30 
    31 choice
    32     bool
    33     prompt "Linux kernel version"
    34 # Don't remove next line
    35 # CT_INSERT_VERSION_BELOW
    36 
    37 config KERNEL_V_2_6_33
    38     bool
    39     prompt "2.6.33"
    40 
    41 config KERNEL_V_2_6_32_9
    42     bool
    43     prompt "2.6.32.9"
    44 
    45 config KERNEL_V_2_6_31_12
    46     bool
    47     prompt "2.6.31.12"
    48 
    49 config KERNEL_V_2_6_30_10
    50     bool
    51     prompt "2.6.30.10"
    52 
    53 config KERNEL_V_2_6_29_6
    54     bool
    55     prompt "2.6.29.6 (OBSOLETE)"
    56     depends on OBSOLETE
    57 
    58 config KERNEL_V_2_6_28_10
    59     bool
    60     prompt "2.6.28.10 (OBSOLETE)"
    61     depends on OBSOLETE
    62 
    63 config KERNEL_V_2_6_27_45
    64     bool
    65     prompt "2.6.27.45 (long-term stable)"
    66     help
    67       The Linux 2.6.27 tree is the current "long-term stable" maintenance branch.
    68       It is intended to fill the niche for users who are not using distribution
    69       kernels but want to use a regression-free kernel for a longer time.
    70       
    71       Critical bug fixes to later 2.6 releases are often ported to this branch
    72       which makes 2.6.27 a very useful base for many embedded developers seeking
    73       stable APIs or those who do not need the latest bleeding edge features.
    74       
    75       ... and no, this kernel has not undergone any specific QA testing.
    76       
    77       See the original announcement by Adrian Bunk in the following mailing list
    78       entry: http://marc.info/?l=linux-kernel&m=122375909403298&w=2
    79 
    80 endchoice
    81 
    82 config KERNEL_VERSION
    83     string
    84 # Don't remove next line
    85 # CT_INSERT_VERSION_STRING_BELOW
    86     default "2.6.33" if KERNEL_V_2_6_33
    87     default "2.6.32.9" if KERNEL_V_2_6_32_9
    88     default "2.6.31.12" if KERNEL_V_2_6_31_12
    89     default "2.6.30.10" if KERNEL_V_2_6_30_10
    90     default "2.6.29.6" if KERNEL_V_2_6_29_6
    91     default "2.6.28.10" if KERNEL_V_2_6_28_10
    92     default "2.6.27.45" if KERNEL_V_2_6_27_45
    93 
    94 choice
    95     bool
    96     prompt "Kernel verbosity:"
    97     default KERNEL_LINUX_VERBOSITY_0
    98 
    99 config KERNEL_LINUX_VERBOSITY_0
   100     bool
   101     prompt "Simplified"
   102     help
   103       Print simplified command lines.
   104 
   105 config KERNEL_LINUX_VERBOSITY_1
   106     bool
   107     prompt "Full commands"
   108     help
   109       Print full command lines.
   110 
   111 config KERNEL_LINUX_VERBOSITY_2
   112     bool
   113     prompt "Exec reasons"
   114     help
   115       Print the reasons why a make target is rebuild.
   116 
   117 endchoice
   118 
   119 config KERNEL_LINUX_VERBOSE_LEVEL
   120     int
   121     default 0 if KERNEL_LINUX_VERBOSITY_0
   122     default 1 if KERNEL_LINUX_VERBOSITY_1
   123     default 2 if KERNEL_LINUX_VERBOSITY_2
   124 
   125 endif
   126 
   127 config KERNEL_LINUX_USE_CUSTOM_HEADERS
   128     bool
   129     prompt "Use custom headers"
   130     help
   131       If you have some kernel headers lying around, you can enter the path
   132       below.
   133 
   134 if KERNEL_LINUX_USE_CUSTOM_HEADERS
   135 
   136 config KERNEL_LINUX_CUSTOM_IS_TARBALL
   137     bool
   138     prompt "This is a tarball"
   139     default n
   140     help
   141       If you say 'n' here, the path below is expected to point to a directory
   142       containing readily prepared headers
   143       
   144       If you say 'y' here, then the path below is expected to point to a
   145       tarball of such a directory.
   146       
   147       Eg., if your headers are available in: /foo/bar/buz/my_hdrs/include,
   148       say 'n' here, and enter: /foo/bar/buz/my_hdrs below.
   149       
   150       Now, passing a tarball around is easier than passing a directory, so
   151       if you want to, you can make a tarball of /foo/bar/buz/my_hdrs/include,
   152       say 'y' here, and enter the path to this tarball below.
   153 
   154 config KERNEL_LINUX_CUSTOM_PATH
   155     string
   156     prompt "Path to custom headers directory/tarball"
   157     help
   158       See KERNEL_LINUX_CUSTOM_IS_TARBALL, above.
   159 
   160 endif # KERNEL_LINUX_USE_CUSTOM_DIR
   161 
   162 endchoice