[bootlin/training-materials updates] master: yocto: slides: improve slide "Configuring teh mirrors" (6e386ee0)
Luca Ceresoli
luca.ceresoli at bootlin.com
Mon Jul 18 17:03:07 CEST 2022
Repository : https://github.com/bootlin/training-materials
On branch : master
Link : https://github.com/bootlin/training-materials/commit/6e386ee0207c5de86553ced3ff0e01af1fb24a91
>---------------------------------------------------------------
commit 6e386ee0207c5de86553ced3ff0e01af1fb24a91
Author: Luca Ceresoli <luca.ceresoli at bootlin.com>
Date: Mon Jul 18 16:59:54 2022 +0200
yocto: slides: improve slide "Configuring teh mirrors"
Move own-mirrors above as it is the simple option. For the
PREMIRRORS:append modify the example to really show why it can be useful
(different URLs, not possible with own-mirrors). Improve all wording.
Signed-off-by: Luca Ceresoli <luca.ceresoli at bootlin.com>
>---------------------------------------------------------------
6e386ee0207c5de86553ced3ff0e01af1fb24a91
.../yocto-recipe-advanced/yocto-recipe-advanced.tex | 21 +++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)
diff --git a/slides/yocto-recipe-advanced/yocto-recipe-advanced.tex b/slides/yocto-recipe-advanced/yocto-recipe-advanced.tex
index eab291ab..36903948 100644
--- a/slides/yocto-recipe-advanced/yocto-recipe-advanced.tex
+++ b/slides/yocto-recipe-advanced/yocto-recipe-advanced.tex
@@ -417,25 +417,26 @@ ftp://.*/.* http://sources.openembedded.org/ \
\begin{frame}[fragile]
\frametitle{Configuring the mirrors}
\begin{itemize}
- \item It's possible to prepend custom mirrors, using the
- \code{PREMIRRORS} variable:
+ \item It is possible to use a custom mirror using the \code{own-mirrors}
+ class (only one URL supported):
\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"
+INHERIT += "own-mirrors"
+SOURCE_MIRROR_URL = "http://example.com/my-mirror"
\end{minted}
\end{block}
\begin{itemize}
- \item Another solution is to use the \code{own-mirrors} class:
+ \item For a more complex setup, prepend custom mirrors to the
+ \code{PREMIRRORS} variable:
\end{itemize}
\begin{block}{}
\begin{minted}{sh}
-INHERIT += "own-mirrors"
-SOURCE_MIRROR_URL = "http://example.com/my-source-mirror"
+PREMIRRORS:prepend = "\
+ git://.*/.* http://example.com/my-mirror-for-git/ \
+ svn://.*/.* http://example.com/my-mirror-for-svn/ \
+ http://.*/.* http://www.yoctoproject.org/sources/ \
+ https://.*/.* http://www.yoctoproject.org/sources/ "
\end{minted}
\end{block}
\end{frame}
More information about the training-materials-updates
mailing list