Credits go to michpappas for providing this facil workaround.
- After modifying the files accordingly, build using
make CC=clang LD=~/toolchains/gcc-arm-11.2-2022.02-x86_64-aarch64-none-elf/bin/aarch64-none-elf-gcc OBJCOPY=~/toolchains/gcc-arm-11.2-2022.02-x86_64-aarch64-none-elf/bin/aarch64-none-elf-objcopy STRIP=~/toolchains/gcc-arm-11.2-2022.02-x86_64-aarch64-none-elf/bin/aarch64-none-elf-strip
You'll need the gcc cross-compiling toolchain installed. Get it from here.
Also, make sure to have erratum options disabled when using
menuconfig(Architecture Selection -> Arm8 Compatible -> Workaround for [...] erratum).
What's more, you'll have to configure the
Custom cross-compiler LLVM targettoo (Build Options -> Custom cross-compiler LLVM target); just write
aarch64-none-elfand you should be good to go.
As one of my professors used to say: "Trivial".