]> xenbits.xensource.com Git - xentesttools/bootstrap.git/commitdiff
Makefile: prune debug bits and strip *.ko from debug symbols.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 8 Jan 2016 15:09:43 +0000 (10:09 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 8 Jan 2016 15:09:43 +0000 (10:09 -0500)
To lessen the size of the image.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
root_image/Makefile

index fe7abca3057ece9204287520475a51c0734bf562..ffdea882875fbde277b493211825af17cf8a9fd8 100644 (file)
@@ -932,7 +932,9 @@ xend-install: yajl-depend xen-4.2-depend
        fi
 #      prune usr/include after copy
        rm -rf userspace/usr/include
-
+       if [ -d userspace/usr/lib/debug ]; then \
+               rm -rf userspace/usr/lib/debug; \
+       fi
 ifeq ($(RPM_ARCH), x86_64)
        if ! test -f userspace/usr/lib64/xen; then \
                ( ln -sf /usr/lib/xen   userspace/usr/lib64; true ) \
@@ -1122,6 +1124,7 @@ modulespace-install: modulespace-prep linux-modules-install local-firmware-insta
                        SUBDIRS=$(CURDIR)/drivers \
                        INSTALL_MOD_PATH=$(CURDIR)/modulespace/ modules_install; \
        fi
+       find modulespace/ -name '*.ko' | xargs strip -d
 
 QLOGIC_PATH=firmware/qlogic/
 RADEON_PATH=firmware/radeon/