From 341e769a26ff51029c1a5788872937f7f10e1ba5 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Tue, 31 May 2016 06:19:05 +0200 Subject: ptxd_make_xpkg_pkg: fix strip detection. Without this, the strip argument is ignored. As a result, all kernel modules are broken. Also, always run readelf for now. Anything else breaks the current kernel and glibc packages. Signed-off-by: Michael Olbrich (cherry picked from commit c4dd3b50ce90c145bdf611cf822ea093e96c011b) Signed-off-by: Michael Olbrich --- scripts/lib/ptxd_make_xpkg_pkg.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts/lib') diff --git a/scripts/lib/ptxd_make_xpkg_pkg.sh b/scripts/lib/ptxd_make_xpkg_pkg.sh index 79f98cf4b..f5be3ac6a 100644 --- a/scripts/lib/ptxd_make_xpkg_pkg.sh +++ b/scripts/lib/ptxd_make_xpkg_pkg.sh @@ -314,11 +314,11 @@ install ${cmd}: echo "using '$(ptxd_print_path "${src}")' instead" fi && - if [ -z "${stip}" ]; then - if readelf -h "${src}" &> /dev/null; then - strip="y" - else + if [ "${strip}" != "n" ]; then + if ! readelf -h "${src}" &> /dev/null; then strip="n" + elif [ -z "${strip}" ]; then + strip="y" fi fi -- cgit v1.2.3