make clean make mrproper make O=out lcblues-perf_defconfig make -j$(nproc --all) O=out CC=clang CONFIG_DEBUG_SECTION_MISMATCH=y
1
make -j$(nproc --all) O=out
CC=clang CLANG_TRIPLE=aarch64-linux-gnu-
op5-perf_defconfig or msmcortex-perf_defconfig After compiling, you can verify the toolchain used by opening out/include/generated/compile.h and looking at the LINUX_COMPILER option.
A couple of notes:
CLANG_TRIPLE is only needed when using AOSP’s version of Clang export CC=clang does not work. You need to pass CC=clang to make like above.