From: Vasily Gorbik Date: Thu, 28 Jun 2018 17:21:36 +0000 (+0200) Subject: s390/decompressor: avoid packing *.o.chkbss files into startup.a X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7e0363b469f5d2ad00234497aad65c7b46db42c0;p=linux.git s390/decompressor: avoid packing *.o.chkbss files into startup.a startup.a build rule packs a list of prerequisites into archive. That didn't take into account extra prerequisites added by chkbss, so that zero length *.o.chkbss files were also packed into the archive. To avoid that filter only real object from prerequisites list. Acked-by: Heiko Carstens Signed-off-by: Vasily Gorbik Signed-off-by: Martin Schwidefsky --- diff --git a/arch/s390/boot/Makefile b/arch/s390/boot/Makefile index e15baa7b8e0b2..9e6668ee93de8 100644 --- a/arch/s390/boot/Makefile +++ b/arch/s390/boot/Makefile @@ -40,7 +40,7 @@ $(obj)/compressed/vmlinux: $(obj)/startup.a FORCE $(Q)$(MAKE) $(build)=$(obj)/compressed $@ quiet_cmd_ar = AR $@ - cmd_ar = rm -f $@; $(AR) rcsTP$(KBUILD_ARFLAGS) $@ $(filter-out FORCE, $^) + cmd_ar = rm -f $@; $(AR) rcsTP$(KBUILD_ARFLAGS) $@ $(filter $(OBJECTS), $^) $(obj)/startup.a: $(OBJECTS) FORCE $(call if_changed,ar)