[FE training-materials-updates] yocto: slides: move the network usage part
Antoine Ténart
antoine.tenart at free-electrons.com
Thu Jul 7 12:18:26 CEST 2016
Repository : git://git.free-electrons.com/training-materials.git
On branch : master
Link : http://git.free-electrons.com/training-materials/commit/?id=5655be4a7ab6f55c1c47d6dbb011ea3053104538
>---------------------------------------------------------------
commit 5655be4a7ab6f55c1c47d6dbb011ea3053104538
Author: Antoine Tenart <antoine.tenart at free-electrons.com>
Date: Thu Jul 7 12:18:26 2016 +0200
yocto: slides: move the network usage part
Signed-off-by: Antoine Tenart <antoine.tenart at free-electrons.com>
>---------------------------------------------------------------
5655be4a7ab6f55c1c47d6dbb011ea3053104538
slides/yocto-advanced/yocto-advanced.tex | 77 ----------------------
.../yocto-recipe-advanced.tex | 77 ++++++++++++++++++++++
2 files changed, 77 insertions(+), 77 deletions(-)
diff --git a/slides/yocto-advanced/yocto-advanced.tex b/slides/yocto-advanced/yocto-advanced.tex
index bd0b37f..3513acc 100644
--- a/slides/yocto-advanced/yocto-advanced.tex
+++ b/slides/yocto-advanced/yocto-advanced.tex
@@ -298,80 +298,3 @@ $ ./scripts/sstate-cache-management.sh --remove-duplicated -d \
\end{block}
\end{itemize}
\end{frame}
-
-\subsection{Network usage}
-
-\begin{frame}
- \frametitle{Source fetching}
- \begin{itemize}
- \item BitBake will look for files to retrieve at the following
- locations, in order:
- \begin{enumerate}
- \item \code{DL_DIR} (the local download directory).
- \item The \code{PREMIRRORS} locations.
- \item The upstream source, as defined in \code{SRC_URI}.
- \item The \code{MIRRORS} locations.
- \end{enumerate}
- \item If all the mirrors fail, the build will fail.
- \end{itemize}
-\end{frame}
-
-\begin{frame}[fragile]
- \frametitle{Mirror configuration in Poky}
- \begin{block}{}
- \begin{minted}[fontsize=\scriptsize]{sh}
-PREMIRRORS ??= "\
-bzr://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
-cvs://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
-git://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
-hg://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
-osc://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
-p4://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
-svk://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
-svn://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n"
-
-MIRRORS =+ "\
-ftp://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
-http://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
-https://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n"
- \end{minted}
- \end{block}
-\end{frame}
-
-\begin{frame}[fragile]
- \frametitle{Configuring the mirrors}
- \begin{itemize}
- \item It's possible to prepend custom mirrors, using the
- \code{PREMIRRORS} variable:
- \end{itemize}
- \begin{block}{}
- \begin{minted}{sh}
-PREMIRRORS_prepend = "\
- git://.*/.* http://www.yoctoproject.org/sources/ \n \
- ftp://.*/.* http://www.yoctoproject.org/sources/ \n \
- http://.*/.* http://www.yoctoproject.org/sources/ \n \
- https://.*/.* http://www.yoctoproject.org/sources/ \n"
- \end{minted}
- \end{block}
- \begin{itemize}
- \item Another solution is to use the \code{own-mirror} class:
- \end{itemize}
- \begin{block}{}
- \begin{minted}{sh}
-INHERIT += "own-mirrors"
-SOURCE_MIRROR_URL = "http://example.com/my-source-mirror"
- \end{minted}
- \end{block}
-\end{frame}
-
-\begin{frame}[fragile]
- \frametitle{Forbidding network access}
- \begin{itemize}
- \item You can use \code{BB_GENERATE_MIRROR_TARBALLS = "1"} to
- generate tarballs of the git repositories in \code{DL_DIR}
- \item You can also completely disable network access using
- \code{BB_NO_NETWORK = "1"}
- \item Or restrict BitBake to only download files from the
- \code{PREMIRRORS}, using \code{BB_FETCH_PREMIRRORONLY = "1"}
- \end{itemize}
-\end{frame}
diff --git a/slides/yocto-recipe-advanced/yocto-recipe-advanced.tex b/slides/yocto-recipe-advanced/yocto-recipe-advanced.tex
index e2525b8..811eb07 100644
--- a/slides/yocto-recipe-advanced/yocto-recipe-advanced.tex
+++ b/slides/yocto-recipe-advanced/yocto-recipe-advanced.tex
@@ -347,3 +347,80 @@ BUILDHISTORY_COMMIT = "1"
\end{itemize}
\end{itemize}
\end{frame}
+
+\subsection{Network usage}
+
+\begin{frame}
+ \frametitle{Source fetching}
+ \begin{itemize}
+ \item BitBake will look for files to retrieve at the following
+ locations, in order:
+ \begin{enumerate}
+ \item \code{DL_DIR} (the local download directory).
+ \item The \code{PREMIRRORS} locations.
+ \item The upstream source, as defined in \code{SRC_URI}.
+ \item The \code{MIRRORS} locations.
+ \end{enumerate}
+ \item If all the mirrors fail, the build will fail.
+ \end{itemize}
+\end{frame}
+
+\begin{frame}[fragile]
+ \frametitle{Mirror configuration in Poky}
+ \begin{block}{}
+ \begin{minted}[fontsize=\scriptsize]{sh}
+PREMIRRORS ??= "\
+bzr://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
+cvs://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
+git://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
+hg://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
+osc://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
+p4://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
+svk://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
+svn://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n"
+
+MIRRORS =+ "\
+ftp://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
+http://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \
+https://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n"
+ \end{minted}
+ \end{block}
+\end{frame}
+
+\begin{frame}[fragile]
+ \frametitle{Configuring the mirrors}
+ \begin{itemize}
+ \item It's possible to prepend custom mirrors, using the
+ \code{PREMIRRORS} variable:
+ \end{itemize}
+ \begin{block}{}
+ \begin{minted}{sh}
+PREMIRRORS_prepend = "\
+ git://.*/.* http://www.yoctoproject.org/sources/ \n \
+ ftp://.*/.* http://www.yoctoproject.org/sources/ \n \
+ http://.*/.* http://www.yoctoproject.org/sources/ \n \
+ https://.*/.* http://www.yoctoproject.org/sources/ \n"
+ \end{minted}
+ \end{block}
+ \begin{itemize}
+ \item Another solution is to use the \code{own-mirror} class:
+ \end{itemize}
+ \begin{block}{}
+ \begin{minted}{sh}
+INHERIT += "own-mirrors"
+SOURCE_MIRROR_URL = "http://example.com/my-source-mirror"
+ \end{minted}
+ \end{block}
+\end{frame}
+
+\begin{frame}[fragile]
+ \frametitle{Forbidding network access}
+ \begin{itemize}
+ \item You can use \code{BB_GENERATE_MIRROR_TARBALLS = "1"} to
+ generate tarballs of the git repositories in \code{DL_DIR}
+ \item You can also completely disable network access using
+ \code{BB_NO_NETWORK = "1"}
+ \item Or restrict BitBake to only download files from the
+ \code{PREMIRRORS}, using \code{BB_FETCH_PREMIRRORONLY = "1"}
+ \end{itemize}
+\end{frame}
More information about the training-materials-updates
mailing list