[bootlin/training-materials updates] master: slides/buildroot-kernel: improve kernel configuration explanations (aebb41f4)

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sat May 29 17:00:36 CEST 2021


Repository : https://github.com/bootlin/training-materials
On branch  : master
Link       : https://github.com/bootlin/training-materials/commit/aebb41f4cae2b1439d49c5a5e75796dce334383a

>---------------------------------------------------------------

commit aebb41f4cae2b1439d49c5a5e75796dce334383a
Author: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
Date:   Thu May 6 23:13:14 2021 +0200

    slides/buildroot-kernel: improve kernel configuration explanations
    
    Including a new slides with some examples.
    
    Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>


>---------------------------------------------------------------

aebb41f4cae2b1439d49c5a5e75796dce334383a
 slides/buildroot-kernel/buildroot-kernel.tex | 52 ++++++++++++++++++++++------
 1 file changed, 42 insertions(+), 10 deletions(-)

diff --git a/slides/buildroot-kernel/buildroot-kernel.tex b/slides/buildroot-kernel/buildroot-kernel.tex
index e8d1b241..a139e4b5 100644
--- a/slides/buildroot-kernel/buildroot-kernel.tex
+++ b/slides/buildroot-kernel/buildroot-kernel.tex
@@ -17,10 +17,9 @@
 
 \begin{frame}{Defining the configuration}
   \begin{itemize}
-  \item In the \code{Kernel} menu in \code{menuconfig}, after
-    selecting the kernel version, you have several options to define the
-    kernel configuration:
-    \begin{itemize}
+  \item In the \code{Kernel} menu in \code{menuconfig}, 3
+    possibilities to configure the kernel:
+    \begin{enumerate}
     \item \code{Use a defconfig}
       \begin{itemize}
       \item Will use a {\em defconfig} provided within the kernel
@@ -43,16 +42,49 @@
         the kernel source tree. Some architectures (e.g ARM64) have a
         single {\em defconfig}.
       \end{itemize}
-    \item \code{Additional fragments}
-      \begin{itemize}
-      \item Also to pass a list of configuration file fragments.
-      \item They can complement or override configuration options
-        specified in a {\em defconfig} or a full configuration file.
-      \end{itemize}
+    \end{enumerate}
+  \item Configuration can be further tweaked with \code{Additional
+      fragments}
+    \begin{itemize}
+    \item Allows to pass a list of configuration file fragments.
+    \item They can complement or override configuration options
+      specified in a {\em defconfig} or a full configuration file.
     \end{itemize}
   \end{itemize}
 \end{frame}
 
+\begin{frame}[fragile]{Examples of kernel configuration}
+
+  \scriptsize
+
+  \begin{block}{{\tt stm32mp157a\_dk1\_defconfig}: custom configuration file}
+\begin{verbatim}
+BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
+BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/stmicroelectronics/stm32mp157a-dk1/linux.config"
+\end{verbatim}
+  \end{block}
+
+  \begin{block}{{\tt ts4900\_defconfig}: standard kernel defconfig}
+\begin{verbatim}
+BR2_LINUX_KERNEL_DEFCONFIG="imx_v6_v7"
+\end{verbatim}
+  \end{block}
+
+  \begin{block}{{\tt warpboard\_defconfig}: standard kernel defconfig + fragment}
+\begin{verbatim}
+BR2_LINUX_KERNEL_DEFCONFIG="imx_v6_v7"
+BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/freescale/warpboard/linux.fragment"
+\end{verbatim}
+  \end{block}
+
+  \begin{block}{{\tt linux.fragment}: contains extra kernel options}
+\begin{verbatim}
+CONFIG_CFG80211_WEXT=y
+\end{verbatim}
+  \end{block}
+
+\end{frame}
+
 \begin{frame}{Changing the configuration}
   \begin{itemize}
   \item Running one of the Linux kernel configuration interfaces:




More information about the training-materials-updates mailing list