scripts/build/tools/100-libelf.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Wed May 20 20:13:13 2009 +0000 (2009-05-20)
changeset 1345 27fec561af53
parent 1112 c72aecd1a9ef
permissions -rw-r--r--
Merge the uClinux/noMMU stuff back to /trunk:
- merge Linux and uClinux back to a single kernel
- add ARCH_USE_MMU and acquainted config options that
architectures can auto-select
- make binutils and elf2flt two "Binary utilities" that
go in a single common sub-{menu,directory} structure

-------- diffstat follows --------
/trunk/scripts/build/kernel/uclinux.sh | 2 0 2 0 -
/trunk/scripts/build/kernel/linux.sh | 206 204 2 0 +++++++++++++++++++++++++++++
/trunk/scripts/build/kernel/linux-common.sh | 198 0 198 0 ----------------------------
/trunk/scripts/build/binutils.sh | 232 0 232 0 --------------------------------
/trunk/scripts/build/elf2flt.sh | 150 0 150 0 ---------------------
/trunk/scripts/crosstool-NG.sh.in | 6 4 2 0 +
/trunk/config/kernel/linux.in | 249 249 0 0 +++++++++++++++++++++++++++++++++++
/trunk/config/kernel/linux.in-common | 252 0 252 0 -----------------------------------
/trunk/config/kernel/uclinux.in | 21 0 21 0 ---
/trunk/config/target.in | 23 22 1 0 +++
/trunk/config/elf2flt.in | 49 0 49 0 -------
/trunk/config/libc/glibc.in | 2 1 1 0
/trunk/config/libc/eglibc.in | 2 1 1 0
/trunk/config/config.in | 1 0 1 0 -
/trunk/config/arch/sh.in | 1 1 0 0 +
/trunk/config/arch/arm.in | 2 1 1 0
/trunk/config/arch/powerpc.in | 1 1 0 0 +
/trunk/config/arch/ia64.in | 1 1 0 0 +
/trunk/config/arch/alpha.in | 1 1 0 0 +
/trunk/config/arch/x86.in | 1 1 0 0 +
/trunk/config/arch/mips.in | 1 1 0 0 +
/trunk/config/arch/powerpc64.in | 1 1 0 0 +
22 files changed, 489 insertions(+), 913 deletions(-)
yann@479
     1
# Build script for libelf
yann@479
     2
yann@479
     3
do_tools_libelf_get() {
yann@479
     4
    # The server hosting libelf will return an "HTTP 300 : Multiple Choices"
yann@479
     5
    # error code if we try to download a file that does not exists there.
yann@479
     6
    # So we have to request the file with an explicit extension.
yann@479
     7
    CT_GetFile "libelf-${CT_LIBELF_VERSION}" .tar.gz http://www.mr511.de/software/
yann@479
     8
}
yann@479
     9
yann@479
    10
do_tools_libelf_extract() {
yann@1126
    11
    CT_Extract "libelf-${CT_LIBELF_VERSION}"
yann@1126
    12
    CT_Patch "libelf-${CT_LIBELF_VERSION}"
yann@479
    13
}
yann@479
    14
yann@479
    15
do_tools_libelf_build() {
yann@479
    16
    CT_DoStep INFO "Installing libelf"
yann@479
    17
    mkdir -p "${CT_BUILD_DIR}/build-libelf"
yann@479
    18
    CT_Pushd "${CT_BUILD_DIR}/build-libelf"
yann@479
    19
yann@479
    20
    CT_DoLog EXTRA "Configuring libelf"
yann@479
    21
    CC="${CT_TARGET}-gcc"                                   \
yann@663
    22
    CT_DoExecLog ALL                                        \
yann@479
    23
    "${CT_SRC_DIR}/libelf-${CT_LIBELF_VERSION}/configure"   \
yann@479
    24
        --build=${CT_BUILD}                                 \
yann@479
    25
        --host=${CT_TARGET}                                 \
yann@479
    26
        --target=${CT_TARGET}                               \
yann@479
    27
        --prefix=/usr                                       \
yann@479
    28
        --enable-compat                                     \
yann@479
    29
        --enable-elf64                                      \
yann@479
    30
        --enable-shared                                     \
yann@479
    31
        --enable-extended-format                            \
yann@663
    32
        --enable-static
yann@479
    33
yann@479
    34
    CT_DoLog EXTRA "Building libelf"
yann@663
    35
    CT_DoExecLog ALL make
yann@479
    36
yann@479
    37
    CT_DoLog EXTRA "Installing libelf"
yann@663
    38
    CT_DoExecLog ALL make instroot="${CT_SYSROOT_DIR}" install
yann@479
    39
yann@479
    40
    CT_Popd
yann@479
    41
    CT_EndStep
yann@479
    42
}
yann@479
    43