summaryrefslogtreecommitdiff
path: root/scripts/build/binutils/sstrip.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/binutils/sstrip.sh')
-rw-r--r--scripts/build/binutils/sstrip.sh17
1 files changed, 10 insertions, 7 deletions
diff --git a/scripts/build/binutils/sstrip.sh b/scripts/build/binutils/sstrip.sh
index 4653495..b68d337 100644
--- a/scripts/build/binutils/sstrip.sh
+++ b/scripts/build/binutils/sstrip.sh
@@ -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 @@ if [ "${CT_SSTRIP}" = "y" ]; then
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 @@ if [ "${CT_SSTRIP}" = "y" ]; then
CT_DoLog EXTRA "Installing sstrip"
CT_DoExecLog ALL install -m 755 sstrip "${CT_PREFIX_DIR}/bin/${CT_TARGET}-sstrip"
+ CT_Popd
CT_EndStep
}
fi