From 7b01b590b0a0d007eae1d07c2cd8c60ffe1685b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz=20=28arab=2C=20vx?= =?UTF-8?q?p=29?= Date: Tue, 6 Jun 2017 13:22:57 +0000 Subject: build.sh, etc/build.usage: adds --debug-minipix: override default behaviour of strip(1)ping minipix/bin/*. subr/post_strip.subr: strip(1) minipix/bin/* unless --debug-minipix was specified (via midipix.) vars/build.vars: adds `minipix' target individually and as part of `world' encompassing all minipix-flavoured packages. --- subr/post_strip.subr | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'subr') diff --git a/subr/post_strip.subr b/subr/post_strip.subr index fd045561..b1d5d01b 100644 --- a/subr/post_strip.subr +++ b/subr/post_strip.subr @@ -2,15 +2,25 @@ # set -o errexit -o noglob are assumed. # +postp_strip_files() { + local _pname="${1}"; + for __ in $(find "${_pname}" -perm -0100 \( -type f -or -type l \)); do + if objdump -sj .debug_info "${__}" >/dev/null 2>&1; then + log_msg vnfo "${TARGET}-strip ${__}"; + set +o errexit; ${TARGET}-strip ${__}; set -o errexit; + fi; + done; +}; + post_strip() { local __; if [ "${BUILD}" = release ]; then - for __ in $(find ${PREFIX_NATIVE}/bin -perm -0100 \( -type f -or -type l \)); do - if objdump -sj .debug_info >/dev/null 2>&1; then - log_msg vnfo "${PKG_TARGET}-strip ${__}"; - set +o errexit; ${PKG_TARGET}-strip ${__}; set -o errexit; - fi; - done; + log_msg info "Stripping ${PREFIX_NATIVE}/bin..."; + postp_strip_files ${PREFIX_NATIVE}/bin; + fi; + if [ ${ARG_DEBUG_MINIPIX:-0} -eq 0 ]; then + log_msg info "Stripping ${PREFIX_MINIPIX}/bin..."; + postp_strip_files ${PREFIX_MINIPIX}/bin; fi; }; -- cgit v1.2.3