diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-11-24 18:11:13 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-11-24 18:13:31 +0100 |
commit | 6326dcdabaa3cd6ea58ee1f12afac34afb20ca6c (patch) | |
tree | ac4fc12ef1d18589a2b847bee2e6fc6d03f6a6bb /scripts | |
parent | 4c3c09989f6915cd88747f569361cb4121467bfa (diff) | |
download | ptxdist-6326dcdabaa3cd6ea58ee1f12afac34afb20ca6c.tar.gz ptxdist-6326dcdabaa3cd6ea58ee1f12afac34afb20ca6c.tar.xz |
[ptxd_make_xpkg_pkg] use 'readelf' to check if a file can be stripped
it's more accurate than 'file'.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/ptxd_make_xpkg_pkg.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/ptxd_make_xpkg_pkg.sh b/scripts/lib/ptxd_make_xpkg_pkg.sh index 25c4f88ab..1947410db 100644 --- a/scripts/lib/ptxd_make_xpkg_pkg.sh +++ b/scripts/lib/ptxd_make_xpkg_pkg.sh @@ -200,7 +200,7 @@ install ${cmd}: case "${strip}" in 0|n|no|N|NO) ;; y|k|"") - if file "${src}" | egrep -q ":.*(executable|shared object|ELF.*relocatable).*stripped"; then + if readelf -h "${src}" > /dev/null 2>&1; then ptxd_install_file_strip "${sdirs[@]/%/${dst}}" fi ;; |