]> git.baikalelectronics.ru Git - kernel.git/commit
s390/boot: fix compiler error due to missing awk strtonum
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 7 May 2019 11:56:45 +0000 (13:56 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 7 May 2019 12:37:14 +0000 (14:37 +0200)
commit9fb7073e1bae6a4aebc3b384a002766269e078ac
treeea9f2463bf7d28c894abe29266aba87b6582cd7a
parent489c7426092e2a35768941ce79b15d07d17cce32
s390/boot: fix compiler error due to missing awk strtonum

The strtonum awk function is a GNU extension and is not available with
all versions of awk. The link of bzImage fails with this error message:

>> awk: line 2: function or never defined
>> awk: line 2: function strtonum never defined
   objcopy: --pad-to: bad number: arch/s390/boot/compressed/vmlinux

Drop the awk script and the --pad-to objcopy parameter it generated and
use a FILL pattern with an appropriate alignment in the linker script
for the arch/s390/boot/compressed/vmlinux file.

Fixes: 03e7f3d4b18d ("s390/boot: pad bzImage to 4K")
Reported-by: kbuild test robot <lkp@intel.com>
Suggested-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/boot/Makefile
arch/s390/boot/compressed/vmlinux.lds.S