From 642295250e1daefd8fed45b15696328ddd654d5e Mon Sep 17 00:00:00 2001 From: Arnout Vandecappelle Date: Mon, 15 Apr 2024 10:24:01 +0200 Subject: [PATCH 1/2] sysdev-kernel-building: add a few more kernel config details For practical usage of the kernel config, there are a few more details that are interesting for the attendees: - the fact that the defconfig is the thing that should be commit to git; - the fact that build systems (Buildroot, OpenEmbedded) have their own wrapper around the kernel config. Signed-off-by: Arnout Vandecappelle --- slides/sysdev-kernel-building/sysdev-kernel-building.tex | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/slides/sysdev-kernel-building/sysdev-kernel-building.tex b/slides/sysdev-kernel-building/sysdev-kernel-building.tex index 8f6cf1b017..d8f7fc4a05 100644 --- a/slides/sysdev-kernel-building/sysdev-kernel-building.tex +++ b/slides/sysdev-kernel-building/sysdev-kernel-building.tex @@ -151,10 +151,14 @@ \subsection{Kernel configuration} \code{make savedefconfig} \item Save this default configuration in the right directory:\\ \code{mv defconfig arch//configs/myown_defconfig} + \item Add this file to Git. \end{itemize} \item This way, you can share a reference configuration inside the kernel sources and other developers can now get the same \code{.config} as you by running \code{make myown_defconfig} + \item When you use an embedded build system (Buildroot, OpenEmbedded) + use its specific commands. E.g. \code{make linux-menuconfig} and + \code{make linux-update-defconfig} in Buildroot. \end{itemize} \end{frame} From 786352eeb1825a8d25f14e7e4586937a6217bdc7 Mon Sep 17 00:00:00 2001 From: Arnout Vandecappelle Date: Mon, 15 Apr 2024 10:26:01 +0200 Subject: [PATCH 2/2] sysdev-kernel-building: explain how "No" is encoded in config It's quite surprising that "No" is not encoded as =n, so make this explicit. Signed-off-by: Arnout Vandecappelle --- slides/sysdev-kernel-building/sysdev-kernel-building.tex | 1 + 1 file changed, 1 insertion(+) diff --git a/slides/sysdev-kernel-building/sysdev-kernel-building.tex b/slides/sysdev-kernel-building/sysdev-kernel-building.tex index d8f7fc4a05..2577c32826 100644 --- a/slides/sysdev-kernel-building/sysdev-kernel-building.tex +++ b/slides/sysdev-kernel-building/sysdev-kernel-building.tex @@ -271,6 +271,7 @@ \subsection{Kernel configuration} \item Simple text file, \code{CONFIG_PARAM=value} \item Options are grouped by sections and are prefixed with \code{CONFIG_} + \item "No" value is encoded as \code{# CONFIG_FOO is not set} \item Included by the top-level kernel Makefile \item Typically not edited by hand because of the dependencies \end{itemize}