config/kernel/linux.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Oct 27 18:42:26 2008 +0000 (2008-10-27)
changeset 1001 c8ac48ba1411
parent 948 114a2e824cc7
child 1042 3d35a55cdfbc
permissions -rw-r--r--
Enhance the make fragments:
- comment the different parts
- re-order the code so that it is homogeneous amogst fragments
- eye-candy in some existing comments

/trunk/tools/tools.mk | 17 15 2 0 +++++++++++++++--
/trunk/steps.mk | 38 26 12 0 ++++++++++++++++++++++++++------------
/trunk/samples/samples.mk | 41 28 13 0 ++++++++++++++++++++++++++++-------------
/trunk/config/config.mk | 2 1 1 0 +-
4 files changed, 70 insertions(+), 28 deletions(-)
     1 # Linux kernel options
     2 
     3 config KERNEL_linux
     4     help
     5       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 if KERNEL_LINUX_INSTALL
    19 
    20 config KERNEL_LINUX_INSTALL_CHECK
    21     bool
    22     prompt "Check installed headers"
    23     default y
    24     help
    25       If you are in doubt that installed headers are buggy, say 'Y'
    26       here to have an extra check passed onto the headers.
    27 
    28 choice
    29     bool
    30     prompt "Linux kernel version"
    31 
    32 config KERNEL_V_2_6_18_8
    33     bool
    34     prompt "2.6.18.8 (OBSOLETE)"
    35     depends on OBSOLETE
    36 
    37 config KERNEL_V_2_6_19_7
    38     bool
    39     prompt "2.6.19.7 (OBSOLETE)"
    40     depends on OBSOLETE
    41 
    42 config KERNEL_V_2_6_20_21
    43     bool
    44     prompt "2.6.20.21 (OBSOLETE)"
    45     depends on OBSOLETE
    46 
    47 config KERNEL_V_2_6_21_7
    48     bool
    49     prompt "2.6.21.7 (OBSOLETE)"
    50     depends on OBSOLETE
    51 
    52 config KERNEL_V_2_6_22_19
    53     bool
    54     prompt "2.6.22.19 (OBSOLETE)"
    55     depends on OBSOLETE
    56 
    57 config KERNEL_V_2_6_23_17
    58     bool
    59     prompt "2.6.23.17 (OBSOLETE)"
    60     depends on OBSOLETE
    61 
    62 config KERNEL_V_2_6_24_7
    63     bool
    64     prompt "2.6.24.7 (OBSOLETE)"
    65     depends on OBSOLETE
    66 
    67 config KERNEL_V_2_6_25_19
    68     bool
    69     prompt "2.6.25.19 (OBSOLETE)"
    70     depends on OBSOLETE
    71 
    72 config KERNEL_V_2_6_26
    73     bool
    74     prompt "2.6.26"
    75 
    76 config KERNEL_V_2_6_26_1
    77     bool
    78     prompt "2.6.26.1"
    79 
    80 config KERNEL_V_2_6_26_2
    81     bool
    82     prompt "2.6.26.2"
    83 
    84 config KERNEL_V_2_6_26_3
    85     bool
    86     prompt "2.6.26.3"
    87 
    88 config KERNEL_V_2_6_26_4
    89     bool
    90     prompt "2.6.26.4"
    91 
    92 config KERNEL_V_2_6_26_5
    93     bool
    94     prompt "2.6.26.5"
    95 
    96 config KERNEL_V_2_6_26_6
    97     bool
    98     prompt "2.6.26.6"
    99 
   100 config KERNEL_V_2_6_26_7
   101     bool
   102     prompt "2.6.26.7"
   103 
   104 config KERNEL_V_2_6_27
   105     bool
   106     prompt "2.6.27"
   107 
   108 config KERNEL_V_2_6_27_1
   109     bool
   110     prompt "2.6.27.1"
   111 
   112 config KERNEL_V_2_6_27_2
   113     bool
   114     prompt "2.6.27.2"
   115 
   116 config KERNEL_V_2_6_27_3
   117     bool
   118     prompt "2.6.27.3"
   119 
   120 # CT_INSERT_VERSION_ABOVE
   121 # Don't remove above line!
   122 endchoice
   123 
   124 config KERNEL_VERSION
   125     string
   126     default "2.6.18.8" if KERNEL_V_2_6_18_8
   127     default "2.6.19.7" if KERNEL_V_2_6_19_7
   128     default "2.6.20.21" if KERNEL_V_2_6_20_21
   129     default "2.6.21.7" if KERNEL_V_2_6_21_7
   130     default "2.6.22.19" if KERNEL_V_2_6_22_19
   131     default "2.6.23.17" if KERNEL_V_2_6_23_17
   132     default "2.6.24.7" if KERNEL_V_2_6_24_7
   133     default "2.6.25.19" if KERNEL_V_2_6_25_19
   134     default "2.6.26" if KERNEL_V_2_6_26
   135     default "2.6.26.1" if KERNEL_V_2_6_26_1
   136     default "2.6.26.2" if KERNEL_V_2_6_26_2
   137     default "2.6.26.3" if KERNEL_V_2_6_26_3
   138     default "2.6.26.4" if KERNEL_V_2_6_26_4
   139     default "2.6.26.5" if KERNEL_V_2_6_26_5
   140     default "2.6.26.6" if KERNEL_V_2_6_26_6
   141     default "2.6.26.7" if KERNEL_V_2_6_26_7
   142     default "2.6.27" if KERNEL_V_2_6_27
   143     default "2.6.27.1" if KERNEL_V_2_6_27_1
   144     default "2.6.27.2" if KERNEL_V_2_6_27_2
   145     default "2.6.27.3" if KERNEL_V_2_6_27_3
   146 # CT_INSERT_VERSION_STRING_ABOVE
   147 # Don't remove above line!
   148 
   149 choice
   150     bool
   151     prompt "Kernel verbosity:"
   152     default KERNEL_LINUX_VERBOSITY_0
   153 
   154 config KERNEL_LINUX_VERBOSITY_0
   155     bool
   156     prompt "Simplified"
   157     help
   158       Print simplified command lines.
   159 
   160 config KERNEL_LINUX_VERBOSITY_1
   161     bool
   162     prompt "Full commands"
   163     help
   164       Print full command lines.
   165 
   166 config KERNEL_LINUX_VERBOSITY_2
   167     bool
   168     prompt "Exec reasons"
   169     help
   170       Print the reasons why a make target is rebuild.
   171 
   172 endchoice
   173 
   174 config KERNEL_LINUX_VERBOSE_LEVEL
   175     int
   176     default 0 if KERNEL_LINUX_VERBOSITY_0
   177     default 1 if KERNEL_LINUX_VERBOSITY_1
   178     default 2 if KERNEL_LINUX_VERBOSITY_2
   179 
   180 endif
   181 
   182 config KERNEL_LINUX_USE_CUSTOM_DIR
   183     bool
   184     prompt "Use custom directory"
   185     help
   186       If you have some kernel headers lying around, you can enter the path
   187       below.
   188 
   189 config KERNEL_LINUX_CUSTOM_DIR
   190     string
   191     prompt "Where are those custom headers?"
   192     depends on KERNEL_LINUX_USE_CUSTOM_DIR
   193     help
   194       Enter the base directory where the headers are to be found.
   195       
   196       Eg. if the headers are in /some/place/include, then enter /some/place.
   197           This is the same path you entered when you typed:
   198             make INSTALL_HDR_PATH=/some/place headers_install
   199 
   200 endchoice