[bootlin/training-materials updates] master: slides/sysdev-kernel-building: add reference to building the kernel with Clang (a2ca04bd)
Michael Opdenacker
michael.opdenacker at bootlin.com
Wed Sep 28 11:19:32 CEST 2022
Repository : https://github.com/bootlin/training-materials
On branch : master
Link : https://github.com/bootlin/training-materials/commit/a2ca04bd422445b5c34c92215ba1aa17e91758c6
>---------------------------------------------------------------
commit a2ca04bd422445b5c34c92215ba1aa17e91758c6
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date: Wed Sep 28 11:18:53 2022 +0200
slides/sysdev-kernel-building: add reference to building the kernel with Clang
Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>
>---------------------------------------------------------------
a2ca04bd422445b5c34c92215ba1aa17e91758c6
slides/sysdev-kernel-building/sysdev-kernel-building.tex | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
diff --git a/slides/sysdev-kernel-building/sysdev-kernel-building.tex b/slides/sysdev-kernel-building/sysdev-kernel-building.tex
index 974124aa..3ccaf420 100644
--- a/slides/sysdev-kernel-building/sysdev-kernel-building.tex
+++ b/slides/sysdev-kernel-building/sysdev-kernel-building.tex
@@ -75,18 +75,14 @@
\end{itemize}
\item When using a cross-compiler
\begin{itemize}
- \item To make the difference with a native compiler, cross-compiler
- executables are prefixed by the name of the target system,
- architecture and sometimes library. Examples:\\
- \small
- \code{mips-linux-gcc}: the prefix is \code{mips-linux-}\\
- \code{arm-linux-gnueabi-gcc}: the prefix is \code{arm-linux-gnueabi-}
- \item So, you can specify your cross-compiler as follows:\\
+ \item Specify the prefix of your cross-compiler executable, for
+ example for \code{arm-linux-gnueabi-gcc}:\\
\code{export CROSS_COMPILE=arm-linux-gnueabi-}
\end{itemize}
\end{itemize}
- \code{CROSS_COMPILE} is actually the prefix of the cross compiling tools\\
- (\code{gcc}, \code{as}, \code{ld}, \code{objcopy}, \code{strip}...).
+ Set \code{LLVM} to \code{1} to compile your kernel with Clang.\\
+ See our \href{https://bootlin.com/pub/conferences/2022/lee/opdenacker-llvm-tools-for-linux-kernel/opdenacker-llvm-tools-for-linux-kernel.pdf}
+ {LLVM tools for the Linux kernel} presentation.
\end{frame}
\begin{frame}
More information about the training-materials-updates
mailing list