config/kernel/linux.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Sep 14 16:21:07 2008 +0000 (2008-09-14)
changeset 850 ef8549b58b6f
parent 448 08da017ba46b
child 856 8d23dc29eb7d
permissions -rw-r--r--
Introduce a new EXPERIMENTAL feature: BARE_METAL.
This should ultimately llow to build bare-metal compilers, for targets that have no kernel and no C library.
Move the C library build script to their own sub-directory; introduce an empty build script for bare-metal.
Move the compiler build script to its own sub-directory.
Move the kernel build script to its own sub-directory; introduce an empty build script for bare-metal.
Update the ARM target tuples to enable bare-metal targets.
Add two ARM bare-metal samples.
Add latest Linux kernel versions.

/trunk/scripts/build/kernel/none.sh | 77 6 71 0 +----
/trunk/scripts/build/cc/gcc.sh | 58 41 17 0 ++-
/trunk/scripts/build/libc/none.sh | 513 9 504 0 +-----------------------------
/trunk/scripts/crosstool.sh | 17 9 8 0 +
/trunk/scripts/functions | 6 4 2 0 +
/trunk/scripts/showSamples.sh | 6 3 3 0
/trunk/samples/arm-unknown-elf/crosstool.config | 225 225 0 0 +++++++++++++
/trunk/samples/arm-unknown-eabi/crosstool.config | 223 223 0 0 +++++++++++++
/trunk/config/kernel/linux_headers_install.in | 64 27 37 0 ++--
/trunk/config/kernel.in | 9 8 1 0 +
/trunk/config/toolchain.in | 1 1 0 0 +
/trunk/config/cc/gcc.in | 3 3 0 0 +
/trunk/config/debug/dmalloc.in | 1 1 0 0 +
/trunk/config/debug/gdb.in | 4 3 1 0 +
/trunk/config/debug/strace.in | 1 1 0 0 +
/trunk/config/debug/duma.in | 1 1 0 0 +
/trunk/config/cc.in | 8 8 0 0 +
/trunk/config/target.in | 13 13 0 0 +
/trunk/config/binutils.in | 1 1 0 0 +
/trunk/config/gmp_mpfr.in | 1 1 0 0 +
/trunk/config/libc.in | 17 11 6 0 +
/trunk/arch/arm/functions | 3 1 2 0 -
22 files changed, 600 insertions(+), 652 deletions(-)
     1 # Linux kernel options
     2 
     3 choice
     4     bool
     5     prompt "Get kernel headers from:"
     6 
     7 config KERNEL_LINUX_HEADERS_INSTALL
     8     bool
     9     prompt "kernel's 'headers_install'"
    10     help
    11       This will make use of the new headers_install rule in recent kernels.
    12       This is most probably what you want to use.
    13 
    14 config KERNEL_LINUX_HEADERS_USE_CUSTOM_DIR
    15     bool
    16     prompt "Use custom directory"
    17     help
    18       If you have some kernel headers lying around, you can enter the path
    19       below.
    20 
    21 endchoice
    22 
    23 config KERNEL_VERSION_SEE_EXTRAVERSION
    24     bool
    25     prompt "See extra versions"
    26     default n
    27     depends on KERNEL_LINUX_HEADERS_COPY || KERNEL_LINUX_HEADERS_INSTALL
    28     help
    29       See extra versions (kernel with 4 numbers, eg 2.6.19.1).
    30 
    31       If you say 'no', you'll only see sub-level, 3-digit versions.
    32       If you say 'yes', you'll see far more versions!
    33 
    34       It is recommended that you say 'no', unless you _*know*_
    35       that an extra version fixes a headers bug.
    36 
    37 if KERNEL_LINUX_HEADERS_INSTALL
    38 source config/kernel/linux_headers_install.in
    39 endif
    40 
    41 config KERNEL_LINUX_HEADERS_CUSTOM_DIR
    42     string
    43     prompt "Where are those custom headers?"
    44     depends on KERNEL_LINUX_HEADERS_USE_CUSTOM_DIR
    45     help
    46       Enter the base directory where the headers are to be found.
    47       
    48       Eg. if the headers are in /some/place/include, then enter /some/place.
    49           This is the same path you entered when you typed:
    50             make INSTALL_HDR_PATH=/some/place headers_install
    51 
    52 if ! KERNEL_LINUX_HEADERS_USE_CUSTOM_DIR
    53 
    54 choice
    55     bool
    56     prompt "Kernel verbosity:"
    57     default KERNEL_LINUX_VERBOSITY_0
    58 
    59 config KERNEL_LINUX_VERBOSITY_0
    60     bool
    61     prompt "Simplified"
    62     help
    63       Print simplified command lines.
    64 
    65 config KERNEL_LINUX_VERBOSITY_1
    66     bool
    67     prompt "Full commands"
    68     help
    69       Print full command lines.
    70 
    71 config KERNEL_LINUX_VERBOSITY_2
    72     bool
    73     prompt "Exec reasons"
    74     help
    75       Print the reasons why a make target is rebuild.
    76 
    77 endchoice
    78 
    79 config KERNEL_LINUX_VERBOSE_LEVEL
    80     int
    81     default 0 if KERNEL_LINUX_VERBOSITY_0
    82     default 1 if KERNEL_LINUX_VERBOSITY_1
    83     default 2 if KERNEL_LINUX_VERBOSITY_2
    84 
    85 endif