]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: replace unnecessary perl with sed and the shell $(( )) operator
authorRussell King <rmk+kernel@armlinux.org.uk>
Mon, 16 Apr 2018 12:21:54 +0000 (13:21 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Sat, 19 May 2018 10:35:56 +0000 (11:35 +0100)
commit848981b29c79224a4cf940c8eff818b47c3c7a47
tree019ca00ca099ce5c9fbda6d3a7b21511aed75c3b
parent654988befcdac37b482edfbf1f507f7fc1cb0880
ARM: replace unnecessary perl with sed and the shell $(( )) operator

You can build a kernel in a cross compiling environment that doesn't
have perl in the $PATH. Commit 78cba2e722c5 broke that for 32 bit
ARM. Fix it.

As reported by Stephen Rothwell, it appears that the symbols can be
either part of the BSS section or absolute symbols depending on the
binutils version.  When they're an absolute symbol, the $(( ))
operator errors out and the build fails.  Fix this as well.

Fixes: 78cba2e722c5 ("ARM: decompressor: fix BSS size calculation")
Reported-by: Rob Landley <rob@landley.net>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-by: Rob Landley <rob@landley.net>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/boot/compressed/Makefile