diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-12-05 15:10:39 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-12-06 15:22:35 +0100 |
commit | 3c85002cbd120697ca213c5ad5f1cca507191a09 (patch) | |
tree | 9fd18e9de3e31d22dccc54d07f867afcc4a0f0f1 | |
parent | 4d2b5936e0783e8c57007348919535fdba90595c (diff) | |
download | OSELAS.Toolchain-3c85002cbd120697ca213c5ad5f1cca507191a09.tar.gz OSELAS.Toolchain-3c85002cbd120697ca213c5ad5f1cca507191a09.tar.xz |
cleanup: make it possible to not strip the target binaries
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rwxr-xr-x | build_all_v2.mk | 2 | ||||
-rw-r--r-- | rules/post/cleanup.make | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/build_all_v2.mk b/build_all_v2.mk index dc294b0..8f0f47d 100755 --- a/build_all_v2.mk +++ b/build_all_v2.mk @@ -19,7 +19,7 @@ BENICE := true PTXDIST := ./p --force ARG := images -export PTXDIST_ENV_WHITELIST += CROSS_GDB_WITHOUT_PYTHON +export PTXDIST_ENV_WHITELIST += CROSS_GDB_WITHOUT_PYTHON PTXDIST_TOOLCHCAIN_KEEP_DEBUG export CROSS_GDB_WITHOUT_PYTHON ?= y ifdef BENICE diff --git a/rules/post/cleanup.make b/rules/post/cleanup.make index c06b920..d6d907b 100644 --- a/rules/post/cleanup.make +++ b/rules/post/cleanup.make @@ -13,11 +13,13 @@ $(STATEDIR)/world.cleanup: $(STATEDIR)/world.targetinstall find $(TOOLCHAIN_CLEANUP_HOST_DIRS) \ -wholename "$(PTXCONF_SYSROOT_CROSS)/lib/gcc" -prune -o \ -type f -name "*.a" -print0 | xargs -0 -r rm +ifndef PTXDIST_TOOLCHCAIN_KEEP_DEBUG # # strip all host binaries find $(TOOLCHAIN_CLEANUP_HOST_DIRS) \ -wholename "$(PTXCONF_SYSROOT_CROSS)/lib/gcc" -prune -o \ -type f \( -executable -o -name "*.so*" \) -print0 \ | xargs -0 -n1 --verbose strip --preserve-dates || true +endif # # make sure there are no bogus rpaths find "$(PTXCONF_SYSROOT_CROSS)/$(call remove_quotes,$(PTXCONF_GNU_TARGET))" \ -type f \( -executable -o -name "*.so*" \) -print0 \ |