diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-03-11 02:18:09 +0100 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-03-11 12:04:52 +0100 |
commit | 9436472d01a50e0decb1903bfa9a28157bf474f2 (patch) | |
tree | 3f9b0c5938a3443612f70c2a9a0d1d4efb5983c8 /scripts | |
parent | 9be918afe2d55843cbf14eccd7d58071dbdfbcfe (diff) | |
download | ptxdist-9436472d01a50e0decb1903bfa9a28157bf474f2.tar.gz ptxdist-9436472d01a50e0decb1903bfa9a28157bf474f2.tar.xz |
[sstrip] add option to strip rootfs with sstrip
This patch adds the option to strip the executables and libs of the rot
file system with sstrip instead of binutils strip.
It should be noted that the resulting file cannot be used with gdb,
objdump, or any other program based upon the bfd library, at all. In
fact, the program will not even recognize the file as a valid executable.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/ptxd_make_xpkg_pkg.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/lib/ptxd_make_xpkg_pkg.sh b/scripts/lib/ptxd_make_xpkg_pkg.sh index 7ee422558..b09235054 100644 --- a/scripts/lib/ptxd_make_xpkg_pkg.sh +++ b/scripts/lib/ptxd_make_xpkg_pkg.sh @@ -151,7 +151,11 @@ EOF case "${strip}" in 0|n|no) ;; k) "${CROSS_STRIP}" --strip-debug "${sdirs[@]/%/${dst}}" ;; - *) "${CROSS_STRIP}" -R .note -R .comment "${sdirs[@]/%/${dst}}" ;; + *) + case "${ptx_use_sstrip}" in + y) sstrip "${sdirs[@]/%/${dst}}" ;; + *) "${CROSS_STRIP}" -R .note -R .comment "${sdirs[@]/%/${dst}}" ;; + esac esac && # now change to requested permissions |