[FE training-materials-updates] kernel sources: work on Linux stable 3.11.y
Michael Opdenacker
michael.opdenacker at free-electrons.com
Thu Sep 19 15:59:41 CEST 2013
Repository : git://git.free-electrons.com/training-materials.git
On branch : kernel-ng
Link : http://git.free-electrons.com/training-materials/commit/?id=59df7bd9f9b8551fc353982263a8acf5224a1794
>---------------------------------------------------------------
commit 59df7bd9f9b8551fc353982263a8acf5224a1794
Author: Michael Opdenacker <michael.opdenacker at free-electrons.com>
Date: Thu Sep 19 15:58:23 2013 +0200
kernel sources: work on Linux stable 3.11.y
Signed-off-by: Michael Opdenacker <michael.opdenacker at free-electrons.com>
>---------------------------------------------------------------
59df7bd9f9b8551fc353982263a8acf5224a1794
kernel-slides-todo.txt | 3 ++
.../kernel-sources-exploring.tex | 29 ++++++++++++++++++--
2 files changed, 30 insertions(+), 2 deletions(-)
diff --git a/kernel-slides-todo.txt b/kernel-slides-todo.txt
new file mode 100644
index 0000000..5a792f1
--- /dev/null
+++ b/kernel-slides-todo.txt
@@ -0,0 +1,3 @@
+- Git sources
+ - Properly introduce the Linux stable tree
+
diff --git a/labs/kernel-sources-exploring/kernel-sources-exploring.tex b/labs/kernel-sources-exploring/kernel-sources-exploring.tex
index f10ec64..020e6a6 100644
--- a/labs/kernel-sources-exploring/kernel-sources-exploring.tex
+++ b/labs/kernel-sources-exploring/kernel-sources-exploring.tex
@@ -5,14 +5,39 @@ After this lab, you will be able to:
\begin{itemize}
+\item Create a branch based on a remote tree to explore a particular
+ stable kernel version (from the \code{stable} kernel tree).
\item Explore the sources in search for files, function headers or
other kinds of information...
\item Browse the kernel sources with tools like \code{cscope} and LXR.
\end{itemize}
-\section{Setup}
+\section{Choose a particular stable version}
-Stay in the \code{$HOME/felabs/linux/src} directory.
+Let's work with a particular stable version of the Linux kernel.
+It would have been more logical to do this in the previous lab, but we
+wanted to get back to lectures while the \code{fetch} command was
+running.
+
+First, let's get the list of branches on our \code{stable} remote tree:
+
+\begin{verbatim}
+cd ~/felabs/linux/src/linux
+git branch -a
+\end{verbatim}
+
+As we want to work with the Linux 3.11 stable branch, the remote branch
+we are interested in is \code{remotes/stable/linux-3.11.y}.
+
+First, open the \code{Makefile} file just to check the Linux kernel
+version that you currently have.
+
+Now, let's create a local branch starting from that remote branch:
+\begin{verbatim}
+git checkout -b 3.11.y stable/linux-3.11.y
+\end{verbatim}
+
+Open \code{Makefile} again and make sure you now have a 3.11.y version.
\section{Exploring the sources manually}
More information about the training-materials-updates
mailing list