config/kernel/linux.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Mar 29 00:15:32 2010 +0200 (2010-03-29)
changeset 1864 758d5137fe87
parent 1818 533e48e6aa9e
child 1875 5b5fa5df819b
permissions -rw-r--r--
scripts/populate: optimise search loop

Curently, populate will iterate over all ELF (shared objects|executables)
to look for missing NEEDED DSOs, adding to the list at every iterations
of the search loop.

Instead of looking again at previously handled ELF files, recursively
resolve every ELf files.

Also, in case there are a whole lot of files (more than the shell can
accept as arguments list, or creating a command line longer than the
shell can cope with), use a temporary file with the list of files
to search for missing dependencies.
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@1840
    37
config KERNEL_V_2_6_33_1
yann@1840
    38
    bool
yann@1840
    39
    prompt "2.6.33.1"
yann@1840
    40
yann@1818
    41
config KERNEL_V_2_6_33
yann@1802
    42
    bool
yann@1818
    43
    prompt "2.6.33"
yann@1802
    44
yann@1840
    45
config KERNEL_V_2_6_32_10
yann@1790
    46
    bool
yann@1840
    47
    prompt "2.6.32.10"
yann@1665
    48
yann@1790
    49
config KERNEL_V_2_6_31_12
jocke@1702
    50
    bool
yann@1790
    51
    prompt "2.6.31.12"
yann@1534
    52
yann@1665
    53
config KERNEL_V_2_6_30_10
yann@1665
    54
    bool
yann@1665
    55
    prompt "2.6.30.10"
yann@1665
    56
yann@1534
    57
config KERNEL_V_2_6_29_6
yann@1534
    58
    bool
yann@1615
    59
    prompt "2.6.29.6 (OBSOLETE)"
yann@1615
    60
    depends on OBSOLETE
yann@1534
    61
yann@1534
    62
config KERNEL_V_2_6_28_10
yann@1534
    63
    bool
yann@1615
    64
    prompt "2.6.28.10 (OBSOLETE)"
yann@1615
    65
    depends on OBSOLETE
yann@1534
    66
yann@1790
    67
config KERNEL_V_2_6_27_45
yann@1534
    68
    bool
yann@1790
    69
    prompt "2.6.27.45 (long-term stable)"
jocke@1702
    70
    help
jocke@1702
    71
      The Linux 2.6.27 tree is the current "long-term stable" maintenance branch.
jocke@1702
    72
      It is intended to fill the niche for users who are not using distribution
jocke@1702
    73
      kernels but want to use a regression-free kernel for a longer time.
jocke@1702
    74
      
jocke@1702
    75
      Critical bug fixes to later 2.6 releases are often ported to this branch
jocke@1702
    76
      which makes 2.6.27 a very useful base for many embedded developers seeking
jocke@1702
    77
      stable APIs or those who do not need the latest bleeding edge features.
jocke@1702
    78
      
jocke@1702
    79
      ... and no, this kernel has not undergone any specific QA testing.
jocke@1702
    80
      
jocke@1702
    81
      See the original announcement by Adrian Bunk in the following mailing list
jocke@1702
    82
      entry: http://marc.info/?l=linux-kernel&m=122375909403298&w=2
yann@1534
    83
yann@1345
    84
endchoice
yann@1345
    85
yann@1345
    86
config KERNEL_VERSION
yann@1345
    87
    string
yann@1535
    88
# Don't remove next line
yann@1535
    89
# CT_INSERT_VERSION_STRING_BELOW
yann@1840
    90
    default "2.6.33.1" if KERNEL_V_2_6_33_1
yann@1818
    91
    default "2.6.33" if KERNEL_V_2_6_33
yann@1840
    92
    default "2.6.32.10" if KERNEL_V_2_6_32_10
yann@1790
    93
    default "2.6.31.12" if KERNEL_V_2_6_31_12
yann@1665
    94
    default "2.6.30.10" if KERNEL_V_2_6_30_10
