From fa74e98f7d5ae5581ac74ef60d3bcb4499dafd8d Mon Sep 17 00:00:00 2001 From: Konrad Rzeszutek Wilk Date: Fri, 8 Jan 2016 10:09:43 -0500 Subject: [PATCH] Makefile: prune debug bits and strip *.ko from debug symbols. To lessen the size of the image. Signed-off-by: Konrad Rzeszutek Wilk --- root_image/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/root_image/Makefile b/root_image/Makefile index fe7abca..ffdea88 100644 --- a/root_image/Makefile +++ b/root_image/Makefile @@ -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/ -- 2.39.5