Skip to content

Commit

Permalink
s390/boot: pad bzImage to 4K
Browse files Browse the repository at this point in the history
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: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Martin Schwidefsky committed Apr 26, 2019
1 parent 937347a commit f678068
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/s390/boot/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit f678068

Please sign in to comment.