]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 1 Oct 2018 12:58:22 +0000 (14:58 +0200)
commitf63e2af73c89d51d78ec83507b831820426c74ab
tree8faa62d61b7e88cf61dcebf8337c99fe4ee47bc2
parent2a931ff680798ae462e8347d085068c7adbf295d
ARM: replace unnecessary perl with sed and the shell $(( )) operator

BugLink: http://bugs.launchpad.net/bugs/1794889
[ Upstream commit 6cea14f55474ec71f1098228e0ae5dd2a8f22c0a ]

You can build a kernel in a cross compiling environment that doesn't
have perl in the $PATH. Commit 429f7a062e3b 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: 429f7a062e3b ("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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/arm/boot/compressed/Makefile