scripts/build/tools/200-sstrip.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Wed May 27 21:16:01 2009 +0000 (2009-05-27)
branchgcc-4.4
changeset 1393 b432bd628b10
parent 1245 96d74832c40b
child 1678 ac247da318a1
permissions -rw-r--r--
/devel/gcc-4.4:
- add gcc-4.4.0 patches, vampirised from the Gentoo patchset
- gcc-4.4.0 auto-selects and uses appropriate companion linraries

-------- diffstat follows --------
/devel/gcc-4.4/scripts/build/cc/gcc.sh | 20 18 2 0 +
/devel/gcc-4.4/patches/gcc/4.4.0/280-freebsd.patch | 188 188 0 0 ++++++++++
/devel/gcc-4.4/patches/gcc/4.4.0/140-default-format-security.patch | 98 98 0 0 +++++
/devel/gcc-4.4/patches/gcc/4.4.0/290-freebsd.patch | 128 128 0 0 +++++++
/devel/gcc-4.4/patches/gcc/4.4.0/310-uclibc-conf.patch | 70 70 0 0 ++++
/devel/gcc-4.4/patches/gcc/4.4.0/240-libstdc++-pic.patch | 106 106 0 0 ++++++
/devel/gcc-4.4/patches/gcc/4.4.0/260-sh-libgcc-stacks.patch | 50 50 0 0 +++
/devel/gcc-4.4/patches/gcc/4.4.0/100-alpha-mieee-default.patch | 48 48 0 0 +++
/devel/gcc-4.4/patches/gcc/4.4.0/180-libgomp-no-werror.patch | 24 24 0 0 +
/devel/gcc-4.4/patches/gcc/4.4.0/170-sparc64-bsd.patch | 58 58 0 0 +++
/devel/gcc-4.4/patches/gcc/4.4.0/200-libiberty.h-asprintf.patch | 30 30 0 0 ++
/devel/gcc-4.4/patches/gcc/4.4.0/220-libiberty-pic.patch | 22 22 0 0 +
/devel/gcc-4.4/patches/gcc/4.4.0/110-trampolinewarn.patch | 54 54 0 0 +++
/devel/gcc-4.4/patches/gcc/4.4.0/160-netbsd-symbolic.patch | 22 22 0 0 +
/devel/gcc-4.4/patches/gcc/4.4.0/190-flatten-switch-stmt-00.patch | 48 48 0 0 +++
/devel/gcc-4.4/patches/gcc/4.4.0/150-default-fortify-source.patch | 52 52 0 0 +++
/devel/gcc-4.4/patches/gcc/4.4.0/340-libmudflap-susv3-legacy.patch | 96 96 0 0 +++++
/devel/gcc-4.4/patches/gcc/4.4.0/120-java-nomulti.patch | 92 92 0 0 +++++
/devel/gcc-4.4/patches/gcc/4.4.0/270-sh-pr24836.patch | 48 48 0 0 +++
/devel/gcc-4.4/patches/gcc/4.4.0/330-c99-snprintf.patch | 24 24 0 0 +
/devel/gcc-4.4/patches/gcc/4.4.0/230-superh-default-multilib.patch | 24 24 0 0 +
/devel/gcc-4.4/patches/gcc/4.4.0/250-ia64-noteGNUstack.patch | 158 158 0 0 +++++++++
/devel/gcc-4.4/patches/gcc/4.4.0/300-pr40105.patch | 360 360 0 0 ++++++++++++++++++++
/devel/gcc-4.4/patches/gcc/4.4.0/210-arm-unbreak-armv4t.patch | 24 24 0 0 +
/devel/gcc-4.4/patches/gcc/4.4.0/130-cross-compile.patch | 78 78 0 0 ++++
/devel/gcc-4.4/patches/gcc/4.4.0/320-missing-execinfo_h.patch | 24 24 0 0 +
/devel/gcc-4.4/config/cc/gcc.in | 1 1 0 0 +
27 files changed, 1945 insertions(+), 2 deletions(-)
yann@479
     1
# This will build and install sstrip to run on host and sstrip target files
yann@479
     2
yann@479
     3
case "${CT_SSTRIP_FROM}" in
yann@479
     4
    ELFkickers)
