diff -r 68ec66ee2ff9 -r d304c8a7bfa8 scripts/build/binutils/sstrip.sh --- a/scripts/build/binutils/sstrip.sh Sun Feb 27 15:34:30 2011 +0100 +++ b/scripts/build/binutils/sstrip.sh Sun Jul 17 18:29:35 2011 +0200 @@ -1,8 +1,8 @@ # This will build and install sstrip to run on host and sstrip target files -do_sstrip_get() { :; } -do_sstrip_extract() { :; } -do_sstrip() { :; } +do_sstrip_get() { :; } +do_sstrip_extract() { :; } +do_sstrip_for_host() { :; } if [ "${CT_SSTRIP}" = "y" ]; then do_sstrip_get() { @@ -19,11 +19,13 @@ CT_DoExecLog DEBUG cp -v "${CT_TARBALLS_DIR}/sstrip.c" "${CT_SRC_DIR}/sstrip" } - do_sstrip() { + # Build sstrip for host -> target + # Note: we don't need sstrip to run on the build machine, + # so we do not need the frontend/backend stuff... + do_sstrip_for_host() { local sstrip_cflags - CT_DoStep INFO "Installing sstrip" - mkdir -p "${CT_BUILD_DIR}/build-sstrip" - cd "${CT_BUILD_DIR}/build-sstrip" + CT_DoStep INFO "Installing sstrip for host" + CT_mkdir_pushd "${CT_BUILD_DIR}/build-sstrip-host" if [ "${CT_STATIC_TOOLCHAIN}" = "y" ]; then sstrip_cflags="-static" @@ -35,6 +37,7 @@ CT_DoLog EXTRA "Installing sstrip" CT_DoExecLog ALL install -m 755 sstrip "${CT_PREFIX_DIR}/bin/${CT_TARGET}-sstrip" + CT_Popd CT_EndStep } fi