scripts/build/tools/100-libelf.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Thu Oct 23 13:45:48 2008 +0000 (2008-10-23)
changeset 965 45ddf096def1
parent 663 3c8d3ef50106
child 1112 c72aecd1a9ef
permissions -rw-r--r--
Push the calculation of the tuple's kernel part down to kernel's build scripts:
- update the kernel script's API with the function CT_DiKernelTupleValues
- update doc accordingly (also with the architecture change, missing in the previous commit)
- small clean-up in the main script, remove useless test

/trunk/scripts/build/kernel/bare-metal.sh | 5 5 0 0 +++++
/trunk/scripts/build/kernel/linux.sh | 5 5 0 0 +++++
/trunk/scripts/crosstool.sh | 31 13 18 0 +++++++++++++------------------
/trunk/scripts/functions | 15 8 7 0 ++++++++-------
/trunk/docs/overview.txt | 13 9 4 0 +++++++++----
5 files changed, 40 insertions(+), 29 deletions(-)
     1 # Build script for libelf
     2 
     3 do_print_filename() {
     4     echo "libelf-${CT_LIBELF_VERSION}"
     5 }
     6 
     7 do_tools_libelf_get() {
     8     # The server hosting libelf will return an "HTTP 300 : Multiple Choices"
     9     # error code if we try to download a file that does not exists there.
    10     # So we have to request the file with an explicit extension.
    11     CT_GetFile "libelf-${CT_LIBELF_VERSION}" .tar.gz http://www.mr511.de/software/
    12 }
    13 
    14 do_tools_libelf_extract() {
    15     CT_ExtractAndPatch "libelf-${CT_LIBELF_VERSION}"
    16 }
    17 
    18 do_tools_libelf_build() {
    19     CT_DoStep INFO "Installing libelf"
    20     mkdir -p "${CT_BUILD_DIR}/build-libelf"
    21     CT_Pushd "${CT_BUILD_DIR}/build-libelf"
    22 
    23     CT_DoLog EXTRA "Configuring libelf"
    24     CC="${CT_TARGET}-gcc"                                   \
    25     CT_DoExecLog ALL                                        \
    26     "${CT_SRC_DIR}/libelf-${CT_LIBELF_VERSION}/configure"   \
    27         --build=${CT_BUILD}                                 \
    28         --host=${CT_TARGET}                                 \
    29         --target=${CT_TARGET}                               \
    30         --prefix=/usr                                       \
    31         --enable-compat                                     \
    32         --enable-elf64                                      \
    33         --enable-shared                                     \
    34         --enable-extended-format                            \
    35         --enable-static
    36 
    37     CT_DoLog EXTRA "Building libelf"
    38     CT_DoExecLog ALL make
    39 
    40     CT_DoLog EXTRA "Installing libelf"
    41     CT_DoExecLog ALL make instroot="${CT_SYSROOT_DIR}" install
    42 
    43     CT_Popd
    44     CT_EndStep
    45 }
    46