diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2017-08-31 17:13:41 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2017-08-31 17:16:39 +0000 |
commit | 0126fa578c466d1ded28d7e7c04e3743431d4571 (patch) | |
tree | e072cbfc6ac60f4d324104b8d569977963e96170 /elements/gnu-toolchain/stage2-binutils.bst | |
parent | da48508a880dca2faed2b2c1a23f2de3535b3223 (diff) | |
download | definitions-0126fa578c466d1ded28d7e7c04e3743431d4571.tar.gz |
gnu-toolchain: Fix debug stripping for cross-builds of stage2
The stage2 elements were all using the default strip-commands which
don't take into account the fact that we might be cross-compiling.
An `objcopy` build for one architecture will ignore binaries for
other architectures that it doesn't understand, so in practice no
stripping was taking place for the stage2 components when we were
doing cross-builds.
With this change, a stage2 sysroot containing just the 'runtime' and
'devel' domains has gone from 889MB to 306MB.
Diffstat (limited to 'elements/gnu-toolchain/stage2-binutils.bst')
-rw-r--r-- | elements/gnu-toolchain/stage2-binutils.bst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/elements/gnu-toolchain/stage2-binutils.bst b/elements/gnu-toolchain/stage2-binutils.bst index e3ef2eaa..612b31b6 100644 --- a/elements/gnu-toolchain/stage2-binutils.bst +++ b/elements/gnu-toolchain/stage2-binutils.bst @@ -38,3 +38,7 @@ config: - | export STAGE2_SYSROOT="$(dirname $(dirname $(pwd)))" make + + strip-commands: + - | + %{stage2-strip-binaries} |