Re: [PATCH v2] perf docs: Mark the Android document as obsolete

From: Leo Yan
Date: Tue Jul 16 2024 - 09:49:59 EST



On 7/16/24 14:30, Ian Rogers wrote:
On Tue, Jul 16, 2024 at 3:06 AM Leo Yan <leo.yan@xxxxxxx> wrote:

[...]

Thanks for correcting. Now I even can build successfully with the Clang
from Android NDK with an additional flag 'NO_DEMANGLE=1'. Though we still
need to disable several modules for passing the building, but we are on the
right way.

Would you like to continue a formal fixing or you want me to follow up?

+clang-built-linux

If you could follow up it would be great!

Okay, I will look into it.

I'm not sure how we detect
in the build that we're using clang, I suspect there is an approach in
a different kernel Makefile/Build that already tackles this but my
quick searching didn't yield anything - perhaps the change would be
better suited to the location the CROSS_COMPILE prefix is added to
gcc.

Should we follow up the steps in the Documentation/kbuild/llvm.rst?
The document uses the flag 'LLVM=1' for selecting LLVM/Clang.

Thanks,
Leo

The only thing the change to Makefile.config is doing is
injecting the --target option. I'm not sure anything more is not
working for me on my laptop with this approach compared to cross
compiling with gcc, but as you say going in the right direction is
worth it anyway.

Thanks,
Ian