yann@1534
    95
    default "2.6.29.6" if KERNEL_V_2_6_29_6
yann@1534
    96
    default "2.6.28.10" if KERNEL_V_2_6_28_10
yann@1790
    97
    default "2.6.27.45" if KERNEL_V_2_6_27_45
yann@1345
    98
yann@1345
    99
choice
yann@1345
   100
    bool
yann@1345
   101
    prompt "Kernel verbosity:"
yann@1345
   102
    default KERNEL_LINUX_VERBOSITY_0
yann@1345
   103
yann@1345
   104
config KERNEL_LINUX_VERBOSITY_0
yann@1345
   105
    bool
yann@1345
   106
    prompt "Simplified"
yann@1345
   107
    help
yann@1345
   108
      Print simplified command lines.
yann@1345
   109
yann@1345
   110
config KERNEL_LINUX_VERBOSITY_1
yann@1345
   111
    bool
yann@1345
   112
    prompt "Full commands"
yann@1345
   113
    help
yann@1345
   114
      Print full command lines.
yann@1345
   115
yann@1345
   116
config KERNEL_LINUX_VERBOSITY_2
yann@1345
   117
    bool
yann@1345
   118
    prompt "Exec reasons"
yann@1345
   119
    help
yann@1345
   120
      Print the reasons why a make target is rebuild.
yann@1345
   121
yann@1345
   122
endchoice
yann@1345
   123
yann@1345
   124
config KERNEL_LINUX_VERBOSE_LEVEL
yann@1345
   125
    int
yann@1345
   126
    default 0 if KERNEL_LINUX_VERBOSITY_0
yann@1345
   127
    default 1 if KERNEL_LINUX_VERBOSITY_1
yann@1345
   128
    default 2 if KERNEL_LINUX_VERBOSITY_2
yann@1345
   129
yann@1345
   130
endif
yann@1345
   131
yann@1345
   132
config KERNEL_LINUX_USE_CUSTOM_HEADERS
yann@1345
   133
    bool
yann@1345
   134
    prompt "Use custom headers"
yann@1345
   135
    help
yann@1345
   136
      If you have some kernel headers lying around, you can enter the path
yann@1345
   137
      below.
yann@1345
   138
yann@1345
   139
if KERNEL_LINUX_USE_CUSTOM_HEADERS
yann@1345
   140
yann@1345
   141
config KERNEL_LINUX_CUSTOM_IS_TARBALL
yann@1345
   142
    bool
yann@1345
   143
    prompt "This is a tarball"
yann@1345
   144
    default n
yann@1345
   145
    help
yann@1345
   146
      If you say 'n' here, the path below is expected to point to a directory
yann@1345
   147
      containing readily prepared headers
yann@1345
   148
      
yann@1345
   149
      If you say 'y' here, then the path below is expected to point to a
yann@1345
   150
      tarball of such a directory.
yann@1345
   151
      
yann@1345
   152
      Eg., if your headers are available in: /foo/bar/buz/my_hdrs/include,
yann@1345
   153
      say 'n' here, and enter: /foo/bar/buz/my_hdrs below.
yann@1345
   154
      
yann@1345
   155
      Now, passing a tarball around is easier than passing a directory, so
yann@1345
   156
      if you want to, you can make a tarball of /foo/bar/buz/my_hdrs/include,
yann@1345
   157
      say 'y' here, and enter the path to this tarball below.
yann@1345
   158
yann@1345
   159
config KERNEL_LINUX_CUSTOM_PATH
yann@1345
   160
    string
yann@1345
   161
    prompt "Path to custom headers directory/tarball"
yann@1345
   162
    help
yann@1345
   163
      See KERNEL_LINUX_CUSTOM_IS_TARBALL, above.
yann@1345
   164
yann@1345
   165
endif # KERNEL_LINUX_USE_CUSTOM_DIR
yann@1345
   166
yann@1345
   167
endchoice