[FE training-materials-updates] slides/buildroot-kernel: linux-update-defconfig only since Buildroot 2015.05
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Mon Jun 15 10:42:02 CEST 2015
Repository : git://git.free-electrons.com/training-materials.git
On branch : master
Link : http://git.free-electrons.com/training-materials/commit/?id=00287abc49aa3d009551bef3abfa658b1ccbb3b7
>---------------------------------------------------------------
commit 00287abc49aa3d009551bef3abfa658b1ccbb3b7
Author: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
Date: Mon Jun 15 10:41:54 2015 +0200
slides/buildroot-kernel: linux-update-defconfig only since Buildroot 2015.05
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
>---------------------------------------------------------------
00287abc49aa3d009551bef3abfa658b1ccbb3b7
labs/buildroot-rootfs/buildroot-rootfs.tex | 24 +++++++++++++++++-------
slides/buildroot-kernel/buildroot-kernel.tex | 3 ++-
2 files changed, 19 insertions(+), 8 deletions(-)
diff --git a/labs/buildroot-rootfs/buildroot-rootfs.tex b/labs/buildroot-rootfs/buildroot-rootfs.tex
index 3e6a724..4373b9a 100644
--- a/labs/buildroot-rootfs/buildroot-rootfs.tex
+++ b/labs/buildroot-rootfs/buildroot-rootfs.tex
@@ -198,15 +198,16 @@ mkdir board/felabs/beagleboneblack/linux-patches/
\end{verbatim}
Copy in this directory the two patches that we provided with the data
-of this lab, in \code{$HOME/buildroot-labs/buildroot-rootfs/}, but change
-their name so that their start with \code{linux-}\footnote{Note: this
- renaming will no longer be necessary starting from Buildroot
- 2015.05, all \code{*.patch} files will be applied.}:
+of this lab, in \code{$HOME/buildroot-labs/buildroot-rootfs/linux/},
+but change their name so that their start with
+\code{linux-}\footnote{Note: this renaming will no longer be necessary
+ starting from Buildroot 2015.05, all \code{*.patch} files will be
+ applied.}:
\begin{verbatim}
-cp $HOME/buildroot-labs/buildroot-rootfs/0001-.....patch \
+cp $HOME/buildroot-labs/buildroot-rootfs/linux/0001-.....patch \
board/felabs/beagleboneblack/linux-patches/linux-0001-.....patch
-cp $HOME/buildroot-labs/buildroot-rootfs/0002-.....patch \
+cp $HOME/buildroot-labs/buildroot-rootfs/linux/0002-.....patch \
board/felabs/beagleboneblack/linux-patches/linux-0002-.....patch
\end{verbatim}
@@ -270,7 +271,16 @@ build log, you should see the file \code{wiichuck.c} being compiled.
However, the change of the configuration has only been made in the
build directory of the Linux kernel, which gets removed when you do a
\code{make clean}. Since we want to make this configuration
-persistent, we have to do a few more steps:
+persistent, we have to do a few more steps. It turns out unfortunately
+that Buildroot 2015.02 had a bug that prevented from doing the
+following steps properly. So you first need to apply a few patches to
+your Buildroot tree:
+
+\begin{verbatim}
+git am $HOME/buildroot-labs/buildroot-rootfs/buildroot/*.patch
+\end{verbatim}
+
+Then you can actually save your kernel configuration to a custom file:
\begin{enumerate}
diff --git a/slides/buildroot-kernel/buildroot-kernel.tex b/slides/buildroot-kernel/buildroot-kernel.tex
index 4605c7d..c320f90 100644
--- a/slides/buildroot-kernel/buildroot-kernel.tex
+++ b/slides/buildroot-kernel/buildroot-kernel.tex
@@ -59,7 +59,8 @@
\item To save them:
\begin{itemize}
\item \code{make linux-update-config}, to save a full config file
- \item \code{make linux-update-defconfig}, to save a minimal defconfig
+ \item \code{make linux-update-defconfig}, to save a minimal
+ defconfig. Available since Buildroot 2015.05.
\item Only works if a {\em custom configuration file} is used
\end{itemize}
\end{itemize}
More information about the training-materials-updates
mailing list