scripts/build/tools/100-libelf.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Jan 27 23:13:24 2009 +0000 (2009-01-27)
branch1.3
changeset 1166 685450d99823
parent 663 3c8d3ef50106
child 1112 c72aecd1a9ef
permissions -rw-r--r--
Backport #1301 from /trunk, in a different manner due to underlying infrastructure changes:
- the URL to retrieve sstrip (from buldroot) has changed

/branches/1.3/scripts/build/tools/200-sstrip.sh | 6 3 3 0 +++---
1 file changed, 3 insertions(+), 3 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