binutils/sstrip: remove
authorYann Diorcet <diorcet.yann@gmail.com>
Mon Nov 19 11:19:54 2012 +0100 (2012-11-19)
changeset 31172b64e1b502cd
parent 3116 f7a40ba0b651
child 3118 51160d293e1f
binutils/sstrip: remove

sstrip has been obsoleted for a while now, as it's still broken
for some archs, and there seems to be no incentive to fix it
upstream. Besides, the space gained with sstrip is marginal at
best.

Signed-off-by: Yann Diorcet <diorcet.yann@gmail.com>
Message-Id: <65c8bf534d0647ce52cd.1353320545@macbook-smorlat.local>
Patchwork-Id: 199970
config/binutils.in
config/binutils/sstrip.in
scripts/build/binutils/sstrip.sh
scripts/crosstool-NG.sh.in
steps.mk
     1.1 --- a/config/binutils.in	Tue Nov 06 17:42:39 2012 +0100
     1.2 +++ b/config/binutils.in	Mon Nov 19 11:19:54 2012 +0100
     1.3 @@ -40,6 +40,5 @@
     1.4  
     1.5  source "config/binutils/binutils.in"
     1.6  source "config/binutils/elf2flt.in"
     1.7 -source "config/binutils/sstrip.in"
     1.8  
     1.9  endmenu
     2.1 --- a/config/binutils/sstrip.in	Tue Nov 06 17:42:39 2012 +0100
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,23 +0,0 @@
     2.4 -# Configuration file for sstrip tool facility
     2.5 -
     2.6 -if OBSOLETE && ! BACKEND && ARCH_BINFMT_ELF
     2.7 -
     2.8 -comment "sstrip"
     2.9 -
    2.10 -config SSTRIP
    2.11 -    bool
    2.12 -    prompt "sstrip (OBSOLETE)"
    2.13 -    help
    2.14 -      The sstrip utility, to maximise the striping of ELF binaries
    2.15 -      (executables and libraries).
    2.16 -      
    2.17 -      Buildroot version, forked off the original from ELFkickers.
    2.18 -      This one is somewhat maintained by the buildroot guys.
    2.19 -      Supports big-endian systems.
    2.20 -      
    2.21 -      NOTE! Please read.
    2.22 -        sstrip is now deprecated in crosstool-NG, as it has a few
    2.23 -        shortcomings. For example: it breaks for PPC targets, it
    2.24 -        does not build on non-ELF hosts (eg. mingw32, MacOS-X...).
    2.25 -
    2.26 -endif
     3.1 --- a/scripts/build/binutils/sstrip.sh	Tue Nov 06 17:42:39 2012 +0100
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,43 +0,0 @@
     3.4 -# This will build and install sstrip to run on host and sstrip target files
     3.5 -
     3.6 -do_sstrip_get()      { :; }
     3.7 -do_sstrip_extract()  { :; }
     3.8 -do_sstrip_for_host() { :; }
     3.9 -
    3.10 -if [ "${CT_SSTRIP}" = "y" ]; then
    3.11 -    do_sstrip_get() {
    3.12 -        CT_GetFile sstrip .c http://git.buildroot.net/buildroot/plain/toolchain/sstrip
    3.13 -    }
    3.14 -
    3.15 -    do_sstrip_extract() {
    3.16 -        # We leave the sstrip maintenance to the buildroot people:
    3.17 -        # -> any fix-up goes directly there
    3.18 -        # -> we don't have patches for it
    3.19 -        # -> we don't need to patch it
    3.20 -        # -> just create a directory in src/, and copy it there.
    3.21 -        CT_DoExecLog DEBUG mkdir -p "${CT_SRC_DIR}/sstrip"
    3.22 -        CT_DoExecLog DEBUG cp -v "${CT_TARBALLS_DIR}/sstrip.c" "${CT_SRC_DIR}/sstrip"
    3.23 -    }
    3.24 -
    3.25 -    # Build sstrip for host -> target
    3.26 -    # Note: we don't need sstrip to run on the build machine,
    3.27 -    # so we do not need the frontend/backend stuff...
    3.28 -    do_sstrip_for_host() {
    3.29 -        local sstrip_cflags
    3.30 -        CT_DoStep INFO "Installing sstrip for host"
    3.31 -        CT_mkdir_pushd "${CT_BUILD_DIR}/build-sstrip-host"
    3.32 -
    3.33 -        if [ "${CT_STATIC_TOOLCHAIN}" = "y" ]; then
    3.34 -            sstrip_cflags="-static"
    3.35 -        fi
    3.36 -
    3.37 -        CT_DoLog EXTRA "Building sstrip"
    3.38 -        CT_DoExecLog ALL "${CT_HOST}-gcc" -Wall ${sstrip_cflags} -o sstrip "${CT_SRC_DIR}/sstrip/sstrip.c"
    3.39 -
    3.40 -        CT_DoLog EXTRA "Installing sstrip"
    3.41 -        CT_DoExecLog ALL install -m 755 sstrip "${CT_PREFIX_DIR}/bin/${CT_TARGET}-sstrip"
    3.42 -
    3.43 -        CT_Popd
    3.44 -        CT_EndStep
    3.45 -    }
    3.46 -fi
     4.1 --- a/scripts/crosstool-NG.sh.in	Tue Nov 06 17:42:39 2012 +0100
     4.2 +++ b/scripts/crosstool-NG.sh.in	Mon Nov 19 11:19:54 2012 +0100
     4.3 @@ -129,7 +129,6 @@
     4.4  . "${CT_LIB_DIR}/scripts/build/companion_libs.sh"
     4.5  . "${CT_LIB_DIR}/scripts/build/binutils/binutils.sh"
     4.6  . "${CT_LIB_DIR}/scripts/build/binutils/elf2flt.sh"
     4.7 -. "${CT_LIB_DIR}/scripts/build/binutils/sstrip.sh"
     4.8  . "${CT_LIB_DIR}/scripts/build/libc/${CT_LIBC}.sh"
     4.9  . "${CT_LIB_DIR}/scripts/build/cc/${CT_CC}.sh"
    4.10  . "${CT_LIB_DIR}/scripts/build/debug.sh"
    4.11 @@ -537,7 +536,6 @@
    4.12      do_companion_libs_get
    4.13      do_binutils_get
    4.14      do_elf2flt_get
    4.15 -    do_sstrip_get
    4.16      do_cc_get
    4.17      do_libc_get
    4.18      do_debug_get
    4.19 @@ -562,7 +560,6 @@
    4.20          do_companion_libs_extract
    4.21          do_binutils_extract
    4.22          do_elf2flt_extract
    4.23 -        do_sstrip_extract
    4.24          do_cc_extract
    4.25          do_libc_extract
    4.26          do_debug_extract
     5.1 --- a/steps.mk	Tue Nov 06 17:42:39 2012 +0100
     5.2 +++ b/steps.mk	Mon Nov 19 11:19:54 2012 +0100
     5.3 @@ -25,7 +25,6 @@
     5.4              companion_libs_for_host  \
     5.5              binutils_for_host        \
     5.6              elf2flt_for_host         \
     5.7 -            sstrip_for_host          \
     5.8              cc_core_pass_1           \
     5.9              kernel_headers           \
    5.10              libc_start_files         \