arm64: build with baremetal linker target instead of Linux when available
authorOlof Johansson <olof@lixom.net>
Fri, 13 Jul 2018 15:30:33 +0000 (08:30 -0700)
committerBruno Martins <bgcngm@gmail.com>
Sun, 22 Oct 2023 14:12:33 +0000 (15:12 +0100)
commitc034eae91be2610f03d5b198f4a1ac75b5444f7c
tree3acc44d6eb513fedbaac419ef0af81b706a1411b
parente05b26537fa9821394d527806e74236b6be63b6e
arm64: build with baremetal linker target instead of Linux when available

Not all toolchains have the baremetal elf targets, RedHat/Fedora ones
in particular. So, probe for whether it's available and use the previous
(linux) targets if it isn't.

Reported-by: Laura Abbott <labbott@redhat.com>
Tested-by: Laura Abbott <labbott@redhat.com>
Acked-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Paul Kocialkowski <contact@paulk.fr>
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Change-Id: Icf5462a8318b347cf11559c1654886c48c7a62b5
arch/arm64/Makefile
scripts/Kbuild.include