|
Lucio Andrés Illanes Albornoz |
378fac |
#
|
|
Lucio Andrés Illanes Albornoz |
378fac |
# set -o errexit -o noglob are assumed.
|
|
Lucio Andrés Illanes Albornoz |
378fac |
#
|
|
Lucio Andrés Illanes Albornoz |
378fac |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
ec19f0 |
pkg_strip() {
|
|
Lucio Andrés Illanes Albornoz |
907bd3 |
local _tree_root="${PKG_DESTDIR}/bin" _bin_path="";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c27bea |
if [ ! -e "${_tree_root}" ]; then
|
|
Lucio Andrés Illanes Albornoz |
378fac |
return;
|
|
Lucio Andrés Illanes Albornoz |
378fac |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c27bea |
for _bin_path in $(find "${_tree_root}" -perm /a=x \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c27bea |
\( -type f -or -type l \)); do
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
c27bea |
if objdump -sj .debug_info "${_bin_path}" >/dev/null 2>&1; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
ec19f0 |
ex_rtl_log_msg info "Stripping ${_bin_path}...";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
ec19f0 |
ex_rtl_log_msg vnfo "${PKG_TARGET}-strip ${_bin_path}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
ec19f0 |
${PKG_TARGET}-strip ${_bin_path};
|
|
Lucio Andrés Illanes Albornoz |
378fac |
fi;
|
|
Lucio Andrés Illanes Albornoz |
378fac |
done;
|
|
Lucio Andrés Illanes Albornoz |
378fac |
};
|
|
Lucio Andrés Illanes Albornoz |
378fac |
|
|
Lucio Andrés Illanes Albornoz |
378fac |
# vim:filetype=sh
|