summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2016-05-31 06:46:33 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2016-06-05 12:33:53 +0200
commit535944fdf5b2a32a856cbaa92463d519f75e206f (patch)
tree0561e073a34b5c4f7a729d785298025425ba0282
parenta00bed0927b0434d3479e9141792895b75c37e85 (diff)
downloadptxdist-535944fdf5b2a32a856cbaa92463d519f75e206f.tar.gz
ptxdist-535944fdf5b2a32a856cbaa92463d519f75e206f.tar.xz
ptxd_make_xpkg_pkg: never overwrite a specified strip argument
If a strip argument is given, don't overwrite it with the readelf result. This avoids some unnecessary calls of readelf but may break packages with incorrect strip arguments. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--scripts/lib/ptxd_make_xpkg_pkg.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/ptxd_make_xpkg_pkg.sh b/scripts/lib/ptxd_make_xpkg_pkg.sh
index 51bd85f1d..efee9e7da 100644
--- a/scripts/lib/ptxd_make_xpkg_pkg.sh
+++ b/scripts/lib/ptxd_make_xpkg_pkg.sh
@@ -314,10 +314,10 @@ install ${cmd}:
echo "using '$(ptxd_print_path "${src}")' instead"
fi &&
- if [ "${strip}" != "n" ]; then
+ if [ -z "${strip}" ]; then
if ! readelf -h "${src}" &> /dev/null; then
strip="n"
- elif [ -z "${strip}" ]; then
+ else
strip="y"
fi
fi &&