1.1 --- a/scripts/build/tools/libelf.sh Fri May 02 21:55:57 2008 +0000
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,48 +0,0 @@
1.4 -# Build script for libelf
1.5 -
1.6 -is_enabled="${CT_LIBELF}"
1.7 -
1.8 -do_print_filename() {
1.9 - [ "{CT_LIBELF}" = "y" ] || return 0
1.10 - echo "libelf-${CT_LIBELF_VERSION}"
1.11 -}
1.12 -
1.13 -do_tools_libelf_get() {
1.14 - # The server hosting libelf will return an "HTTP 300 : Multiple Choices"
1.15 - # error code if we try to download a file that does not exists there.
1.16 - # So we have to request the file with an explicit extension.
1.17 - CT_GetFile "libelf-${CT_LIBELF_VERSION}" .tar.gz http://www.mr511.de/software/
1.18 -}
1.19 -
1.20 -do_tools_libelf_extract() {
1.21 - CT_ExtractAndPatch "libelf-${CT_LIBELF_VERSION}"
1.22 -}
1.23 -
1.24 -do_tools_libelf_build() {
1.25 - CT_DoStep INFO "Installing libelf"
1.26 - mkdir -p "${CT_BUILD_DIR}/build-libelf"
1.27 - CT_Pushd "${CT_BUILD_DIR}/build-libelf"
1.28 -
1.29 - CT_DoLog EXTRA "Configuring libelf"
1.30 - CC="${CT_TARGET}-gcc" \
1.31 - "${CT_SRC_DIR}/libelf-${CT_LIBELF_VERSION}/configure" \
1.32 - --build=${CT_BUILD} \
1.33 - --host=${CT_TARGET} \
1.34 - --target=${CT_TARGET} \
1.35 - --prefix=/usr \
1.36 - --enable-compat \
1.37 - --enable-elf64 \
1.38 - --enable-shared \
1.39 - --enable-extended-format \
1.40 - --enable-static 2>&1 |CT_DoLog ALL
1.41 -
1.42 - CT_DoLog EXTRA "Building libelf"
1.43 - make 2>&1 |CT_DoLog ALL
1.44 -
1.45 - CT_DoLog EXTRA "Installing libelf"
1.46 - make instroot="${CT_SYSROOT_DIR}" install 2>&1 |CT_DoLog ALL
1.47 -
1.48 - CT_Popd
1.49 - CT_EndStep
1.50 -}
1.51 -