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