1.1 --- a/scripts/build/binutils/sstrip.sh Tue Nov 06 17:42:39 2012 +0100
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,43 +0,0 @@
1.4 -# This will build and install sstrip to run on host and sstrip target files
1.5 -
1.6 -do_sstrip_get() { :; }
1.7 -do_sstrip_extract() { :; }
1.8 -do_sstrip_for_host() { :; }
1.9 -
1.10 -if [ "${CT_SSTRIP}" = "y" ]; then
1.11 - do_sstrip_get() {
1.12 - CT_GetFile sstrip .c http://git.buildroot.net/buildroot/plain/toolchain/sstrip
1.13 - }
1.14 -
1.15 - do_sstrip_extract() {
1.16 - # We leave the sstrip maintenance to the buildroot people:
1.17 - # -> any fix-up goes directly there
1.18 - # -> we don't have patches for it
1.19 - # -> we don't need to patch it
1.20 - # -> just create a directory in src/, and copy it there.
1.21 - CT_DoExecLog DEBUG mkdir -p "${CT_SRC_DIR}/sstrip"
1.22 - CT_DoExecLog DEBUG cp -v "${CT_TARBALLS_DIR}/sstrip.c" "${CT_SRC_DIR}/sstrip"
1.23 - }
1.24 -
1.25 - # Build sstrip for host -> target
1.26 - # Note: we don't need sstrip to run on the build machine,
1.27 - # so we do not need the frontend/backend stuff...
1.28 - do_sstrip_for_host() {
1.29 - local sstrip_cflags
1.30 - CT_DoStep INFO "Installing sstrip for host"
1.31 - CT_mkdir_pushd "${CT_BUILD_DIR}/build-sstrip-host"
1.32 -
1.33 - if [ "${CT_STATIC_TOOLCHAIN}" = "y" ]; then
1.34 - sstrip_cflags="-static"
1.35 - fi
1.36 -
1.37 - CT_DoLog EXTRA "Building sstrip"
1.38 - CT_DoExecLog ALL "${CT_HOST}-gcc" -Wall ${sstrip_cflags} -o sstrip "${CT_SRC_DIR}/sstrip/sstrip.c"
1.39 -
1.40 - CT_DoLog EXTRA "Installing sstrip"
1.41 - CT_DoExecLog ALL install -m 755 sstrip "${CT_PREFIX_DIR}/bin/${CT_TARGET}-sstrip"
1.42 -
1.43 - CT_Popd
1.44 - CT_EndStep
1.45 - }
1.46 -fi