Commit f6780686 authored by Martin Schwidefsky's avatar Martin Schwidefsky
Browse files

s390/boot: pad bzImage to 4K



In order to be able to sign the bzImage independent of the block size
of the IPL device, align the bzImage to 4096 bytes.

Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 937347ac
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -50,6 +50,7 @@ define cmd_section_cmp
	touch $@
endef

OBJCOPYFLAGS_bzImage := --pad-to $$(readelf -s $(obj)/compressed/vmlinux | awk '/\<_end\>/ {print or(strtonum("0x"$$2),4095)+1}')
$(obj)/bzImage: $(obj)/compressed/vmlinux $(obj)/section_cmp.boot.data $(obj)/section_cmp.boot.preserved.data FORCE
	$(call if_changed,objcopy)