[FE training-materials-updates] kernel sources downloads: fetch stable branch

Michael Opdenacker michael.opdenacker at free-electrons.com
Thu Sep 19 15:01: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=65a269e24add0e46ff34a511c2f0eb28825af9dc


commit 65a269e24add0e46ff34a511c2f0eb28825af9dc
Author: Michael Opdenacker <michael.opdenacker at free-electrons.com>
Date:   Thu Sep 19 15:00:02 2013 +0200

    kernel sources downloads: fetch stable branch
    Signed-off-by: Michael Opdenacker <michael.opdenacker at free-electrons.com>


 .../kernel-sources-download.tex                    |   23 ++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/labs/kernel-sources-download/kernel-sources-download.tex b/labs/kernel-sources-download/kernel-sources-download.tex
index 164dd51..f811301 100644
--- a/labs/kernel-sources-download/kernel-sources-download.tex
+++ b/labs/kernel-sources-download/kernel-sources-download.tex
@@ -59,5 +59,28 @@ Of course, if you directly ran \code{git clone}, you won't have run
 \code{git pull} today. You may run \code{git pull} every morning though,
 or at least every time you need an update of the upstream source tree.
+\section{Accessing stable releases}
+Having the Linux kernel development sources is great, but when you are 
+creating products, you prefer to avoid working with target that moves
+every day.
+That's why we need to use the {\em stable} releases of the Linux
+Fortunately, with \code{git}, you won't have to clone an entire source
+tree again. All you need to do is add a reference to a {\em remote}
+tree, and fetch only the commits which are specific to that remote tree.
+git remote add stable git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
+git fetch stable
+This still represents about 80 MB worth of git objects to download, as
+the time of this writing (as of 3.11.1).
+We will choose a particular stable version in the next labs.
 Now, let's continue the lectures. This will leave time for the commands
 that you typed to complete their execution (if needed).

More information about the training-materials-updates mailing list