yann@479
     5
        do_tools_sstrip_get() {
yann@479
     6
            CT_GetFile "ELFkickers-${CT_SSTRIP_ELFKICKERS_VERSION}"     \
yann@479
     7
                       http://www.muppetlabs.com/~breadbox/pub/software
yann@479
     8
        }
yann@479
     9
        do_tools_sstrip_extract() {
yann@1126
    10
            CT_Extract "ELFkickers-${CT_SSTRIP_ELFKICKERS_VERSION}"
yann@1126
    11
            CT_Patch "ELFkickers-${CT_SSTRIP_ELFKICKERS_VERSION}"
yann@479
    12
        }
yann@479
    13
        do_tools_sstrip_build() {
yann@479
    14
            CT_DoStep INFO "Installing sstrip"
yann@479
    15
            mkdir -p "${CT_BUILD_DIR}/build-strip"
yann@479
    16
            cd "${CT_BUILD_DIR}/build-strip"
yann@479
    17
            ( cd "${CT_SRC_DIR}/ELFkickers-${CT_SSTRIP_ELFKICKERS_VERSION}/sstrip"; tar cf - . ) |tar xf -
yann@479
    18
yann@479
    19
            CT_DoLog EXTRA "Building sstrip"
yann@1041
    20
            CT_DoExecLog ALL make CC="${CT_HOST}-gcc" sstrip
yann@479
    21
            
yann@479
    22
            CT_DoLog EXTRA "Installing sstrip"
yann@669
    23
            CT_DoExecLog ALL install -m 755 sstrip "${CT_PREFIX_DIR}/bin/${CT_TARGET}-sstrip"
yann@479
    24
yann@479
    25
            CT_EndStep
yann@479
    26
        }
yann@479
    27
    ;;
yann@479
    28
yann@479
    29
    buildroot)
yann@479
    30
        do_tools_sstrip_get() {
yann@1334
    31
            CT_GetFile sstrip .c http://git.buildroot.net/buildroot/plain/toolchain/sstrip
yann@479
    32
        }
yann@479
    33
        do_tools_sstrip_extract() {
yann@1334
    34
            # We leave the sstrip maintenance to the buildroot people:
yann@1334
    35
            # -> any fix-up goes directly there
yann@1334
    36
            # -> we don't have patches for it
yann@1334
    37
            # -> we don't need to patch it
yann@1334
    38
            # -> just create a directory in src/, and copy it there.
yann@1334
    39
            CT_DoExecLog DEBUG mkdir -p "${CT_SRC_DIR}/sstrip"
yann@1334
    40
            CT_DoExecLog DEBUG cp -v "${CT_TARBALLS_DIR}/sstrip.c" "${CT_SRC_DIR}/sstrip"
yann@479
    41
        }
yann@479
    42
        do_tools_sstrip_build() {
yann@479
    43
            CT_DoStep INFO "Installing sstrip"
yann@479
    44
            mkdir -p "${CT_BUILD_DIR}/build-sstrip"
yann@479
    45
            cd "${CT_BUILD_DIR}/build-sstrip"
yann@479
    46
yann@479
    47
            CT_DoLog EXTRA "Building sstrip"
yann@1041
    48
            CT_DoExecLog ALL "${CT_HOST}-gcc" -Wall -o sstrip "${CT_SRC_DIR}/sstrip/sstrip.c"
yann@479
    49
yann@479
    50
            CT_DoLog EXTRA "Installing sstrip"
yann@669
    51
            CT_DoExecLog ALL install -m 755 sstrip "${CT_PREFIX_DIR}/bin/${CT_TARGET}-sstrip"
yann@479
    52
yann@479
    53
            CT_EndStep
yann@479
    54
        }
yann@479
    55
    ;;
yann@479
    56
yann@1112
    57
    *)  do_tools_sstrip_get() {
yann@479
    58
            :
yann@479
    59
        }
yann@479
    60
        do_tools_sstrip_extract() {
yann@479
    61
            :
yann@479
    62
        }
yann@479
    63
        do_tools_sstrip_build() {
yann@479
    64
            :
yann@479
    65
        }
yann@479
    66
    ;;
yann@479
    67
esac