[bootlin/training-materials updates] master: labs/kernel-compiling-and-nfs-booting: Ask trainees to save their base configuration (4bf86abd)

Miquel Raynal miquel.raynal at bootlin.com
Tue Apr 4 13:48:38 CEST 2023


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

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

commit 4bf86abd750e44f7e6bd1362465daa19041c7196
Author: Miquel Raynal <miquel.raynal at bootlin.com>
Date:   Tue Apr 4 12:46:03 2023 +0200

    labs/kernel-compiling-and-nfs-booting: Ask trainees to save their base configuration
    
    Let's save it when it's ready so they won't spend too much time
    restoring it after smashing it due to the lack of ARCH/CROSS_COMPILE
    later on.
    
    Signed-off-by: Miquel Raynal <miquel.raynal at bootlin.com>


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

4bf86abd750e44f7e6bd1362465daa19041c7196
 .../kernel-compiling-and-nfs-booting.tex            | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/labs/kernel-compiling-and-nfs-booting/kernel-compiling-and-nfs-booting.tex b/labs/kernel-compiling-and-nfs-booting/kernel-compiling-and-nfs-booting.tex
index 2f270f8d..4217f928 100644
--- a/labs/kernel-compiling-and-nfs-booting/kernel-compiling-and-nfs-booting.tex
+++ b/labs/kernel-compiling-and-nfs-booting/kernel-compiling-and-nfs-booting.tex
@@ -241,3 +241,24 @@ usage is outside of the scope of this course. See our
 \href{https://bootlin.com/training/embedded-linux/}{Embedded
 Linux system development course} and its on-line materials for
 details.
+
+\section{Save your kernel configuration}
+
+Now that you have a working (and satisfying) kernel configuration, you
+can save it under the \code{configs} folder:
+
+{\scriptsize
+\begin{verbatim}
+make savedefconfig
+cp defconfig arch/arm/configs/bbb_defconfig
+\end{verbatim}
+}
+
+So if you later overwrite the \code{.confif} file inadvertently, you can
+just get back to a working configuration by running:
+
+{\scriptsize
+\begin{verbatim}
+make bbb_defconfig
+\end{verbatim}
+}




More information about the training-materials-updates mailing list