]> Zhao Yanbai Git Server - minix.git/commitdiff
boot programs gzip/strip changes
authorBen Gras <ben@minix3.org>
Thu, 5 Jul 2012 15:32:15 +0000 (17:32 +0200)
committerBen Gras <ben@minix3.org>
Thu, 5 Jul 2012 16:12:03 +0000 (18:12 +0200)
as disk space typically isn't a concern when crosscompiling, but
convenience and ability to debug is, change the strip and gzip defaults

. do not strip or gzip the binaries when crosscompiling

this makes it faster to rebuild and restart a compiled system, with
debugging info if so desired.

releasetools/Makefile

index 166019365e4d56db24349974baae31f7ee6096f7..9961a1c653c14d220e6ce71f1b7cab18b16d4e68 100644 (file)
@@ -86,12 +86,11 @@ hdboot: services
        [ "$$n" -ge 10 ] && prefix="mod" || prefix="mod0";      \
        newname="${DESTDIR}/boot/minix/.temp/$${prefix}$${n}_`basename $$i`"; \
        ${INSTALL} $$i $$newname;                               \
-       ${STRIP} -s $$newname;                                  \
-       gzip $$newname;                                         \
        done
        cp ../kernel/kernel ${DESTDIR}/boot/minix/.temp/
-       ${STRIP} -s ${DESTDIR}/boot/minix/.temp/kernel
        if [ "${MKINSTALLBOOT}" != "no" ] ; then                \
+       ${STRIP} -s ${DESTDIR}/boot/minix/.temp/* ;             \
+       gzip ${DESTDIR}/boot/minix/.temp/mod* ;                 \
        ${HOST_SH} mkboot $@;                                   \
        ${HOST_SH} ../commands/update_bootcfg/update_bootcfg.sh;\
        else                                                    \