kbuild: clear LDFLAGS in the top Makefile
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 21 Jun 2020 18:48:35 +0000 (21:48 +0300)
committerBruno Martins <bgcngm@gmail.com>
Sun, 22 Oct 2023 14:12:33 +0000 (15:12 +0100)
commite2bb45edcc61989a6c748a480c52079e70eded52
tree6330572eb35187d2dc15c1fd3a2bf77c9c66a8d6
parentbd5329cc3c7a3e44539d1be104ae4be725c868c4
kbuild: clear LDFLAGS in the top Makefile

The kernel needs to be compiled as a LP64 binary for ARM64, even when
using a compiler that defaults to code-generation for the ILP32 ABI.
Consequently, we need to explicitly pass '-mabi=lp64' (supported on
gcc-4.9 and newer).

Signed-off-by: Andrew Pinski <Andrew.Pinski@caviumnetworks.com>
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
Signed-off-by: Yury Norov <ynorov@caviumnetworks.com>
Reviewed-by: David Daney <ddaney@caviumnetworks.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Change-Id: Ife00e01e3e3a6d85841b88c2f1a042617bd61500
Makefile